To clarify, I meant to say that ordering of IDs is not guaranteed and 
should not be relied upon.  Please don't make any assumptions about IDs 
other than that they are unique.

- Kevin Winter
AdWords API Team

On Monday, July 30, 2012 11:19:01 AM UTC-4, Kevin Winter wrote:
>
> Hi Brandon,
>   Campaign IDs are roughly incremental.  That is, a campaign created a 
> year ago will have a lower ID than the one created today (to the best of my 
> knowledge).  However, this is guaranteed.  We do guarantee that IDs will be 
> unique, but with no constraint on ordering.
>
> In general, there are better ways to approach this.  For services that use 
> a generic selector, you can specify a Paging value to only retrieve N 
> results at a time.  However, the CustomerSyncService uses its own 
> selector<https://developers.google.com/adwords/api/docs/reference/latest/CustomerSyncService.CustomerSyncSelector>which
>  doesn't support paging.  It also doesn't support predicates, so your 
> proposed method will not work.  Instead we recommend to specify a smaller 
> time interval in the selector.  If you find retrieving everything for a day 
> to be overwhelming, change the date range to one hour and make 24 calls, 
> for example.
>
> - Kevin Winter
> AdWords API Team
>
> On Tuesday, July 17, 2012 4:43:59 PM UTC-4, Brandon Parise wrote:
>>
>> Are CampaignID's incremental?
>>
>> I am performing a CustomerSyncService operation but don't want to 
>> download the entire list of Campaign's each time.  I was thinking of using 
>> the MAX(CampaignID) from my previous sync as a predicate to only fetch 
>> *NEW* campaigns since my last sync:
>>
>> <?php
>> $max = '12345'; // saved from my last sync (saved in local db)
>> $selector->predicates []= new \Predicate('CampaignId', 'GREATER_THAN', 
>> array($max));
>> ?>
>>
>> So only CampaignId's > 12345 would need to be pulled down, thoughts?
>>
>> Brandon
>>
>

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