Hi All,

I am facing a very typical problem.

I have 11700 Keywords and i try to get the keyword using
AdGroupCriterionService, Initial it throws an exception
RESPONSE_SIZE_LIMIT_EXCEEDE.

But i know that reason. So i try to add paging to the request.

Here is the code.

AdGroupCriterionServiceInterface criterionService =
googleServiceFactory.getAdWordsService(user,
AdWordsService.V201008.ADGROUP_CRITERION_SERVICE);
AdGroupCriterionIdFilter[] idFilters = {new
AdGroupCriterionIdFilter(googleCampaign.getId(),null, null)} ;
AdGroupCriterionSelector agcSelector = new
AdGroupCriterionSelector(idFilters , null, null, null, null, null);
agcSelector.setIdFilters(idFilters);
agcSelector.setCriterionUse(CriterionUse.BIDDABLE);
Integer startIndex = 0;
Integer endIndex = 5000;
Paging paging = new Paging();
paging.setStartIndex(startIndex);
paging.setNumberResults(endIndex);
agcSelector.setPaging(paging);
AdGroupCriterionPage criterionPage =
criterionService.get(agcSelector);

This works fine. And i can get all the 5000 keywords.

But when i try to iterate and increment the EndIndex and StartIndex ..
to
startIndex = endIndex ;
endIndex = startIndex + 5000;

I can get values till 6700 and then it says


java.lang.ArrayIndexOutOfBoundsException: 6700
        at
com.google.api.adwords.v201008.cm.AdGroupCriterionPage.getEntries(cm:AdGroupCriterionPage.java):
53)

Does the GetEntries has any size limit too ?

Can some one tell me what to do.. I have done everything what Adwords
have told in previous questions. But i did not get it work.

Quick reply is appreciated !!

thank you guys

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to