The search method requires a SearchGoogleAdsRequest
, which consists of the following attributes:
customer_id
.query
that indicates which resource to query, the attributes, segments, and metrics to retrieve, and the conditions to use to restrict which objects are returned.page_size
to indicate how many objects to return in a single response when using paging.page_token
to retrieve the next batch of results when using paging.For more information on the Google Ads Query Language, check out the Google Ads Query Language guide.
and on paging:
Whenever you are retrieving a large number of objects, you'll want to specify the page_size
in your request. This will break up the result set of the query into multiple responses that each contain up to page_size
objects.
For example, if your account contains 50,000 keywords, the result set for the following query will contain 50,000 GoogleAdsRow
objects:
SELECT ad_group.id, ad_group_criterion.type, ad_group_criterion.criterion_id,
ad_group_criterion.keyword.text, ad_group_criterion.keyword.match_type
FROM ad_group_criterion
WHERE ad_group_criterion.type = KEYWORD
To avoid receiving a single response containing all rows in the result set, you can specify a page_size
of 1000
so that the Google Ads API will return only the first one thousand rows in the first response, along with a next_page_token
. To retrieve the next one thousand rows, simply send the request again, but update the request's page_token
to the response's next_page_token
.
Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/c7373fed-1fd1-4195-af68-56d3e83a51dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/0541aea5-382c-4acc-a7bd-6b4a5f8f26af%40googlegroups.com.