Hi,

Thank you for reaching out. In Google Ads API perspective, page_token and
next_page_token doesn't have to be specified. These two are automatically
generated when you execute your request. So for example, you have 300 ads
and you set the page_size to 100, when you execute the request, the API
will generate a response with the next_page_token together with the first
100 results. Then, the API will automatically make an API call until it
retrieves all the results.

Feel free to write back if you have further clarifications.

Regards,
Dave
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 05/15/19 03:45:29 jarrodthue...@gmail.com wrote:

I've seen the obvious response to paging issues "use a library", but I
don't have that ability. I have to use cURL.

Here's what the documentation states about paging:
Making a request

The search method requires a SearchGoogleAdsRequest
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.services#google.ads.googleads.v1.services.SearchGoogleAdsRequest>,
which consists of the following attributes:

   - A customer_id.
   - A Google Ads Query Language 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.
   - A page_size to indicate how many objects to return in a single
   response when using paging
<https://developers.google.com/google-ads/api/docs/concepts/retrieving-objects#paging_through_results>
   .
   - An optional page_token to retrieve the next batch of results when
   using paging
<https://developers.google.com/google-ads/api/docs/concepts/retrieving-objects#paging_through_results>
   .

For more information on the Google Ads Query Language, check out the Google
Ads Query Language guide
<https://developers.google.com/google-ads/api/docs/query/overview>.


and on paging:
Paging through results

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.

So my question is where do I specify the page_token?

Thanks!

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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+unsubscr...@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
<https://groups.google.com/d/msgid/adwords-api/c7373fed-1fd1-4195-af68-56d3e83a51dc%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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+unsubscr...@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/18i5ti80000000010gt3r2000109n2z6smj8e9h68o30c1g68r30dpj%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • How do ... Jarrod Thuener
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... Jarrod Thuener
        • ... Jarrod Thuener
          • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
            • ... Jarrod Thuener

Reply via email to