Load Display & Video 360 data into BigQuery

You can load data from Display & Video 360 to BigQuery using theBigQuery Data Transfer Service for Display & Video 360 connector. With theBigQuery Data Transfer Service, you can schedule recurring transfer jobs thatadd your latest data from your Display & Video 360 toBigQuery.

Connector overview

The BigQuery Data Transfer Service for the Display & Video 360 connector supports the following options for your data transfer.

Data transfer optionsSupport
Supported reports The Display & Video 360 connector supports the transfer of data from the reports inData Transfer v2 (Display & Video DTv2) files.

For information about how Display & Video 360 reports are transformed into BigQuery tables and views, seeDisplay & Video 360 report transformation.

Repeat frequencyThe Display & Video 360 connector supports daily data transfers.

By default, data transfers are scheduled at the time when the data transfer is created. You can configure the time of data transfer when youset up your data transfer.
Refresh windowThe Display & Video 360 connector retrieves Display & Video 360 data from up to 2 days at the time the data transfer is run. You cannot configure the refresh window for this connector.

For more information, seeRefresh windows.
Backfill data availabilityRun a data backfill to retrieve data outside of your scheduled data transfer. You can retrieve data as far back as the data retention policy on your data source allows.

For information about the data retention policy for Display & Video 360, seeReport data freshness and availability.

Supported configuration data

In addition to the reporting data, BigQuery Data Transfer Service also transfersthe following configuration data from Display & Video 360. Configuration datais retrieved fromDisplay & Video 360 API v3.

For more information about each type of configuration data, see the followinglinks:

Data ingestion from Display & Video 360 transfers

When you transfer data from Display & Video 360 into BigQuery, thedata is loaded into BigQuery tables that are partitioned by date.The table partition that the data is loaded into corresponds to the date fromthe data source. If you schedule multiple transfers for the same date,BigQuery Data Transfer Service overwrites the partition for that specific date withthe latest data. Multiple transfers in the same day or running backfills don'tresult in duplicate data, and partitions for other dates are not affected.

Refresh windows

Arefresh window is the number of days that a data transfer retrieves datawhen a data transfer occurs. For example, if the refresh window is three daysand a daily transfer occurs, the BigQuery Data Transfer Service retrieves all data fromyour source table from the past three days. In thisexample, when a daily transfer occurs, the BigQuery Data Transfer Service creates a newBigQuery destination table partition with a copy of your source table datafrom the current day, then automatically triggers backfill runs to update theBigQuery destination table partitions with your source table data from thepast two days. The automatically triggered backfill runs will either overwriteor incrementally update your BigQuery destination table,depending on whether or not incremental updates are supported in theBigQuery Data Transfer Service connector.

When you run a data transfer for the first time, the data transfer retrieves allsource data available within the refresh window. For example, if the refreshwindow is three days and you run the data transfer for the first time, theBigQuery Data Transfer Service retrieves all source data within three days.

To retrieve data outside the refresh window, such as historical data, or torecover data from any transfer outages or gaps, you can initiate or schedule abackfill run.

Before you begin

Review the following prerequisites and information before you create a Display & Video 360data transfer.

Prerequisites

Find your Display & Video 360 ID

To retrieve your Display & Video 360 ID, navigate to the Cloud StorageBuckets page in the Google Cloud console and examine the files in yourDisplay & Video 360 data transfer Cloud Storage bucket. The Display & Video 360ID is used to match files in the providedCloud Storage bucket. The ID is embedded in the filename, not theCloud Storage bucket name. For example:

  • In a file nameddbm_partner123_activity_*, the ID is123.
  • In a file nameddbm_advertiser567_activity_*, the ID is567.

Finding your filename prefix

In some cases, the files in your Cloud Storage bucket might have custom,nonstandard file names that were set up for you by the Google Marketing Platformservices team. For example:

In a file nameddbm_partner123456custom_activity_*, the prefix isdbm_partner123456custom.

For any assistance regarding filename prefixes, contactDisplay & Video 360 support.

Set up a Display & Video 360 data transfer

Select one of the following options:

Console

  1. Go to the Data transfers page in the Google Cloud console.

    Go to Data transfers

  2. ClickCreate transfer.

  3. On theCreate transfer page, do the following:

    • In theSource type section, forSource, chooseDisplay & Video 360.
    • In theTransfer config name section, forDisplay name, enter aname for the data transfer. The transfer name can be any value that letsyou identify the transfer if you need to modify it later.
  4. In theSchedule options section:

    • Select eitherStart now orStart at set time, then provide astart date and run time.
    • ForRepeats, choose an option for how often to run thedata transfer. If you selectDays, provide a valid time in UTC.
  5. In theDestination settings section, in theDestination datasetmenu, select the dataset that you created to store your data.

  6. In theData source details section:

    • In theDV360 DTV2 Cloud Storage bucket field, enter theCloud Storage bucket that contains the Display & Video 360DTv2 files. If you need to set up this bucket, contactDisplay & Video 360support.
    • In theDV360 Partner/Advertiser ID field, enter thePartner IDorAdvertiser ID.
    • Optional: In theNotification options section:
      • Click the toggle to enable email notifications. When you enable thisoption, the transfer administrator receives an email notificationwhen a transfer run fails.
      • Click the toggle to enable Pub/Sub notifications. ForSelect a Cloud Pub/Sub topic, choose yourtopic name or clickCreate a topic. This option configures Pub/Sub runnotifications for yourtransfer.
  7. ClickSave.

bq

Enter thebq mk command and supply the transfer creation flag —--transfer_config. The following flags are required:

  • --data_source
  • --target_dataset
  • --display_name
  • --params
bqmk--transfer_config\--project_id=PROJECT_ID\--target_dataset=DATASET\--display_name=NAME\--params='PARAMETERS'\--data_source=DATA_SOURCE

Where:

  • PROJECT_ID: your project ID.
  • DATASET: the target dataset for the data transfer configuration.
  • NAME: the display name for the data transfer configuration. Thetransfer name can be any value that lets you identify the transfer if youneed to modify it later.
  • PARAMETERS: the parameters for the created data transferconfiguration in JSON format.For example—--params='{"param":"param_value"}'. ForDisplay & Video 360 transfers, thebucket anddisplayvideo_idparameters are required. Thefile_name_prefix parameter is optional andused for rare, custom file names only.
  • DATA_SOURCE: the data source —displayvideo.

For example, the following command creates a Display & Video 360 data transfernamedMy Transfer using Display & Video 360 ID123456, Cloud Storagebucketdcdt_-dbm_partner123456, and target datasetmydataset.

The data transfer is created in the default project:

bqmk--transfer_config\--target_dataset=mydataset\--display_name='My Transfer'\--params='{"bucket":"dcdt_-dbm_partner123456","displayvideo_id": "123456","file_name_prefix":"YYY"}'\--data_source=displayvideo

After running the command, you receive a message like the following:

[URL omitted] Please copy and paste the above URL into your web browser andfollow the instructions to retrieve an authentication code.

Follow the instructions in the message and paste the authentication code onthe command line.

API

Use theprojects.locations.transferConfigs.createmethod and supply an instance of theTransferConfigresource.

Query your data

When your data is transferred to BigQuery, the data is written toingestion-time partitioned tables. For more information, seeIntroduction to partitioned tables.

We recommend that you query the auto-generated views instead of querying thetables directly. However, if you want to query your tables directly, you mustuse the_PARTITIONTIME pseudocolumn in your query. For moreinformation, seeQuerying partitioned tables.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-05 UTC.