Stay organized with collections
Save and categorize content based on your preferences.
In the Google Ads API, each criteria report is represented by a separate resource.
Unless otherwise necessary, *_view resources contain only a resource_name
field.
Google Ads API clients need to specify corresponding ad_group_criterion or
campaign_criterion fields if any criteria specific data needs to be fetched.
This lets Google Ads API clients request ad_group_criterion or campaign_criterion
fields and the *_view resource in the same request to the
GoogleAdsService.SearchStream
method.
To retrieve performance data (metrics) for a specific criteria type, specify its
corresponding view resource in the FROM clause. For example, use
keyword_view in the FROM clause and some metrics fields in the SELECT
clause to retrieve keyword metrics.
You can select fields from parent resources all the way up to customer from a
criteria view. For example, when selecting FROM the keyword_view, you can
request fields from all of the following resources:
ad_group_criterion
ad_group
campaign
customer
You can discover the resources that can be requested in this way for a given
resource by checking the Attribute Resources row of its reference page. For
example, for keyword_view, you can find its resources on its reference
page.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[[["Each criteria report in the Google Ads API is a separate resource, and clients need to specify `ad_group_criterion` or `campaign_criterion` fields to fetch specific criteria data."],["To get performance data for a criteria type, use its corresponding view resource (e.g., `keyword_view`) in the `FROM` clause of your query."],["You can retrieve data from parent resources, like `ad_group`, `campaign`, and `customer`, when querying a criteria view."],["The \"Attribute Resources\" section on a resource's reference page shows which related resources can be included in your queries."]]],[]]