Hi Josh,

I know that. However the *totalNumEntries *returned is not the real number 
of *CriterionBidLandscape* objects, it is smaller. There are more *
CriterionBidLandscape* objects that we see in the web interface. So if this 
value is not correct we cannot paginate the results of the query.

I thnik that there must be a problem here because the number of landscape 
points (*BidLandscapeLandscapePoint *objects) returned is exactly 10.000 
which matches the results per page limit (according to 
https://developers.google.com/adwords/api/docs/appendix/limits).

Any idea?

Thanks,
Gabriel






On Friday, October 18, 2013 12:13:31 PM UTC-2, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi Gabriel,
>
> The *totalNumEntries* indicates the total number of *CriterionBidLandscape
> * objects.  Each *CriterionBidLandscape* can contain multiple *
> BidLandscapeLandscapePoint* objects (one per specific bid amount). 
>  Please see the following documentation for details:
>
>
> https://developers.google.com/adwords/api/docs/reference/v201309/DataService.CriterionBidLandscape
>
> Best,
> Josh, AdWords API Team
>
> On Thursday, October 10, 2013 9:06:39 AM UTC-4, [email protected]:
>>
>> Hi,
>>
>> The totalNumEntries returned by the operation getCriterionBidLandscape 
>> of the DataService is not correct when I try to use paging.
>>
>> I am using the .net client library and the version v201306 of the api.
>>
>> Below is an extract of my code.
>>
>> Any help will be appreciated.
>>
>> Thanks in advance,
>> Gabriel
>>
>>             // Gets the DataService
>>             DataService dataService = 
>> (DataService)user.GetService(AdWordsService.v201306.DataService);
>>  
>>             // Creates the selector.
>>             Selector selector = new Selector();
>>             selector.fields = new string[] { "CampaignId", "StartDate", 
>> "EndDate", "LocalImpressions", "LocalClicks", "LocalCost", "Bid", 
>> "MarginalCpc" };
>>  
>>             // Creates the predicate to filter the bid lanscapes for the 
>> selected keywords
>>             Predicate criterionPredicate = new Predicate();
>>             criterionPredicate.field = "CriterionId";
>>             criterionPredicate.@operator = PredicateOperator.IN;
>>             criterionPredicate.values = 
>> adGroupCriterionPage.entries.Select(k => 
>> k.criterion.id.ToString()).ToArray();
>>  
>>             selector.predicates = new Predicate[] { adGroupPredicate, 
>> criterionPredicate };
>>  
>>             // Creates paging controls
>>             selector.paging = new Paging();
>>             selector.paging.startIndex = 0;
>>             selector.paging.numberResults = 10000;
>>  
>>             CriterionBidLandscapePage criterionBidLandscapePage = null;
>>             do
>>             {
>>                 try
>>                 {
>>                     // Gets bid landscapes for the selected keywords
>>                     criterionBidLandscapePage = 
>> dataService.getCriterionBidLandscape(selector);
>>  
>>                     // Use criterionBidLandscapePage entries data
>>                 }
>>                 catch (Exception ex)
>>                 {
>>                     // Handle Error
>>                 }
>>  
>>                 selector.paging.startIndex += 10000;
>>             } 
>>             while (criterionBidLandscapePage.totalNumEntries > 
>> selector.paging.startIndex);
>>
>>
>>
>>

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

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to