customer sync service changed criteria

41 views
Skip to first unread message

cv

unread,
Feb 12, 2019, 8:09:54 AM2/12/19
to AdWords API and Google Ads API Forum
Hello,

I am getting CampaignChangeData object as this.
Google\AdsApi\AdWords\v201809\ch\CampaignChangeData Object
                (
                    [campaignId:protected] => 1649XX1490
                    [campaignChangeStatus:protected] => FIELDS_UNCHANGED
                    [changedAdGroups:protected] => Array
                        (
                            [0] => Google\AdsApi\AdWords\v201809\ch\AdGroupChangeData Object
                                (
                                    [adGroupId:protected] => 6324XX47495
                                    [adGroupChangeStatus:protected] => FIELDS_UNCHANGED
                                    [changedAds:protected] => 
                                    [changedCriteria:protected] => Array
                                        (
                                            [0] => 32449XX34890
                                        )

                                    [removedCriteria:protected] => 
                                    [changedFeeds:protected] => 
                                    [removedFeeds:protected] => 
                                    [changedAdGroupBidModifierCriteria:protected] => 
                                    [removedAdGroupBidModifierCriteria:protected] => 
                                )

                            [1] => Google\AdsApi\AdWords\v201809\ch\AdGroupChangeData Object
                                (
                                    [adGroupId:protected] => 6359XX28219
                                    [adGroupChangeStatus:protected] => FIELDS_UNCHANGED
                                    [changedAds:protected] => 
                                    [changedCriteria:protected] => Array
                                        (
                                            [0] => 38254XX98087
                                        )

                                    [removedCriteria:protected] => 
                                    [changedFeeds:protected] => 
                                    [removedFeeds:protected] => 
                                    [changedAdGroupBidModifierCriteria:protected] => 
                                    [removedAdGroupBidModifierCriteria:protected] => 
                                )

                            [2] => Google\AdsApi\AdWords\v201809\ch\AdGroupChangeData Object
                                (
                                    [adGroupId:protected] => 6359XX28379
                                    [adGroupChangeStatus:protected] => FIELDS_UNCHANGED
                                    [changedAds:protected] => 
                                    [changedCriteria:protected] => Array
                                        (
                                            [0] => 32314XX32630
                                            [1] => 37203XX13364
                                        )

                                    [removedCriteria:protected] => 
                                    [changedFeeds:protected] => 
                                    [removedFeeds:protected] => 
                                    [changedAdGroupBidModifierCriteria:protected] => 
                                    [removedAdGroupBidModifierCriteria:protected] => 
                                )

                        )

                    [addedCampaignCriteria:protected] => 
                    [removedCampaignCriteria:protected] => 
                    [changedFeeds:protected] => 
                    [removedFeeds:protected] => 
                )

Can I consider changedCriteria, towards changes done on that particular timeframe?

Thanks,

googleadsapi...@google.com

unread,
Feb 12, 2019, 3:24:26 PM2/12/19
to AdWords API and Google Ads API Forum
Hello Chirag, 

The CustomerSyncService.get() operation will return the changed entities for a customer account or campaign based on the given date range. You will be able to use the lastChangeTimestamp from the response to determine the validity period for the data. The dateTimeRange will return the entities that have changed during the specified time range. 

Let me know if you have any other questions. 

Regards,
Bharani, AdWords API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

cv

unread,
Feb 13, 2019, 12:28:13 AM2/13/19
to AdWords API and Google Ads API Forum
Hello Bharani,

Thanks for the update , but I know how the customerSyncService is worked.

My original question is the changes shown under the response as
                                                                            [changedCriteria:protected] => Array
                                        (
                                            [0] => 32314XX32630
                                            [1] => 37203XX13364
                                        )
this.

Should this changes shown under the changedCriteria:protected also part of changes for changed history?

googleadsapi...@google.com

unread,
Feb 13, 2019, 11:58:58 AM2/13/19
to AdWords API and Google Ads API Forum
Hello Chirag, 

The AdGroupChangeData will include the IDs of the changedCriteria. In your response the returned criteria IDs are for which the changes were made in that specific ad group. If this does not address your concern, could you please elaborate?

Thanks,
Bharani, AdWords API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

cv

unread,
Feb 14, 2019, 1:17:59 AM2/14/19
to AdWords API and Google Ads API Forum
Hello Bharani,

Yes, there were a issue.

I am seeing AdGroupChangeData under the API, but under the UI last change was recorded on 11Jan2019.
No idea what the change is about, that I am receiving under the API, but not in UI.


Thanks,

googleadsapi...@google.com

unread,
Feb 14, 2019, 2:00:30 PM2/14/19
to AdWords API and Google Ads API Forum
Hello Chirag, 

Could you please enable the logging and share the API SOAP request and response logs to troubleshoot this further? You may refer to the logging guide in the respective client library for guidance on how to enable logging. Steps to enable logging in Java can be found here. You can share the details privately via Reply privately to author option.

Regards,
Bharani, AdWords API Team
Reply all
Reply to author
Forward
0 new messages