API limits START_INDEX_IS_TOO_HIGH

43 views
Skip to first unread message

Ivan Ryazanov

unread,
Aug 19, 2020, 2:30:11 AM8/19/20
to AdWords API and Google Ads API Forum
Hi!  According to API docs we have a limit in 100,000 for start index of request. https://developers.google.com/adwords/api/docs/appendix/limits#general

I'm trying to get Ad Group Criteria but I get START_INDEX_IS_TOO_HIGH instead of.

ApiException{applicationExceptionType=ApiException, errors=[SelectorError{apiErrorType=SelectorError, errorString=SelectorError.START_INDEX_IS_TOO_HIGH, fieldPath=, reason=START_INDEX_IS_TOO_HIGH, trigger=1001000}]}

Could you please clarify why I get this error at 1 000, 000 ?  Why not 100,000? Is it a mistake in docs? 

Zorion

unread,
Aug 19, 2020, 7:46:29 AM8/19/20
to AdWords API and Google Ads API Forum
Hi Ivan,
The error message seems to point that the start index is 1001000 (1,001,000) which is bigger than 100000 (100,000).
Perhaps I read it wrong, sorry if that's the case, just dismiss my reply.

In order to work with that limit we use the order by clause to the key of the object and when we reach the start_index_too_high we filter the last key found.
There are some complexities when the key is compound (like the ad group criterions) but we manage them with simple ">=" filters, ordering both keys and dismissing some repeated results.

I hope it helps.

Ivan Ryazanov

unread,
Aug 19, 2020, 8:15:57 AM8/19/20
to AdWords API and Google Ads API Forum
Hi, Zorion! Thank you for the last answer. 

You wrote 1 001, 000 is bigger than than 100, 000. Thats right and I get this error if I specify a starting index like this.
But! If I specify, for instance, 999, 999  as a starting index (which is also bigger that 100, 000) the API returns data successfully. 
So that limit is 1 000, 000.  Maybe docs give us wrong info about the limit in 100, 000?

Zorion Arrizabalaga Aguirre

unread,
Aug 19, 2020, 8:29:34 AM8/19/20
to iv...@fivetran.com, AdWords API and Google Ads API Forum
Hi Ivan,

For sure 999999 is bigger than 100000, so you are right and the documentation is not accurate.
If it works for 999999, good for you! Just don't rely on it. There are several objects types affected by START_INDEX so perhaps they don't have exactly the same limits and 100000 is the lowest one (a safe number).
You should manage it even if the documentation is not accurate in the exact limit.

Best regards!





--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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...@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 a topic in the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/f1SIyz7k98A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/21773575-2e8c-4604-b8bd-09cb7dd1fda6n%40googlegroups.com.

Google Ads API Forum Advisor Prod

unread,
Aug 19, 2020, 1:08:47 PM8/19/20
to zarriz...@g-n.com, iv...@fivetran.com, adwor...@googlegroups.com
Hi All,

I see that you're encountering a Start Index is too High error. Could you provide us with your request and response logs for where this error occurs so that I may further investigate this issue?

Thank you,
Bryan, Google Ads API Team

ref:_00D1U1174p._5004Q23LO5Q:ref
Reply all
Reply to author
Forward
0 new messages