CustomerSyncServiceInterface: Get Changed campaigns only

37 views
Skip to first unread message

priya bahuguna

unread,
Mar 10, 2016, 5:49:59 PM3/10/16
to AdWords API Forum
Hello,

Is it possible to get only the altered campaignIds from CustomerSyncServiceInterface by just providing the accountId to the service? 
Currently we are looping through all the campaigns in an account and it takes a lot of time to check change data for them.

Please suggest.

Regards,
Priya

Umesh Dengale

unread,
Mar 11, 2016, 9:59:47 AM3/11/16
to AdWords API Forum
Hi Priya,

You could use the CustomerSyncService to get the changes related to the campaigns on given date range for a specific AdWords Account. Please check out our GetAccountChanges example code of Java client library. Other languages example code could be found here.

Regards,
Umesh, AdWords API Team.

priya bahuguna

unread,
Mar 11, 2016, 1:39:02 PM3/11/16
to AdWords API Forum
Hi Umesh,

Thanks for replying.

The example GetAccountChanges is passing all campaignIds in an account to CustomerSyncService via the selector.

 If a campaign is included in the selector it will be included in this list, even if the campaign did not change.
So is there no way just to get the Changed CampaignIds ? We have over 15000 campaigns and are polling changes for them then one by one. Is this approach okay?

Regards,
Priya

Umesh Dengale

unread,
Mar 11, 2016, 4:20:07 PM3/11/16
to AdWords API Forum
Hi Priya,

As you mentioned above if campaign is included in the selector, the CustomerChangeData.changedCampaigns will contain the list of campaigns, even if some of the campaigns didn't changed. You need to iterate over list of campaigns and filter out the campaigns based on the campaignChangeStatus

Thanks,
Umesh, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages