New change_event in Google Ads scripts

382 views
Skip to first unread message

aa...@softwarepromotions.com

unread,
Feb 12, 2021, 7:38:28 PM2/12/21
to Google Ads Scripts Forum
Hello,

I'm trying to create a script that will email me what changes were made to an account yesterday.Ā 

I'm using the search Method in the AdsApp object to get at the change_event report:

This is the change_event report:

What I don't understand is that in some client accounts it's returning some data but in others, it's not retuning any data when I can clearly see data had changed.

For example, see this code:
var startTime = '2021-02-06';
var endTime = '2021-02-11';

function main() {
Ā 
Ā  var accountSelector = AdsManagerApp
Ā  Ā  Ā  Ā  .accounts()
Ā  Ā  Ā  Ā  .withIds(["XXX-XXX-XXXX"]);

Ā  var accountIterator = accountSelector.get();
Ā 
Ā  while (accountIterator.hasNext()) {
Ā  Ā  var account = accountIterator.next();
Ā  Ā  AdsManagerApp.select(account);Ā  Ā 
Ā  Ā  var accountName = account.getName();
Ā  Ā  var accountId = account.getCustomerId();
Ā  Ā  Logger.log(accountName + '(' + accountId + ') - ' + 'Starting to process account.');Ā  Ā Ā 

Ā  Ā  var query = "SELECT " +Ā 
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  "change_event.ad_group, " +
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  "change_event.campaign, " +
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  "change_event.change_date_time, " +
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  "change_event.change_resource_name, " +
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  "change_event.change_resource_type, " +
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  "change_event.changed_fields, " +
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  "change_event.client_type, " +
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  "change_event.feed, " +
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  "change_event.feed_item, " +
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  "change_event.new_resource, " +
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  "change_event.old_resource, " +
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  "change_event.resource_change_operation, " +
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  "change_event.resource_name, " +
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  "change_event.user_email " +
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  "FROM change_event " +
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  "WHERE change_event.change_date_time BETWEEN '" + startTime + "' and '" + endTime + "' " +Ā 
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  "ORDER BY change_event.change_date_time DESC " +Ā 
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  "LIMIT 100 ";
Ā  Ā 
Ā  Ā  Logger.log("query: " + query);
Ā  Ā  var result = AdsApp.search(query, {apiVersion: 'v6'});
Ā  Ā 
Ā  Ā  while (result.hasNext()) {
Ā  Ā  Ā  var row = result.next();
Ā  Ā  Ā  Logger.log(JSON.stringify(row));
Ā  Ā  }
Ā  Ā  Logger.log(accountName + '(' + accountId + ') - ' + 'Finished processing account.');
Ā  }
}

When I try this code on some client accounts, I see some data, not all of the data. In others, I see nothing when I should see changes that were made during those date ranges.Ā 

Do you know what I'm doing wrong here or is there a bug in this new report? The report seems to work when I run it via the Google Ads API.Ā 

Thanks and I look forward to your reply.

AaronĀ 








Google Ads Scripts Forum Advisor

unread,
Feb 15, 2021, 1:54:19 AM2/15/21
to adwords...@googlegroups.com

Hi Aaron,

Ā 

Thanks for reaching out. I am Harry from the Google Ads Scripts Team.

Ā 

Can you kindly provide your CID and the script name of where you are encountering the issue? Kindly provide also a sample comparison of the report and UI (Change History) where it shows the discrepancy you are referring to so that I would be able to check this on our end?

Ā 

Thanks,

Google Logo
Harry Cliford Rivera
Google Ads Scripts Team
Ā 


ref:_00D1U1174p._5004Q2CQapj:ref
Message has been deleted

aa...@softwarepromotions.com

unread,
Feb 15, 2021, 8:02:34 AM2/15/21
to Google Ads Scripts Forum
I recently emailed this information over to the following email address:
Google Ads Scripts Direct Support email address

Are you able to see that?

If not, how can I get that over to you privately?

Thanks and I look forward to your reply.

Aaron



Google Ads Scripts Forum Advisor

unread,
Feb 16, 2021, 2:07:33 AM2/16/21
to adwords...@googlegroups.com

Hi Aaron,

Ā 

Thanks for pointing that out. However, I am unable to find any instance that your script that checks for change events has been executed in the CID that you have provided. Can you kindly provide me thisĀ (script history execution or the CID where the script was executed) so thatĀ I would be able to have something as reference to regarding theĀ issue you are encountering? You may choose to send this through our email.

aa...@softwarepromotions.com

unread,
Feb 16, 2021, 9:24:49 AM2/16/21
to Google Ads Scripts Forum
How can I privately send you the CID?

Google Ads Scripts Forum Advisor

unread,
Feb 16, 2021, 10:17:03 PM2/16/21
to adwords...@googlegroups.com

Hi Aaron,

Ā 

If the reply to author option is not available at your end, you may send the requested information through our email (googleadsscr...@google.com) instead. I see that you have emailed us,Ā you can alsoĀ reply there.

Aaron Weiner

unread,
Feb 17, 2021, 8:37:37 AM2/17/21
to Google Ads Scripts Forum
I sent in a reply.

SEM Booster

unread,
Feb 17, 2021, 8:47:20 AM2/17/21
to Aaron Weiner via Google Ads Scripts Forum
Thanks Aaron

This is the ad account: 576-831-8401 and the script name: 'Monthly Report - New'
Ā However, this line broke also when runnign it alone on another account so I don't think is account-specific or somethign to do with the script but rather an issue with the query itself.
Ā  var report = AdWordsApp.report('SELECT Clicks, Cost, Conversions FROM ACCOUNT_PERFORMANCE_REPORT WHERE Device="DESKTOP" DURING LAST_MONTH');

Something with the 'Device' parameter is broken.
Thanks
Ella

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/56d400c9-c307-48b8-a67f-6d1a6f0f88bbn%40googlegroups.com.

Aaron Weiner

unread,
Feb 17, 2021, 9:00:26 AM2/17/21
to Google Ads Scripts Forum
Hello Ella,Ā 

I'm not sure I follow. My posting was about this new change_event report:

Not theĀ ACCOUNT_PERFORMANCE_REPORT.

Aaron

SEM Booster

unread,
Feb 17, 2021, 9:09:18 AM2/17/21
to Aaron Weiner via Google Ads Scripts Forum
Oh sorry. I think I get notifications on all queries then, not only mine.Ā 

Aaron Weiner

unread,
Feb 17, 2021, 9:17:15 AM2/17/21
to Google Ads Scripts Forum
No worries.Ā 

Google Ads Scripts Forum Advisor

unread,
Feb 17, 2021, 11:28:48 PM2/17/21
to adwords...@googlegroups.com

Hi Aaron,

Ā 

Thanks for providing the requested information and have checked this on our end. Let me raise this to the rest of the team for further analysis and investigation. Rest assured that I'll get back to you once I have more information.

Ā 

@Ella: Hi, your details are noted with thanks. Let's continue our conversation on the forumĀ threadĀ you have opened previously.

Nils Rooijmans

unread,
Feb 21, 2021, 10:46:06 AM2/21/21
to Google Ads Scripts Forum
I am experiencing the same issue:Ā 

" When I try this code on some client accounts, I see some data, not all of the data. In others, I see nothing when I should see changes that were made during those date ranges. "Ā 

Any news on this?

Google Ads Scripts Forum Advisor

unread,
Feb 21, 2021, 11:42:32 PM2/21/21
to adwords...@googlegroups.com

Hi Nils,

Ā 

There is still no updates from the team, but allow me to make a follow up and update you accordingly.

Ā 

Can you kindly provide the CID and script name where you are encountering the same issue at hand so that I would be able to provide additional references to the team to further their investigation?

Aaron Weiner

unread,
Feb 26, 2021, 3:06:54 PM2/26/21
to Google Ads Scripts Forum
HelloĀ Harry,Ā 

I completely understand that it takes time for Google to look into issues like these but can you at least confirm that there is a bug here? Are you seeing what we are seeing when you try the test code that I sent over?

Or maybe we are doing something wrong in our code?

Thanks and I look forward to your reply.

Aaron




Google Ads Scripts Forum Advisor

unread,
Mar 1, 2021, 12:15:47 AM3/1/21
to adwords...@googlegroups.com

Hi Aaron,

Ā 

Unfortunately yes, I was able to replicate the issue of the change_event not returning the complete change history data on my end; thus, I reached out to the rest of the team for further investigation in this regard.

Ā 

With that said, allow me to make a follow up for any progress and update you accordingly.

Google Ads Scripts Forum Advisor

unread,
Mar 2, 2021, 11:14:30 PM3/2/21
to adwords...@googlegroups.com

Hi Aaron/Nils,

Ā 

I am writing to tell about an update with regard to using the Ads Search feature with the change_event resource. Only certain changes are returned from the change_event resource. Changes made from the AdWords API won't be reflected while the changes made through the Google Ads API and Google Ads UI should be returned. The changes made via scripts would not be reflected also as the team is currently working on it still. Please do consider that theĀ Google Ads SearchĀ feature is still in Beta version.

Ā 

Kindly check if your changes are valid and try again. As an aside, if you would not need specific changes, I would suggest that you consider using theĀ change_statusĀ resource as it would be more complete.

Ā 

Let me know if you have questions or other concerns.

Nils Rooijmans

unread,
Mar 3, 2021, 5:15:34 PM3/3/21
to Google Ads Scripts Forum
thanks for your response,

unfortunately, theĀ change_statusĀ resource does not report all changes either: for example, changes to the conversion actions do not seem to be returned.Ā 
Is this still on the roadmap to be added?

Is there any documentation on the types of changes that can be accessed via theĀ change_statusĀ resource ?

Google Ads Scripts Forum Advisor

unread,
Mar 3, 2021, 10:08:51 PM3/3/21
to adwords...@googlegroups.com

Hi Nils,

Ā 

Unfortunately, there are noĀ other further referencesĀ to the Google Ads Search feature through scripts. Kindly follow ourĀ blogĀ for updates and new releases in the meantime.

Aaron Weiner

unread,
Mar 4, 2021, 3:26:11 PM3/4/21
to Google Ads Scripts Forum
You wrote the following "Changes made from the AdWords API won't be reflected while the changes made through the Google Ads API and Google Ads UI should be returned."

That's actually not the case. I'm seeing changes that were made in the Google Ads UI but are then not reflected in the change_event resource.

Google Ads Scripts Forum Advisor

unread,
Mar 4, 2021, 10:16:05 PM3/4/21
to adwords...@googlegroups.com

Hi Aaron,

Ā 

Thanks for coming back. Can you kindly specify which changes was supposed to be included in the search's result so that I can take a closer look? Kindly provide the account CID and script name (if it's different from the one you have provided previously) and also screenshots of the changes.

Aaron Weiner

unread,
Mar 6, 2021, 11:11:20 AM3/6/21
to Google Ads Scripts Forum
Okay, I just emailed you an example of the issue.Ā 

Can you confirm that you received it?

Google Ads Scripts Forum Advisor

unread,
Mar 8, 2021, 2:16:40 AM3/8/21
to adwords...@googlegroups.com

Hi Aaron,

Ā 

I can confirm that we have received your email. For further details, can you kindly confirm that the issue is occuring with the same script? Can you also specify the date filters that you are using when comparing results in the UI? Any other information is highly appreciated so that I would be able to convey this to the team and help them investigate further.

Aaron Weiner

unread,
Mar 8, 2021, 8:11:48 AM3/8/21
to Google Ads Scripts Forum
Sorry about that, I should have added the dates.Ā 

The script is that same test script which I included at the beginning of this case. It's basically anĀ AdsApp.search to theĀ change_event resource.Ā Ā 

This is the date range that I used:
var startTime = '2021-02-28';
var endTime = '2021-03-05';

This is a straightforward example of how theĀ change_event resource is not returning all changes that are in the change history for the given date range.Ā 

Also, it's saying that there were items that were changed when in reality, they were not.Ā 

Please correct me if I am wrong but if I see within the Google Ads UI change history X number of changes, theĀ change_event resource should return those same X number of changes of the given date range?

Aaron

Google Ads Scripts Forum Advisor

unread,
Mar 8, 2021, 11:13:38 PM3/8/21
to adwords...@googlegroups.com

Hi Aaron,

Ā 

Thanks for coming back and providing the details. To reiterate, the change_event resource will only return certain changes so it would not return the same X number of changes in the Google Ads UI changes history even with a given date range.

Ā 

"Changes made from the AdWords API won't be reflected while the changes made through the Google Ads API and Google Ads UI should be returned. The changes made via scripts would not be reflected also as the team is currently working on it still. Please do consider that theĀ Google Ads SearchĀ feature is still in Beta version."

Ā 

On the other hand, can you kindly provide the specifics on where a change was recorded, but did not really happened so that I can assist you in this regard?

Aaron Weiner

unread,
Mar 12, 2021, 6:44:09 PM3/12/21
to Google Ads Scripts Forum
When you say changes made from theĀ AdWords API won't be reflected, does that mean changes made via the Google Ads Editor?

Shouldn't I see at least all changes that are made via the Google Ads UI?Ā Ā 

If so, I'm not.Ā 

Google Ads Scripts Forum Advisor

unread,
Mar 14, 2021, 11:54:08 PM3/14/21
to adwords...@googlegroups.com

Hi Aaron,

Ā 

For further insights and so I could provide you a wider explanation on the behavior of the Google Ads Search as a whole, allow me to reach out to the rest of the team once again and update you accordingly.

Google Ads Scripts Forum Advisor

unread,
Mar 16, 2021, 1:18:40 AM3/16/21
to adwords...@googlegroups.com

Hi Aaron,

Ā 

Thank you for your patience. To clear the confusion, what I meant byĀ AdWords APIĀ is the previous versions of the new Google Ads API. Furthermore, I got update from the team that changes through the Google the Google Ads Editor will appear in change_event yet, but may in the future.

Ā 

On the other hand, please bare with us as we are in progress of investigating the issue with the change_event results. Rest assured that I will update you as soon as more information is available. Let me know if you have questions or other concerns.

Aaron Weiner

unread,
Aug 27, 2021, 8:54:28 AM8/27/21
to Google Ads Scripts Forum
Is there any news on this issue?

When I use the Google Ads Search feature to call theĀ change_event resource, it is not returning all the items that were changed on the specific date range.Ā 

For example, I can see items changed via theĀ GOOGLE_ADS_WEB_CLIENT or theĀ GOOGLE_ADS_API but not theĀ GOOGLE_ADS_EDITOR or some of the other client types.Ā 

Is this a limitation of theĀ Google Ads SearchĀ feature or theĀ change_eventĀ resource?

Thanks and I look forward to your reply.

Aaron




Google Ads Scripts Forum Advisor

unread,
Aug 31, 2021, 3:15:53 AM8/31/21
to adwords...@googlegroups.com
HiĀ Aaron,

Thank you for following up. However, I'm afraid that this is still under investigation. We'll let you know the soonest we have our findings.

Regards,
Google Logo
Teejay Wennie Pimentel
Google Ads Scripts Team
Ā 


ref:_00D1U1174p._5004Q2CQapj:ref

Aaron Weiner

unread,
Aug 31, 2021, 4:31:58 PM8/31/21
to Google Ads Scripts Forum
When I initially sent in this question, the Google Ads API was on version 6. Now it's on version 8.Ā 

Are you investigating this issue? I'm just wondering if this is this a limitation of theĀ Google Ads SearchĀ feature or theĀ change_eventĀ resource?

Thanks and I look forward to your reply.

Aaron



Google Ads Scripts Forum Advisor

unread,
Sep 1, 2021, 10:32:07 PM9/1/21
to adwords...@googlegroups.com
Hi Aaron,

Thanks for providing more insights here. I'll check with the team and update you as soon as possible. Let me know how I can assist you in the meantime.

Thanks,
Google Logo
Harry Cliford Rivera
Google Ads Scripts Team
Ā 


ref:_00D1U1174p._5004Q2CQapj:ref

Aaron Weiner

unread,
Oct 22, 2021, 12:38:11 PM10/22/21
to Google Ads Scripts Forum
Any news on this issue?

TheĀ Google Ads SearchĀ feature is not reportingĀ  theĀ change_eventĀ resourceĀ for GOOGLE_ADS_EDITOR or some of the otherĀ client types.Ā 

You said that you would check with the team. Were you able to do that?

Thanks and I look forward to your reply.

Aaron



Google Ads Scripts Forum Advisor

unread,
Oct 24, 2021, 11:29:47 PM10/24/21
to adwords...@googlegroups.com
Hi Aaron,

Thanks for getting back. However, there are still no updates from the issue at hand but let me make another follow up on your behalf. Please do let me know how I can assist you in the meantime.

Aaron Weiner

unread,
Nov 5, 2021, 9:01:19 AM11/5/21
to Google Ads Scripts Forum
Any news on this issue? I opened this item up back when the Google Ads API was on version 6. Now they are on version 9.

You said that you would check into this a few times.


TheĀ Google Ads SearchĀ feature is not reporting theĀ change_eventĀ resourceĀ forĀ GOOGLE_ADS_EDITORĀ or some of the otherĀ client types.Ā 

Will this be fixed?

Thanks and I look forward to your reply.

Aaron


Moranguinho Rosas

unread,
Nov 5, 2021, 12:30:20 PM11/5/21
to Aaron Weiner via Google Ads Scripts Forum
šŸ˜”šŸ˜”šŸ˜„


From: Aaron Weiner via Google Ads Scripts Forum <adwords...@googlegroups.com>
Sent: Friday, November 5, 2021 10:01:19 AM
To: Google Ads Scripts Forum <adwords...@googlegroups.com>
Subject: Re: New change_event in Google Ads scripts
Ā 
--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scrip...@googlegroups.com.

Google Ads Scripts Forum Advisor

unread,
Nov 8, 2021, 3:05:00 AM11/8/21
to adwords...@googlegroups.com
Hi Aaron,

Thank you for following up on the issue. Let me make a another follow up on the team's progress of resolving the issue but in the meantime, could you let me know if you are still encountering the issue even with using the v9 of the API?

Aaron Weiner

unread,
Nov 8, 2021, 8:58:41 AM11/8/21
to Google Ads Scripts Forum
Yes, this is still an issue in version 9 of the API.

TheĀ Google Ads SearchĀ feature is not reporting theĀ change_eventĀ resourceĀ forĀ GOOGLE_ADS_EDITORĀ or some of the otherĀ client types.Ā 

It only seems to return whenĀ "clientType":"GOOGLE_ADS_WEB_CLIENT"

That should not happen since theĀ client typesĀ  supports other types.



Google Ads Scripts Forum Advisor

unread,
Nov 9, 2021, 12:58:59 AM11/9/21
to adwords...@googlegroups.com
Hi Aaron,

Thanks for confirming that for me. While the team is working on the issue, I would humbly request for your continued patience and rest assured that I will update you as soon as I get more information with regard to the issue. Kindly let me know how I can assist you in the meantime.

Aaron Weiner

unread,
Nov 9, 2021, 7:28:03 PM11/9/21
to Google Ads Scripts Forum
Actually, when you spoke with the "team" that's working on this issue, did they acknowledge that there is indeed a bug/issue or issue?

Can you confirm that you see this issue on your end?

Is there a reason why theĀ Google Ads SearchĀ feature is not reporting theĀ change_eventĀ resourceĀ forĀ GOOGLE_ADS_EDITORĀ or the otherĀ client types? I mean client types other than "GOOGLE_ADS_WEB_CLIENT"?

Does everyone see this issue or is it just me?Ā 


Google Ads Scripts Forum Advisor

unread,
Nov 10, 2021, 1:32:07 AM11/10/21
to adwords...@googlegroups.com
HiĀ Aaron,

I work along with Harry. Allow me to assist you in this.

As per checking, the team acknowledged it and mentioned that they will look to this further. As of the moment, they still didn't provide their findings/feedback. I'll let you know the soonest I hear back from them. With regard to the issue that you reported, we haven't received any issues that reported the same from other users.

Regards,
Google Logo
Teejay Wennie Pimentel
Google Ads Scripts Team
Ā 


ref:_00D1U1174p._5004Q2CQapj:ref

Google Ads Scripts Forum Advisor

unread,
Mar 24, 2022, 5:53:26 AM3/24/22
to adwords...@googlegroups.com

Hello Aaron,

Ā 

Michael here and I work along with Teejay and Harry.

Ā 

Hope this message reaches you well.

Ā 

Our team responded back to us that only certain changes are returned from the change_event resource. Changes made via scripts won't be returned (yet), but we're working on that. Changes from AdWords API won't be reflected either. Changes from the Google Ads API and the UI should come back. Make sure there are valid changes and try again. Additionally, change_status will be more complete, so if you don't need details you can try using change_status also.

Ā 

Let us know should you have further concerns.

Regards,

Google Logo
Michael Angelo
Google Ads Scripts Team
Ā 


ref:_00D1U1174p._5004Q2CQapj:ref

Aaron Weiner

unread,
Mar 24, 2022, 8:33:15 AM3/24/22
to Google Ads Scripts Forum
What is the Google Ads Editor considered - AdWords API or Google Ads API?

I need to know who made the change soĀ change_statusĀ won't help.

Google Ads Scripts Forum Advisor

unread,
Mar 25, 2022, 3:40:21 AM3/25/22
to adwords...@googlegroups.com

Hello Aaron,

I’m James, also a member of the Google Ads Script support team. Allow me to confirm this with the team and rest assured that we will get back to you with an update.

Regards,

Google Logo
James Howell
Google Ads Scripts Team
Ā 


ref:_00D1U1174p._5004Q2CQapj:ref

Google Ads Scripts Forum Advisor

unread,
Mar 31, 2022, 7:45:53 AM3/31/22
to adwords...@googlegroups.com

Hello Aaron

I got feedback from the team, see their response below:

ā€œĀ Neither, it's in its own category. Editor is not currently supported by change event so they can't get this information from the API as of right now.Ā ā€œ

Let me know if you any further questions or comments on this.

Regards,

adwords clientcenter

unread,
Jul 22, 2023, 2:57:17 AM7/22/23
to Google Ads Scripts Forum
please add support for Editor to the change event, we really need it. thanks
Reply all
Reply to author
Forward
0 new messages