Complete the airflow survey & get a free airflow 3 certification!

tests.system.google.marketing_platform.example_campaign_manager

Example Airflow DAG that shows how to use CampaignManager.

This system test relies on a service account with proper settings in Campaign Manager 360. That’s why before running this system test locally, make sure your service account corresponds all the secrets that the DAG reads. If your service account doesn’t have access but you know another one which has then simply specify it in the environment variable CM360_IMPERSONATION_CHAIN.

Attributes

ENV_ID

PROJECT_ID

CM360_IMPERSONATION_CHAIN

DAG_ID

SECRET_ACCOUNT_ID

SECRET_DCLID

SECRET_ENCRYPTION_ENTITY_ID

SECRET_FLOODLIGHT_ACTIVITY_ID

SECRET_FLOODLIGHT_CONFIGURATION_ID

SECRET_USER_PROFILE_ID

ACCOUNT_ID

DCLID

ENCRYPTION_ENTITY_ID

FLOODLIGHT_ACTIVITY_ID

FLOODLIGHT_CONFIGURATION_ID

USER_PROFILE_ID

BUCKET_NAME

REPORT_NAME

FILE_NAME

FORMAT

CONNECTION_ID

REPORT

CONVERSION

CONVERSION_UPDATE

log

test_run

Functions

create_connection(connection_id)

Module Contents

tests.system.google.marketing_platform.example_campaign_manager.ENV_ID[source]
tests.system.google.marketing_platform.example_campaign_manager.PROJECT_ID[source]
tests.system.google.marketing_platform.example_campaign_manager.CM360_IMPERSONATION_CHAIN[source]
tests.system.google.marketing_platform.example_campaign_manager.DAG_ID = 'campaign_manager'[source]
tests.system.google.marketing_platform.example_campaign_manager.SECRET_ACCOUNT_ID = 'cm360_account_id'[source]
tests.system.google.marketing_platform.example_campaign_manager.SECRET_DCLID = 'cm360_dclid'[source]
tests.system.google.marketing_platform.example_campaign_manager.SECRET_ENCRYPTION_ENTITY_ID = 'cm360_encryption_entity_id'[source]
tests.system.google.marketing_platform.example_campaign_manager.SECRET_FLOODLIGHT_ACTIVITY_ID = 'cm360_floodlight_activity_id'[source]
tests.system.google.marketing_platform.example_campaign_manager.SECRET_FLOODLIGHT_CONFIGURATION_ID = 'cm360_floodlight_configuration_id'[source]
tests.system.google.marketing_platform.example_campaign_manager.SECRET_USER_PROFILE_ID = 'cm360_user_profile_id'[source]
tests.system.google.marketing_platform.example_campaign_manager.ACCOUNT_ID = "{{ task_instance.xcom_pull('get_account_id') }}"[source]
tests.system.google.marketing_platform.example_campaign_manager.DCLID = "{{ task_instance.xcom_pull('get_dclid') }}"[source]
tests.system.google.marketing_platform.example_campaign_manager.ENCRYPTION_ENTITY_ID = "{{ task_instance.xcom_pull('get_encryption_entity_id') }}"[source]
tests.system.google.marketing_platform.example_campaign_manager.FLOODLIGHT_ACTIVITY_ID = "{{ task_instance.xcom_pull('get_floodlight_activity_id') }}"[source]
tests.system.google.marketing_platform.example_campaign_manager.FLOODLIGHT_CONFIGURATION_ID = "{{ task_instance.xcom_pull('get_floodlight_configuration_id') }}"[source]
tests.system.google.marketing_platform.example_campaign_manager.USER_PROFILE_ID = "{{ task_instance.xcom_pull('get_user_profile_id') }}"[source]
tests.system.google.marketing_platform.example_campaign_manager.BUCKET_NAME = 'bucket_campaign_manager_Uninferable'[source]
tests.system.google.marketing_platform.example_campaign_manager.REPORT_NAME = 'report_campaign_manager_Uninferable'[source]
tests.system.google.marketing_platform.example_campaign_manager.FILE_NAME = 'file_campaign_manager_Uninferable'[source]
tests.system.google.marketing_platform.example_campaign_manager.FORMAT = 'CSV'[source]
tests.system.google.marketing_platform.example_campaign_manager.CONNECTION_ID = 'connection_campaign_manager_Uninferable'[source]
tests.system.google.marketing_platform.example_campaign_manager.REPORT[source]
tests.system.google.marketing_platform.example_campaign_manager.CONVERSION[source]
tests.system.google.marketing_platform.example_campaign_manager.CONVERSION_UPDATE[source]
tests.system.google.marketing_platform.example_campaign_manager.log[source]
tests.system.google.marketing_platform.example_campaign_manager.create_connection(connection_id)[source]
tests.system.google.marketing_platform.example_campaign_manager.test_run[source]

Was this entry helpful?