airflow.providers.google.marketing_platform.hooks.campaign_manager¶
This module contains Google Campaign Manager hook.
Classes¶
Hook for Google Campaign Manager. |
Module Contents¶
- class airflow.providers.google.marketing_platform.hooks.campaign_manager.GoogleCampaignManagerHook(api_version='v4', gcp_conn_id='google_cloud_default', impersonation_chain=None)[source]¶
Bases:
airflow.providers.google.common.hooks.base_google.GoogleBaseHook
Hook for Google Campaign Manager.
- list_reports(profile_id, max_results=None, scope=None, sort_field=None, sort_order=None)[source]¶
Retrieve list of reports.
- Parameters:
- patch_report(profile_id, report_id, update_mask)[source]¶
Update a report. This method supports patch semantics.
- conversions_batch_insert(profile_id, conversions, encryption_entity_type, encryption_entity_id, encryption_source, max_failed_inserts=0)[source]¶
Insert conversions.
- Parameters:
profile_id (str) – User profile ID associated with this request.
conversions (list[dict[str, Any]]) – Conversations to insert, should by type of Conversation: https://developers.google.com/doubleclick-advertisers/rest/v4/conversions/batchinsert
encryption_entity_type (str) – The encryption entity type. This should match the encryption configuration for ad serving or Data Transfer.
encryption_entity_id (int) – The encryption entity ID. This should match the encryption configuration for ad serving or Data Transfer.
encryption_source (str) – Describes whether the encrypted cookie was received from ad serving (the %m macro) or from Data Transfer.
max_failed_inserts (int) – The maximum number of conversions that failed to be inserted
- conversions_batch_update(profile_id, conversions, encryption_entity_type, encryption_entity_id, encryption_source, max_failed_updates=0)[source]¶
Update existing conversions.
- Parameters:
profile_id (str) – User profile ID associated with this request.
conversions (list[dict[str, Any]]) – Conversations to update, should by type of Conversation: https://developers.google.com/doubleclick-advertisers/rest/v4/conversions/batchupdate
encryption_entity_type (str) – The encryption entity type. This should match the encryption configuration for ad serving or Data Transfer.
encryption_entity_id (int) – The encryption entity ID. This should match the encryption configuration for ad serving or Data Transfer.
encryption_source (str) – Describes whether the encrypted cookie was received from ad serving (the %m macro) or from Data Transfer.
max_failed_updates (int) – The maximum number of conversions that failed to be updated