I have a similar issue where if I told it to return all the campaign 
targets for an account it threw RESPONSE_SIZE_

LIMIT_EXCEEDED. 

Whereas if I told it to return all the campaign targets for an account 
while then defining all the campaign IDs within that account as the target 
it returns fine.

I'm using ruby, but you should be able to follow what's going on...

Return all CampaignTargets for the account...

> targets = AdwordsService::CampaignTarget.new(account).targets()
> RESPONSE_SIZE_LIMIT_EXCEEDED
>
Return all CampaignTargets for the account, but specify every campaign ID...
 

> targets = 
> AdwordsService::CampaignTarget.new(account).targets(campaigns.map { |c| 
> c[0] })
> OK
>
I've already got backup code in-case this workaround stops functioning. 
Group the campaign IDs into batches of 60 (examples figure, as this will 
vary depending on the number of targets on campaigns) then request the 
campaign targets, then inject them back together.

targets = campaigns.map { |c| c[0] }.each_slice(60).inject([]) do 
> |result,grouped_campaigns|
>   result << 
> AdwordsService::CampaignTarget.new(account).targets(grouped_campaigns)
> end.inject({}) {|hash,target_list| hash.update(target_list) } 
>
 
I was doing something similar with AdExtensions until we upgraded to the 
latest API version and could pull extension reports.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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