tests.system.google.ads.example_ads

Example Airflow DAG that shows how to use GoogleAdsToGcsOperator.

Module Contents

tests.system.google.ads.example_ads.ENV_ID[source]
tests.system.google.ads.example_ads.PROJECT_ID[source]
tests.system.google.ads.example_ads.DAG_ID = 'example_google_ads'[source]
tests.system.google.ads.example_ads.BUCKET_NAME[source]
tests.system.google.ads.example_ads.CLIENT_IDS = ['1111111111', '2222222222'][source]
tests.system.google.ads.example_ads.GCS_OBJ_PATH = 'folder_name/google-ads-api-results.csv'[source]
tests.system.google.ads.example_ads.GCS_ACCOUNTS_CSV = 'folder_name/accounts.csv'[source]
tests.system.google.ads.example_ads.QUERY = Multiline-String[source]
Show Value
"""
    SELECT
        segments.date,
        customer.id,
        campaign.id,
        ad_group.id,
        ad_group_ad.ad.id,
        metrics.impressions,
        metrics.clicks,
        metrics.conversions,
        metrics.all_conversions,
        metrics.cost_micros
    FROM
        ad_group_ad
    WHERE
        segments.date >= '2020-02-01'
        AND segments.date <= '2020-02-29'
    """
tests.system.google.ads.example_ads.FIELDS_TO_EXTRACT = ['segments.date.value', 'customer.id.value', 'campaign.id.value', 'ad_group.id.value',...[source]
tests.system.google.ads.example_ads.create_bucket[source]
tests.system.google.ads.example_ads.test_run[source]

Was this entry helpful?