Received message larger than max (8665164 vs. 4194304) - Google Ads V1

718 views
Skip to first unread message

Rajesh Naveen

unread,
May 16, 2019, 6:38:08 AM5/16/19
to AdWords API and Google Ads API Forum
Hi,
I am getting exception while retrieving Price Feed Items

Status(StatusCode=ResourceExhausted, Detail="Received message larger than max (8665164 vs. 4194304)") 

googleadsapi...@google.com

unread,
May 16, 2019, 2:10:15 PM5/16/19
to AdWords API and Google Ads API Forum
Hello Rajesh,

The ResourceExhaused error will occur if you are sending too many requests in a short period of time. The best solution to this is to set up short delays between requests or combine more operations in fewer requests. Please refer to the Best practices guide to optimize the performance. If you're still facing an issue, could you please share the API request and response logs to check this further?

Regards,
Sai Teja, 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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Mat

unread,
May 17, 2019, 11:04:19 AM5/17/19
to AdWords API and Google Ads API Forum
Hi Rajesh,

While the maximum "page_size" of a search query is 10.000, this might exeed its 4MB-Limit (that's the "4194304" in the error message). Your response would be 8665164 Bytes (B) = 8.26 Megabytes (MB) large.

I've had this error before and I solved it by lowering the "page_size" of the search query.
Try something like this:


results = ga_service.search(customer_id, query=query, page_size=2500)

Regards
Mat
Reply all
Reply to author
Forward
0 new messages