airflow.providers.google.marketing_platform.operators.display_video

This module contains Google DisplayVideo operators.

Classes

GoogleDisplayVideo360CreateSDFDownloadTaskOperator

Creates an SDF operation task.

GoogleDisplayVideo360SDFtoGCSOperator

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

Module Contents

class airflow.providers.google.marketing_platform.operators.display_video.GoogleDisplayVideo360CreateSDFDownloadTaskOperator(*, body_request, api_version='v4', gcp_conn_id='google_cloud_default', impersonation_chain=None, **kwargs)[source]

Bases: airflow.providers.google.version_compat.BaseOperator

Creates an 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 – The SDF version of the downloaded file.

  • partner_id – The ID of the partner to download SDF for.

  • advertiser_id – The ID of the advertiser to download SDF for.

  • parent_entity_filter – Filters on selected file types.

  • id_filter – Filters on entities by their entity IDs.

  • inventory_source_filter – Filters on Inventory Sources by their IDs.

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

  • impersonation_chain (str | collections.abc.Sequence[str] | None) – 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: collections.abc.Sequence[str] = ('body_request', 'impersonation_chain')[source]
body_request[source]
api_version = 'v4'[source]
gcp_conn_id = 'google_cloud_default'[source]
impersonation_chain = None[source]
execute(context)[source]

Derive when creating an operator.

The main method to execute the task. Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

class airflow.providers.google.marketing_platform.operators.display_video.GoogleDisplayVideo360SDFtoGCSOperator(*, operation_name, bucket_name, object_name, gzip=False, api_version='v4', gcp_conn_id='google_cloud_default', impersonation_chain=None, **kwargs)[source]

Bases: airflow.providers.google.version_compat.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 – The SDF version of the downloaded file.

  • partner_id – The ID of the partner to download SDF for.

  • advertiser_id – The ID of the advertiser to download SDF for.

  • parent_entity_filter – Filters on selected file types.

  • id_filter – Filters on entities by their entity IDs.

  • inventory_source_filter – Filters on Inventory Sources by their IDs.

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

  • impersonation_chain (str | collections.abc.Sequence[str] | None) – 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: collections.abc.Sequence[str] = ('operation_name', 'bucket_name', 'object_name', 'impersonation_chain')[source]
operation_name[source]
bucket_name[source]
object_name[source]
gzip = False[source]
api_version = 'v4'[source]
gcp_conn_id = 'google_cloud_default'[source]
impersonation_chain = None[source]
execute(context)[source]

Derive when creating an operator.

The main method to execute the task. Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

Was this entry helpful?