Account Anomaly Detector

79 views
Skip to first unread message

Vincent Xu

unread,
May 9, 2024, 2:45:11 PM5/9/24
to Google Ads Scripts Forum
Hi there,

I was trying to get this anomaly detector to run on my account but ran into a couple of errors. The latest one is 


TypeError: Cannot read properties of null (reading 'setValues') at writeDataToSpreadsheet (Code:312:39) at main (Code:115:3) at Object.<anonymous> (adsapp_compiled:20513:54)

Since the code i found still has a deprecated api version in the code, is there an updated versions somewhere i can use?

Thank you!

This email and any files transmitted with it are for the use of the intended recipient(s) only. If you have received this email in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not keep, use, disclose, copy or distribute this email and any files transmitted with it without the sender's prior written permission. The information contained in this communication is confidential and proprietary information of Beyond Finance, LLC. and its Affiliates. 

Google Ads Scripts Forum Advisor

unread,
May 9, 2024, 3:28:56 PM5/9/24
to adwords...@googlegroups.com

Hi,

Thank you for reaching out to the Google Ads Scripts Team.

Yes, the 'v10' is deprecated. Please note that if you use an older version, some features might not be compatible, so we would recommend migrating to the latest version v16 and you may follow this link to Upgrade to the latest version. Also, you can update the 'apiVersion': 'v16' in the source code of the single account anomaly detector. 

In order to replicate the issue from our end, kindly provide us with the following details:

  • Google Ads account ID or CID
  • Name of the affected script
  • Please provide the shareable link to the spreadsheet to share a file publicly
You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tIw4M:ref" (ADR-00234385)

Thanks,
 
Google Logo Google Ads Scripts Team


Message has been deleted

Vincent Xu

unread,
May 9, 2024, 7:35:14 PM5/9/24
to Google Ads Scripts Forum
Oh i also just posted everything as i dont have permission to reply privately to the author. Can you hide all the account information please?

Google Ads Scripts Forum Advisor

unread,
May 10, 2024, 7:02:36 AM5/10/24
to adwords...@googlegroups.com

Hi,

I would like to inform you that the spreadsheet you are using in the script is related to the Account Anomaly Detector for Manager account. Kindly use the Setup link to create a spreadsheet for Single accounts and use that sheet in the script. 

Kindly get back to us if the issue still persists.

Vincent Xu

unread,
May 10, 2024, 11:44:49 AM5/10/24
to Google Ads Scripts Forum
Ok it is working now. Is it possible to add multiple email addresses to send out alerts to? Thanks.

Google Ads Scripts Forum Advisor

unread,
May 10, 2024, 3:44:33 PM5/10/24
to adwords...@googlegroups.com
Hi,

That's great to hear that the script is working fine. I would suggest you follow the below steps to add multiple email addresses to send out alerts:
  1. Remove the validation from cell D8 in your Spreadsheet. You can do this via Data > Data Validation (in Google Sheets), see screenshot 1
  2. Add multiple e-mail addresses separating them by commas (e.g. f...@example.comfo...@example.com), all in the same cell (cell D8), see screenshot 2
  3. Preview the script and verify if e-mails are sent to all e-mail addresses. 
Screenshot 2.png
Screenshot 1.png

Vincent Xu

unread,
May 10, 2024, 7:56:14 PM5/10/24
to Google Ads Scripts Forum
It worked! One last thing, is it possible to remove the limit that only one alert will be sent out per day for the same alert type?
Reply all
Reply to author
Forward
0 new messages