Hi Visar,

You would want to advance the paging index if the number of entries in the 
underlying result set will exceed the page size or the system limit of 
10,000 results per page.  For example, if you have a page size of 50 but 
you have 100 campaigns, then a request with startIndex = 0 and pageSize = 
50 will give you the first 50 campaigns, and a request with startIndex = 50 
and pageSize = 50 will give you the next 50 campaigns.

We recommend specifying a pageSize to avoid 
SizeLimitError<https://developers.google.com/adwords/api/docs/appendix/limits#general>.
 
 The 
GetCampaigns.php<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201402/BasicOperations/GetCampaigns.php#L51>
 example 
illustrates the approach I described above.

Cheers,
Josh, AdWords API Team

On Wednesday, April 16, 2014 7:03:05 AM UTC-4, Visar wrote:
>
> Hi Guys,
>
> I just had a question about paging. When performing a get operation, is 
> there any reason to use paging and advance the paging index, i.e. is there 
> any reason I should not be directly looping through the results like this:
>
> $page = $campaignCriterionService->get($selector);
> foreach ($page->entries as $schedule) {
>   printf("CampaignID: " . $schedule->campaignId . "  ID: " . 
> $schedule->criterion->id . "\n");
> }
>
> Thanks
> Visar
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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/d/optout.

Reply via email to