airflow.providers.google.marketing_platform.operators.search_ads¶
This module contains Google Search Ads operators.
Classes¶
Search a report by query. |
|
Retrieve metadata for a resource or a field. |
|
Retrieve metadata for resource(s) or field(s) by the query syntax. |
|
Retrieve details of a custom column for the given customer_id and campaign_id. |
|
List all custom columns. |
Module Contents¶
- class airflow.providers.google.marketing_platform.operators.search_ads.GoogleSearchAdsSearchOperator(*, customer_id, query, page_token=None, page_size=10000, return_total_results_count=False, summary_row_setting=None, validate_only=False, **kwargs)[source]¶
Bases:
_GoogleSearchAdsBaseOperator
Search a report by query.
See also
For more information on how to use this operator, take a look at the guide: Querying a report
- Parameters:
customer_id (str) – The ID of the customer being queried.
query (str) – The query to execute.
page_token (str | None) – Token of the page to retrieve. If not specified, the first page of results will be returned. Use the value obtained from next_page_token in the previous response in order to request the next page of results.
page_size (int) – Number of elements to retrieve in a single page. When too large a page is requested, the server may decide to further limit the number of returned resources. Default is 10000.
return_total_results_count (bool) – If true, the total number of results that match the query ignoring the LIMIT clause will be included in the response. Default is false.
summary_row_setting (str | None) – Determines whether a summary row will be returned. By default, summary row is not returned. If requested, the summary row will be sent in a response by itself after all others query results are returned.
validate_only (bool) – If true, the request is validated but not executed. Default is false.
gcp_conn_id – The connection ID to use when fetching connection info.
api_version – The version of the API that will be requested for example ‘v0’.
- template_fields: collections.abc.Sequence[str] = ('api_version', 'gcp_conn_id', 'page_token', 'page_size')[source]¶
- class airflow.providers.google.marketing_platform.operators.search_ads.GoogleSearchAdsGetFieldOperator(*, field_name, **kwargs)[source]¶
Bases:
_GoogleSearchAdsBaseOperator
Retrieve metadata for a resource or a field.
See also
For more information on how to use this operator, take a look at the guide: Retrieve a field metadata
- Parameters:
field_name (str) – The name of the field.
gcp_conn_id – The connection ID to use when fetching connection info.
api_version – The version of the API that will be requested for example ‘v0’.
- class airflow.providers.google.marketing_platform.operators.search_ads.GoogleSearchAdsSearchFieldsOperator(*, query, page_token=None, page_size=10000, **kwargs)[source]¶
Bases:
_GoogleSearchAdsBaseOperator
Retrieve metadata for resource(s) or field(s) by the query syntax.
See also
For more information on how to use this operator, take a look at the guide: Retrieve metadata for multiple fields
- Parameters:
query (str) – The query string to execute.
page_token (str | None) – Token of the page to retrieve. If not specified, the first page of results will be returned. Use the value obtained from next_page_token in the previous response in order to request the next page of results.
page_size (int) – Number of elements to retrieve in a single page. When too large a page is requested, the server may decide to further limit the number of returned resources. Default 10000.
gcp_conn_id – The connection ID to use when fetching connection info.
api_version – The version of the API that will be requested for example ‘v0’.
- template_fields: collections.abc.Sequence[str] = ('api_version', 'gcp_conn_id', 'page_token', 'page_size')[source]¶
- class airflow.providers.google.marketing_platform.operators.search_ads.GoogleSearchAdsGetCustomColumnOperator(*, customer_id, custom_column_id, **kwargs)[source]¶
Bases:
_GoogleSearchAdsBaseOperator
Retrieve details of a custom column for the given customer_id and campaign_id.
See also
For more information on how to use this operator, take a look at the guide: Retrieve a custom column details
- Parameters:
- class airflow.providers.google.marketing_platform.operators.search_ads.GoogleSearchAdsListCustomColumnsOperator(*, customer_id, **kwargs)[source]¶
Bases:
_GoogleSearchAdsBaseOperator
List all custom columns.
See also
For more information on how to use this operator, take a look at the guide: Retrieve a custom column details
- Parameters:
customer_id (str) – The customer ID for the custom column.
gcp_conn_id – The connection ID to use when fetching connection info.
api_version – The version of the API that will be requested for example ‘v0’.