Let’s address the section that might be of most interest. We are offering this compilation due to the difficulty we faced in finding the correct information during the migration of our scripts. I hope that if you are in the same desperate process, it may prove very useful to you.
NOTE: If the following links lead you to a Google Service Unavailable page, reloading the page should make the content available.
To begin with, here you will find an article with a good introduction to the different types of queries that can be performed in the scripts with GAQL and it includes a couple of interesting videos that also lead you to the official YouTube channel of GAds Developers, where other useful resources can be found:
Google Ads Query Language
We mentioned it before, but a key page in migrating Scripts to the new experience is the query migration tool. The following tool can be used to translate AWQL queries to GAQL. If for some reason it appears as unavailable in your browser, I recommend trying in incognito mode.
Query Migration Tool
This page offers an extraordinarily useful list with the equivalence of all the resources available in the old AdWords API and in the new Google Ads API. This page is of great value when converting old queries to the new language.:
Resource Mappings
Here you will find the list of available resources that can be used in the scripts’ queries in the FROM clause (ad_group, ad_group_ad, campaign, keyword_view, bidding_strategy in summary, all), with a very useful description of each resource:
Google Ads Query Builder
A very powerful tool is the following Google Ads Query Builder, which allows us to construct queries for each of the available resources (included in the link above) for each of the Query fields (SELECT, WHERE, ORDER BY, LIMIT, and PARAMETERS) from dropdowns that exclusively show us the valid elements for that specific query. The following link leads you to the accessible_bidding_strategy resource but on the left sidebar, you can find the resource that interests you.
Google Ads Query Builder
Complementing the previous one, we find the query validator: It allows you to enter a query and submit it. If the entered query is valid, you can continue editing using the interactive query builder. Otherwise, you are presented with a list of errors, which can be progressively corrected to create a valid GAQL query.
Google Ads Query Builder (Validator)
Just like in the old Scripts experience, we also have available a detailed listing of each one of the available fields (metrics, segments, and resources) for each report. For example, in the following link, we have the page equivalent to the Keyword_Performance_Report, now Keyword_view.
On this page, all metrics and segments that can be placed in the SELECT clause for a keyword_view query are displayed. However, when using keyword_view in the FROM clause, some metrics and segments cannot be used. Using the filter that appears under general information, only the fields available when specifying keyword_view in the FROM clause are displayed.
It is crucial to consider that the list of operators in the WHERE clause is different. In the following article, a detailed list of valid operators is shown, as well as those that cease to be functional:
Querying in the Google Ads API
We hope you find these resources helpful. You can share with us your difficulties with migration, and let’s make this task less arduous together.