How to fetch newly created Campaign Object via CustomerSyncService ?

43 views
Skip to first unread message

serkan remzi kucukbay

unread,
Feb 5, 2016, 8:23:06 AM2/5/16
to AdWords API Forum
Hi everyone,
I faced a problem while fetching newly created Campaign via 'CustomerSyncService'. Mentioned service forces to set array of campaign id in Selector object so i just can fetch changes related with given campaigns.
Is it possible to fetch newly created campaign via CustomerSyncService? 

I am looking forward your advice, thanks.. 

Yin Niu

unread,
Feb 5, 2016, 12:36:11 PM2/5/16
to AdWords API Forum
Hello, 

You can use CustomerSyncService to retrieve changed entities for a customer account or campaign based on given date range. There is an example "GetAccountChanges" in sample code. If you want to get newly created Campaign, you can use CampaignService. 

Thanks,
Yin, AdWords API Team

serkan remzi kucukbay

unread,
Feb 9, 2016, 10:17:06 AM2/9/16
to AdWords API Forum
Hi Yin Niu,

Thanks for your answer.

My Understanding is that fetching newly created campaign is impossible with CustomerSyncService. 
Because if i don't set campaign id in CustomerSyncSelector, service throws error like that ( <faultstring>[CustomerSyncError.MISSING_IDS @ selector.campaignIds]</faultstring> ), so i need set campaign id or feed id to call mentioned service in proper way.

I think to fetch newly created campaign, i need to fetch all campaign for related customer then i need to find which is not stored my local db. After these steps,  i can store new campaigns in my local db.

Thanks.

Serkan Kucukbay
Reply all
Reply to author
Forward
0 new messages