Complete the following steps to migrate from the Google Adwords data connector to the new Google Ads V2 connector. The old one uses Google Adwords API to import data, while the new version uses Google Ads API to ingest data.
When migrating data from one place or version, it is worth being aware of how that data might be transformed. The following sections outline some important characteristics to be aware of.
There are some deprecated metrics:
- ClickAssistedConversions
- ClickAssistedConversionsOverLastClickConversions
- ClickAssistedConversionValue
- AverageFrequencyImpressionAssistedConversions
- ImpressionAssistedConversionsOverLastClickConversions
- ImpressionAssistedConversionValue
There are some unsupported predefined metrics:
AbsoluteTopImpressionPercentage (metrics.absolute_top_impression_percentage)TopImpressionPercentage (metrics.top_impression_percentage)
There are some deprecated metrics:
- ClickAssistedConversions
- ClickAssistedConversionsOverLastClickConversions
- ClickAssistedConversionValue
- ImpressionAssistedConversions
- ImpressionAssistedConversionsOverLastClickConversions
- ImpressionAssistedConversionValue
There are some deprecated metrics:
- AverageFrequency
- ClickAssistedConversions
- ClickAssistedConversionsOverLastClickConversions
- ClickAssistedConversionValue
- ImpressionReach
- ImpressionAssistedConversions
- ImpressionAssistedConversionsOverLastClickConversions
- ImpressionAssistedConversionValue
There are some deprecated metrics:
- ClickAssistedConversions
- ClickAssistedConversionsOverLastClickConversions
- ClickAssistedConversionValue
- ImpressionAssistedConversions
- ImpressionAssistedConversionsOverLastClickConversions
- ImpressionAssistedConversionValue
The AUDIENCE_PERFORMANCE_REPORT returned data for both campaign-level and ad group-level audience criteria, while the Google Ads API provides this information in two separate resources: campaign_audience_view and ad_group_audience_view.LAST_WEEKoption is unsupported.segments.dateis required for Date range exceptALL_TIME
Go to Treasure Data Catalog, then search and select Google Ads v2.

In the dialog box, enter the values that you enter in your legacy Google Ads connector.
Using OAuth to authenticate the connector

You can save your legacy setting from TD Console or from the CLI.
- Ad Performance Report
- Adgroup Performance Report
- Campaign Performance Report
- Keywords Performance Report
- Audience Performance Report (Not support)
- Date Range:
- Using TD Console
- Using CLI and Workflow
- Migration Guide
- Query Migration Tool
- Query Validator
- Query Builder
Go to Integration Hub > Sources. Search for your scheduled Google Adwords source, select the source and select Edit.

In the dialog box, copy the settings to use later:

Also copy any advanced settings:

Next, you configure one final run with the legacy data connector to create a temporary table against which you can run a config-diff. You use the diff to identify and confirm the latest data imported into Treasure Data.

Before running the final import with the legacy connector, make sure that you change the schedule to one run only:

After the job is complete, look at and copy config_diff in the job query information somewhere to use later.

Go to Integration Hub > Authentication. Search for the new Google Ads V2 connection that you created:

Select the New Source. Fill in all basic settings and advanced settings that you copied in the preceding steps.

After completing the settings, choose the database and table job to populate data into, then schedule the job and provide a name for your new data connector. Select Save and then run the new data connector.
Update in: type in your yml configuration from google_adwords to google_adwords_v2.
For example, your existing workflow configuration might look something like this:
in:
type: google_adwords
client_id: ${client_id}
client_secret: ${client_secret}
refresh_token: ${refresh_token}
client_customer_id: ${client_customer_id}
target: KEYWORDS_PERFORMANCE_REPORT
include_predefined_metrics: true
developer_token: ${developer_token}
date_range: "TODAY"
out: {}
exec: {}
filters: []Your new workflow configuration would look like this:
in:
type: google_adwords_v2
client_id: ${client_id}
client_secret: ${client_secret}
refresh_token: ${refresh_token}
client_customer_id: ${client_customer_id}
target: KEYWORDS_PERFORMANCE_REPORT
include_predefined_metrics: true
developer_token: ${developer_token}
enable_multiple_page: false
date_range: "TODAY"
out: {}
exec: {}
filters: []https://developers.google.com/google-ads/api/docs/migration
https://developers.google.com/google-ads/api/docs/migration/query-migration-tool
https://developers.google.com/google-ads/api/fields/v10/query_validator
https://developers.google.com/google-ads/api/fields/v10/ad_group_audience_view_query_builder