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(self)[source]

Retrieves connection to Google SearchAds.

insert_report(self, report)[source]

Inserts a report request into the reporting system.

Parameters

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

get(self, report_id)[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, report_id)[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?