GoogleAdsListAccountsOperator

Google

Saves list of customers on GCS in form of a csv file.

View Source

Last Updated: May. 7, 2021

Access Instructions

Install the Google provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

bucketstrThe GCS bucket to upload to
object_namestrGCS path to save the csv file. Must be the full file path (ex. path/to/file.csv)
gcp_conn_idstrAirflow Google Cloud connection ID
google_ads_conn_idstrAirflow Google Ads connection ID
page_sizeintThe number of results per API page request. Max 10,000
gzipboolOption to compress local file or file data for upload
impersonation_chainUnion[str, Sequence[str]]Optional service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account (templated).

Documentation

Saves list of customers on GCS in form of a csv file.

The resulting list of customers is based on your OAuth credentials. The request returns a list of all accounts that you are able to act upon directly given your current credentials. This will not necessarily include all accounts within the account hierarchy; rather, it will only include accounts where your authenticated user has been added with admin or other rights in the account.

..seealso::

https://developers.google.com/google-ads/api/reference/rpc

See also

For more information on how to use this operator, take a look at the guide: Upload Google Ads Accounts to GCS

Was this page helpful?