About Google Ads API “Page token is invalid

105 views
Skip to first unread message

yuta

unread,
Apr 15, 2025, 8:25:14 AM4/15/25
to Google Ads API and AdWords API Forum
Hi, 

I have more than 10,000 results in the Search term view,
For example, if there are 80,000 entries,
I want to get all of them in a batch system,
I am using the next page token to retrieve the 10,000 items one at a time,
However, even if the interval is 5 or 6 seconds, the message “Page token is invalid” is always given at some point.
As a result, the daily access limit (15,000 accesses) is reduced.
Isn't this a glitch?

Thank you.

Google Ads API Forum Advisor

unread,
Apr 15, 2025, 9:48:32 AM4/15/25
to ueki...@growfit.co.jp, adwor...@googlegroups.com

Hi,

Thank you for contacting the Google Ads API support team.

By reviewing your concern, I understand that you are encountering ‘INVALID_PAGE_TOKEN’ error. In order to assist you further, could you please provide us with  complete API logs (request and response with request-id and request header) that are generated at your end.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

I would always recommend using the searchStream method, because it's much better suited for handling large payloads.


Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-04-15 13:47:45Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01pSv5H:ref" (ADR-00300023)



Reply all
Reply to author
Forward
0 new messages