Hi Grant, if you're only interested in the total number, you can set the numberResults of the paging settings to zero and just use the totalNumEntries field of the returned page. This way, your request should not incur any API unit costs.
Cheers, Dorian On Friday, July 27, 2012 12:48:54 PM UTC+2, Grant wrote: > > I'm trying to retrieve the total number of keywords in a campaign. To > avoid exceeding the size limit, I'm grabbing the number of keywords for > each ad group in the campaign and adding them up. To do this I'm creating > a selector and using AdGroupCriterionService but it is very expensive as > far as API units. Is there a more efficient way to do this? > > - Grant > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
