tests.system.google.ads.example_ads

示例 Airflow DAG,展示了如何使用 GoogleAdsToGcsOperator。

属性

ENV_ID

PROJECT_ID

API_VERSION

DAG_ID

BUCKET_NAME

CLIENT_IDS

GCS_OBJ_PATH

GCS_ACCOUNTS_CSV

QUERY

FIELDS_TO_EXTRACT

create_bucket

test_run

模块内容

tests.system.google.ads.example_ads.ENV_ID[源]
tests.system.google.ads.example_ads.PROJECT_ID[源]
tests.system.google.ads.example_ads.API_VERSION = 'v19'[源]
tests.system.google.ads.example_ads.DAG_ID = 'example_google_ads'[源]
tests.system.google.ads.example_ads.BUCKET_NAME = 'bucket_ads_Uninferable'[源]
tests.system.google.ads.example_ads.CLIENT_IDS = ['1111111111', '2222222222'][源]
tests.system.google.ads.example_ads.GCS_OBJ_PATH = 'folder_name/google-ads-api-results.csv'[源]
tests.system.google.ads.example_ads.GCS_ACCOUNTS_CSV = 'folder_name/accounts.csv'[源]
tests.system.google.ads.example_ads.QUERY = Multiline-String[源]
显示值
"""
    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',...[源]
tests.system.google.ads.example_ads.create_bucket[源]
tests.system.google.ads.example_ads.test_run[源]

此条目是否有帮助?