airflow.providers.google.marketing_platform.hooks.search_ads

This module contains Google Search Ads 360 hook.

Module Contents

Classes

GoogleSearchAdsHook

Hook for Google Search Ads 360.

class airflow.providers.google.marketing_platform.hooks.search_ads.GoogleSearchAdsHook(api_version='v2', gcp_conn_id='google_cloud_default', delegate_to=None, impersonation_chain=None)[source]

Bases: airflow.providers.google.common.hooks.base_google.GoogleBaseHook

Hook for Google Search Ads 360.

get_conn()[source]

Retrieve connection to Google SearchAds.

insert_report(report)[source]

Insert a report request into the reporting system.

Parameters

report (dict[str, Any]) – Report to be generated.

get(report_id)[source]

Poll for the status of a report request.

Parameters

report_id (str) – ID of the report request being polled.

get_file(report_fragment, report_id)[source]

Download a report file encoded in UTF-8.

Parameters
  • report_fragment (int) – The index of the report fragment to download.

  • report_id (str) – ID of the report.

Was this entry helpful?