airflow.providers.google.marketing_platform.hooks.search_ads

This module contains Google Search Ads 360 hook.

Module Contents

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

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

Hook for Google Search Ads 360.

get_conn(self)[source]

Retrieves connection to Google SearchAds.

insert_report(self, report: Dict[str, Any])[source]

Inserts a report request into the reporting system.

Parameters

report (Dict[str, Any]) -- Report to be generated.

get(self, report_id: str)[source]

Polls for the status of a report request.

Parameters

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

get_file(self, report_fragment: int, report_id: str)[source]

Downloads 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?