Access "Change History" -> "All Changes" count in UI using API

196 views
Skip to first unread message

AFchris

unread,
May 12, 2021, 4:02:28 PM5/12/21
to AdWords API and Google Ads API Forum
Hi,

Based on what I could search in the group, we can query change_event to download the count, but we run into similar problem as Arshdeep reported on his "Ad changes" and "Keyword changes" in another thread.

Is there a bug that we should wait till it's fixed or should we use a different query?  This is our query now:

SELECT change_event.change_date_time
                FROM
                    change_event
                WHERE
                    change_event.change_date_time >= 20210501 AND
                    change_event.change_date_time <= 20210511 AND
                LIMIT 1000

Thank you for the help.

Andy

Google Ads API Forum Advisor Prod

unread,
May 13, 2021, 11:44:23 AM5/13/21
to autofus...@gmail.com, adwor...@googlegroups.com
Hi Andy,

Can you please provide screenshots and API logs that illustrate this behavior? Please do so using reply privately

Thanks,
Anthony

Google Logo
Anthony
Google Ads API Team
 


ref:_00D1U1174p._5004Q2HASpy:ref

AFchris

unread,
May 17, 2021, 12:45:13 PM5/17/21
to AdWords API and Google Ads API Forum
Hi Anthony,

By reply privately, do I use the "Reply to author"?  I don't think I have the permission to do so as the button is grayed out.  Thanks.

Andy

Google Ads API Forum Advisor Prod

unread,
May 17, 2021, 2:52:00 PM5/17/21
to autofus...@gmail.com, adwor...@googlegroups.com
Hi Andy,

If you are unable to reply privately, you can email us at googleadsa...@google.com.

Regards,

Autofusion Inc

unread,
May 17, 2021, 3:18:16 PM5/17/21
to AdWords API and Google Ads API Forum
Hi Anthony,

Thank you.  That's what I figured by reading the other thread.  I have emailed googleadsa...@google.com this morning using my company email with the log and screen shot.  Please let me know if you needed anything else.  Thank you!

Andy

Google Ads API Forum Advisor Prod

unread,
May 17, 2021, 4:15:13 PM5/17/21
to autofus...@gmail.com, adwor...@googlegroups.com

Hi Andy,

Thanks for providing the details. Someone from our team should reach out to you shortly.

Cheers,
Anthony

cv

unread,
May 25, 2021, 1:16:19 AM5/25/21
to AdWords API and Google Ads API Forum
Hi Andy,

Is this possible? Any positive response you received? Or you are able to achieve this?

Thanks,

Google Ads API Forum Advisor Prod

unread,
May 25, 2021, 2:36:49 PM5/25/21
to chirag....@gmail.com, adwor...@googlegroups.com
Hello,

The change event service only reports on changes from specific sources. It's likely that the changes that are not being reflected in the change event results are from different sources. One of the key ones that is not reported is the old AdWords API. 

If you would like us to take a closer look at your reports, please send them over privately.

Regards,

Autofusion Inc

unread,
May 25, 2021, 3:04:09 PM5/25/21
to AdWords API and Google Ads API Forum
Hi cv,

Based on my email back and forth with the API team, we've isolated some of the count I am not seeing are related to video campaigns which changes are not tracked by the API.  I am able to get an accurate count with GetChangeDetails.php for the activity in the last week, so it does work to some extent.  But for the month, there are a lot missing, and it will probably take time and effort to isolate what changes are not tracked.  All in all, at this point I don't think the API could provide what we are looking for which is the count of "All Changes" in the ads.google.com UI.

Thanks.

cv

unread,
May 26, 2021, 1:30:52 AM5/26/21
to AdWords API and Google Ads API Forum
Hello Andy,

Thanks for your response.
Yes, I would also able to manage it. But I have issue. Like GetChangeDetails.php is providing response in hirerchy.

So in some case we have not changes parent entity but it would still return.

If you can share small code snippet would be helpful.

Thanks,

Autofusion Inc

unread,
May 26, 2021, 11:38:56 AM5/26/21
to AdWords API and Google Ads API Forum
I am not sure what you mean by response in hierarchy.  We are using GetChangeDetails.php from the Github almost as is.   The only change is an extra option to $googleAdsClient as we are accessing our client's adwords account from a manager account.

         $googleAdsClient = (new GoogleAdsClientBuilder())->fromFile()
            ->withOAuth2Credential($oAuth2Credential)
            ->withLoginCustomerId($ROOT_CUSTOMER_ID)
            ->build();

$ROOT_CUSTOMER_ID is our manager account's customer id.   Maybe this is what you have trouble with.

Google Ads API Forum Advisor Prod

unread,
May 26, 2021, 1:23:47 PM5/26/21
to autofus...@gmail.com, adwor...@googlegroups.com
Hello,

This case has been escalated to me.

As I mentioned on the other thread, the change status in the Google Ads API is more complete than the Change History in the web interface, and includes for example changes that are made automatically by Google backend systems.

If this doesn't explain your concern, then please outline what remains to be explained so that I can make sure I take a close look at exactly what's still problematic.

Regards,
Mike, Google Ads API Team

ref:_00D1U1174p._5004Q2HASpy:ref

cv

unread,
May 27, 2021, 1:10:19 AM5/27/21
to AdWords API and Google Ads API Forum
HI Andy,

No, I am aware of this, and I am using this API since long.
Hierarchy means "You can retrieve the list of all changes for all resource types. The returned resource_type is the field that changed. Any parent fields are also populated. For example, if the ad_group_criterion changed, then the ad_group field will also be populated."

That means If we do ad_group_criterion  changes it will also return as ad_group change which is duplicate since We ahve not done any changes to ad_group.

Thanks,

Google Ads API Forum Advisor Prod

unread,
May 27, 2021, 7:09:23 AM5/27/21
to chirag....@gmail.com, adwor...@googlegroups.com
Hello,

If you would like to restrict change event to only returning changes to a particular entity type, you can specify a filter on the change_resource_type field. Similarly, if you want to know what type of entity was changed for a particular row, you should fetch the change_resource_type field. You should not rely on the presence/absence of different resource names to determine which entity type was changed.

Regards,
Mike, Google Ads API Team

ref:_00D1U1174p._5004Q2HASpy:ref
Reply all
Reply to author
Forward
0 new messages