airflow.providers.google.marketing_platform.operators.display_video

This module contains Google DisplayVideo operators.

Module Contents

class airflow.providers.google.marketing_platform.operators.display_video.GoogleDisplayVideo360CreateReportOperator(*, body: Dict[str, Any], api_version: str = 'v1', gcp_conn_id: str = 'google_cloud_default', delegate_to: Optional[str] = None, impersonation_chain: Optional[Union[str, Sequence[str]]] = None, **kwargs)[source]

Bases: airflow.models.BaseOperator

Creates a query.

See also

For more information on how to use this operator, take a look at the guide: Creating a report

See also

Check also the official API docs: https://developers.google.com/bid-manager/v1/queries/createquery

Parameters
  • body (Dict[str, Any]) -- Report object passed to the request's body as described here: https://developers.google.com/bid-manager/v1/queries#resource

  • api_version (str) -- The version of the api that will be requested for example 'v3'.

  • gcp_conn_id (str) -- The connection ID to use when fetching connection info.

  • delegate_to (str) -- The account to impersonate using domain-wide delegation of authority, if any. For this to work, the service account making the request must have domain-wide delegation enabled.

  • impersonation_chain (Union[str, Sequence[str]]) -- Optional service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account (templated).

template_fields = ['body', 'impersonation_chain'][source]
template_ext = ['.json'][source]
prepare_template(self)[source]
execute(self, context: dict)[source]
class airflow.providers.google.marketing_platform.operators.display_video.GoogleDisplayVideo360DeleteReportOperator(*, report_id: Optional[str] = None, report_name: Optional[str] = None, api_version: str = 'v1', gcp_conn_id: str = 'google_cloud_default', delegate_to: Optional[str] = None, impersonation_chain: Optional[Union[str, Sequence[str]]] = None, **kwargs)[source]

Bases: airflow.models.BaseOperator

Deletes a stored query as well as the associated stored reports.

See also

For more information on how to use this operator, take a look at the guide: Deleting a report

See also

Check also the official API docs: https://developers.google.com/bid-manager/v1/queries/deletequery

Parameters
  • report_id (str) -- Report ID to delete.

  • report_name (str) -- Name of the report to delete.

  • api_version (str) -- The version of the api that will be requested for example 'v3'.

  • gcp_conn_id (str) -- The connection ID to use when fetching connection info.

  • delegate_to (str) -- The account to impersonate using domain-wide delegation of authority, if any. For this to work, the service account making the request must have domain-wide delegation enabled.

  • impersonation_chain (Union[str, Sequence[str]]) -- Optional service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account (templated).

template_fields = ['report_id', 'impersonation_chain'][source]
execute(self, context: dict)[source]
class airflow.providers.google.marketing_platform.operators.display_video.GoogleDisplayVideo360DownloadReportOperator(*, report_id: str, bucket_name: str, report_name: Optional[str] = None, gzip: bool = True, chunk_size: int = 10 * 1024 * 1024, api_version: str = 'v1', gcp_conn_id: str = 'google_cloud_default', delegate_to: Optional[str] = None, impersonation_chain: Optional[Union[str, Sequence[str]]] = None, **kwargs)[source]

Bases: airflow.models.BaseOperator

Retrieves a stored query.

See also

For more information on how to use this operator, take a look at the guide: Downloading a report

See also

Check also the official API docs: https://developers.google.com/bid-manager/v1/queries/getquery

Parameters
  • report_id (str) -- Report ID to retrieve.

  • bucket_name (str) -- The bucket to upload to.

  • report_name (str) -- The report name to set when uploading the local file.

  • chunk_size (int) -- File will be downloaded in chunks of this many bytes.

  • gzip (bool) -- Option to compress local file or file data for upload

  • api_version (str) -- The version of the api that will be requested for example 'v3'.

  • gcp_conn_id (str) -- The connection ID to use when fetching connection info.

  • delegate_to (str) -- The account to impersonate using domain-wide delegation of authority, if any. For this to work, the service account making the request must have domain-wide delegation enabled.

  • impersonation_chain (Union[str, Sequence[str]]) -- Optional service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account (templated).

template_fields = ['report_id', 'bucket_name', 'report_name', 'impersonation_chain'][source]
_resolve_file_name(self, name: str)[source]
static _set_bucket_name(name: str)[source]
execute(self, context: dict)[source]
class airflow.providers.google.marketing_platform.operators.display_video.GoogleDisplayVideo360RunReportOperator(*, report_id: str, params: Dict[str, Any], api_version: str = 'v1', gcp_conn_id: str = 'google_cloud_default', delegate_to: Optional[str] = None, impersonation_chain: Optional[Union[str, Sequence[str]]] = None, **kwargs)[source]

Bases: airflow.models.BaseOperator

Runs a stored query to generate a report.

See also

For more information on how to use this operator, take a look at the guide: Running a report

See also

Check also the official API docs: https://developers.google.com/bid-manager/v1/queries/runquery

Parameters
  • report_id (str) -- Report ID to run.

  • params (Dict[str, Any]) -- Parameters for running a report as described here: https://developers.google.com/bid-manager/v1/queries/runquery

  • api_version (str) -- The version of the api that will be requested for example 'v3'.

  • gcp_conn_id (str) -- The connection ID to use when fetching connection info.

  • delegate_to (str) -- The account to impersonate using domain-wide delegation of authority, if any. For this to work, the service account making the request must have domain-wide delegation enabled.

  • impersonation_chain (Union[str, Sequence[str]]) -- Optional service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account (templated).

template_fields = ['report_id', 'params', 'impersonation_chain'][source]
execute(self, context: dict)[source]
class airflow.providers.google.marketing_platform.operators.display_video.GoogleDisplayVideo360DownloadLineItemsOperator(*, request_body: Dict[str, Any], bucket_name: str, object_name: str, gzip: bool = False, api_version: str = 'v1.1', gcp_conn_id: str = 'google_cloud_default', delegate_to: Optional[str] = None, impersonation_chain: Optional[Union[str, Sequence[str]]] = None, **kwargs)[source]

Bases: airflow.models.BaseOperator

Retrieves line items in CSV format.

See also

For more information on how to use this operator, take a look at the guide: Downloading Line Items

See also

Check also the official API docs: https://developers.google.com/bid-manager/v1.1/lineitems/downloadlineitems

Parameters

request_body (Dict[str, Any],) -- dictionary with parameters that should be passed into. More information about it can be found here: https://developers.google.com/bid-manager/v1.1/lineitems/downloadlineitems

template_fields = ['request_body', 'bucket_name', 'object_name', 'impersonation_chain'][source]
execute(self, context: dict)[source]
class airflow.providers.google.marketing_platform.operators.display_video.GoogleDisplayVideo360UploadLineItemsOperator(*, bucket_name: str, object_name: str, api_version: str = 'v1.1', gcp_conn_id: str = 'google_cloud_default', delegate_to: Optional[str] = None, impersonation_chain: Optional[Union[str, Sequence[str]]] = None, **kwargs)[source]

Bases: airflow.models.BaseOperator

Uploads line items in CSV format.

See also

For more information on how to use this operator, take a look at the guide: Upload line items

See also

Check also the official API docs: https://developers.google.com/bid-manager/v1.1/lineitems/uploadlineitems

Parameters
  • request_body (Dict[str, Any]) -- request to upload line items.

  • bucket_name (str) -- The bucket form data is downloaded.

  • object_name (str,) -- The object to fetch.

  • filename (str,) -- The filename to fetch.

  • dry_run (str,) -- Upload status without actually persisting the line items.

template_fields = ['bucket_name', 'object_name', 'impersonation_chain'][source]
execute(self, context: dict)[source]
class airflow.providers.google.marketing_platform.operators.display_video.GoogleDisplayVideo360CreateSDFDownloadTaskOperator(*, body_request: Dict[str, Any], api_version: str = 'v1', gcp_conn_id: str = 'google_cloud_default', delegate_to: Optional[str] = None, impersonation_chain: Optional[Union[str, Sequence[str]]] = None, **kwargs)[source]

Bases: airflow.models.BaseOperator

Creates SDF operation task.

See also

For more information on how to use this operator, take a look at the guide: Create SDF download task

See also

Check also the official API docs: https://developers.google.com/display-video/api/reference/rest

Parameters
  • version (str) -- The SDF version of the downloaded file.

  • partner_id (str) -- The ID of the partner to download SDF for.

  • advertiser_id (str) -- The ID of the advertiser to download SDF for.

  • parent_entity_filter (Dict[str, Any]) -- Filters on selected file types.

  • id_filter (Dict[str, Any]) -- Filters on entities by their entity IDs.

  • inventory_source_filter (Dict[str, Any]) -- Filters on Inventory Sources by their IDs.

  • gcp_conn_id (str) -- The connection ID to use when fetching connection info.

  • delegate_to (str) -- The account to impersonate using domain-wide delegation of authority, if any. For this to work, the service account making the request must have domain-wide delegation enabled.

  • impersonation_chain (Union[str, Sequence[str]]) -- Optional service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account (templated).

template_fields = ['body_request', 'impersonation_chain'][source]
execute(self, context: dict)[source]
class airflow.providers.google.marketing_platform.operators.display_video.GoogleDisplayVideo360SDFtoGCSOperator(*, operation_name: str, bucket_name: str, object_name: str, gzip: bool = False, api_version: str = 'v1', gcp_conn_id: str = 'google_cloud_default', delegate_to: Optional[str] = None, impersonation_chain: Optional[Union[str, Sequence[str]]] = None, **kwargs)[source]

Bases: airflow.models.BaseOperator

Download SDF media and save it in the Google Cloud Storage.

See also

For more information on how to use this operator, take a look at the guide: Save SDF files in the Google Cloud Storage

See also

Check also the official API docs: https://developers.google.com/display-video/api/reference/rest

Parameters
  • version (str) -- The SDF version of the downloaded file.

  • partner_id (str) -- The ID of the partner to download SDF for.

  • advertiser_id (str) -- The ID of the advertiser to download SDF for.

  • parent_entity_filter (Dict[str, Any]) -- Filters on selected file types.

  • id_filter (Dict[str, Any]) -- Filters on entities by their entity IDs.

  • inventory_source_filter (Dict[str, Any]) -- Filters on Inventory Sources by their IDs.

  • gcp_conn_id (str) -- The connection ID to use when fetching connection info.

  • delegate_to (str) -- The account to impersonate using domain-wide delegation of authority, if any. For this to work, the service account making the request must have domain-wide delegation enabled.

  • impersonation_chain (Union[str, Sequence[str]]) -- Optional service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account (templated).

template_fields = ['operation_name', 'bucket_name', 'object_name', 'impersonation_chain'][source]
execute(self, context: dict)[source]

Was this entry helpful?