Hi,
 There's a known issue that causes the totalNumEntries to be incorrect for 
some types of campaign criteria.  We have a fix in the works, but in the 
meantime we recommend to make your paging logic increment the startIndex by 
page size (rather than number of criteria actually returned) and stop 
making requests when startIndex > totalNumEntries.  As far as we can tell, 
the response will always contain all the criteria visible via the API, but 
the number will incorrectly reflect more criteria (internal or not exposed 
via the API) than will be returned.

- Kevin Winter
AdWords API Team

On Tuesday, February 28, 2012 3:31:50 PM UTC-5, David Bonner wrote:
>
> I'm seeing some weird behavior, hoping someone else has seen it as well. 
>  I'm querying for campaign criteria, with a list of campaign ids as the 
> only predicate.  I've got paging turned on, with a page size of 5000.  The 
> first response gives me 71 criteria, and says there are a total of 79.  I 
> pull the second page, and get the final 8 criteria.  But all 8 of those are 
> duplicates.
>
> The dupes are for multiple campaigns, and there are multiple criteria 
> types in there as well.
>
> I assumed that I was simply missing a field that would differentiate the 
> two, but damned if I can figure out which.
>
>    <serviceSelector xsi3:type="cm:Selector">
>     <cm:fields>Address</cm:fields>
>     <cm:fields>AgeRangeType</cm:fields>
>     <cm:fields>CampaignId</cm:fields>
>     <cm:fields>CriteriaType</cm:fields>
>     <cm:fields>DisplayType</cm:fields>
>     <cm:fields>GeoPoint</cm:fields>
>     <cm:fields>Id</cm:fields>
>     <cm:fields>IsObsolete</cm:fields>
>     <cm:fields>KeywordMatchType</cm:fields>
>     <cm:fields>KeywordText</cm:fields>
>     <cm:fields>LanguageCode</cm:fields>
>     <cm:fields>LanguageName</cm:fields>
>     <cm:fields>LocationName</cm:fields>
>     <cm:fields>ParentLocations</cm:fields>
>     <cm:fields>PlacementUrl</cm:fields>
>     <cm:fields>PlatformName</cm:fields>
>     <cm:fields>RadiusDistanceUnits</cm:fields>
>     <cm:fields>RadiusInUnits</cm:fields>
>     <cm:predicates xsi3:type="cm:Predicate">
>      <cm:field>CampaignId</cm:field>
>      <cm:operator>IN</cm:operator>
>          <SNIP CAMPAIGN IDS>
>     </cm:predicates>
>     <cm:paging xsi3:type="cm:Paging">
>      <cm:startIndex>0</cm:startIndex>
>      <cm:numberResults>5000</cm:numberResults>
>     </cm:paging>
>    </serviceSelector>
>
> This is in python, with adspygoogle 15.1.4.
>

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