How to get information of only changed campaign from change history using CustomerSyncService?

50 views
Skip to first unread message

Eshwar Chettri

unread,
Mar 9, 2017, 9:40:45 AM3/9/17
to AdWords API Forum
Hi,
  I came across that using CustomerSyncService we get all the campaign Ids present in adwords then using CampaignChangeData it returns the changed field from changed history,I want to know how can we get only the campaign ids of changed campaign and newly added campaign from changed history.(instead of getting all the campaign Ids then filtering can we get only the Ids of those campaign which we changed or added newly and also the adgroups,keywords and adcopies )

Thanks & Regards,
  Eshwar.

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Mar 9, 2017, 2:06:29 PM3/9/17
to AdWords API Forum
Hi Eshwar, 

The CustomerSyncService will return all the campaigns irrespective of whether it was changed or not. However, you can use the CampaignChangeStatus to determine if the campaign was changed, added new etc. The AdGroups that were not changed will be ignored by this service. Unfortunately, there is no other API service which returns the changed values. If you are interested, you can check the sample for CustomerSyncService (Java). Samples in other languages can be found here

The CustomerSyncService will always return a CustomerChangeData object, which then has further sub-objects for CampaignChangeData and AdGroupChangeData. You can find changed ads and criteria (including keywords) in the AdGroupChangeData.

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