Problem with Account Anomaly Detector

838 views
Skip to first unread message

Anja Avantgarde

unread,
Mar 28, 2023, 6:54:34 AM3/28/23
to Google Ads Scripts Forum
Hi everyone,

I'm having a problem with the account anomaly detector script.
I am using the template version in the ads account that sets itself up automatically. The spreadsheet is correctly integrated and was also filled with data until March 12th. Since then I got the following error message:


Exception: Call to GoogleAdsService.Search failed: Version v10 is deprecated. Requests to this version will be blocked. at adsapp_compiled:19395:138 at adsapp_compiled:19406:9 at sa (adsapp_compiled:237:15) at Object.search (adsapp_compiled:245:20) at adsapp_compiled:19525:26 at HJ (adsapp_compiled:19562:15) at HJ (adsapp_compiled:19566:14) at HJ (adsapp_compiled:19566:14) at GJ.search (adsapp_compiled:19525:9) at oJ.search (adsapp_compiled:19091:19)

I've really no idea what's the problem, because it was running without any problems until March 12th. And I made no changes on the script or the spreadshit.

Thank you very much in advance.

 

Google Ads Scripts Forum

unread,
Mar 28, 2023, 8:32:31 AM3/28/23
to Google Ads Scripts Forum
Reposting the last inquiry (https://groups.google.com/g/adwords-scripts/c/_yAT790lVNg) from the forum as it wasn't routed to our support queue.

Regards,
Google Ads Scripts Team

Google Ads Scripts Forum

unread,
Mar 28, 2023, 8:35:54 AM3/28/23
to Google Ads Scripts Forum

Hi,


Thank you for reaching out to the Google Ads Scripts Team. Please excuse us for only getting back now as your message failed to be routed to our support queue.


Upon checking the issue encountered, the error is most likely due to version 10 of the Google Ads API not being supported anymore, which is why it states that requests to that version are blocked or won't be going through. You can refer to this link for reference of the Deprecation and sunset of the said API's versions. To provide further context, the solution script Account Anomaly Detector makes use of Reporting to gather data from your account. Google Ads Scripts' reporting infrastructure is backed by the Google Ads API and uses GAQL to specify what fields, metrics, and conditions you want to set.

 

That being said, kindly navigate through the source code and comment out the line which specifies the apiVersion. This can be done by placing two forward slashes at the front '//'. By commenting it out, the script should default to the latest reporting version. Please try this and let us know how it goes on your end if you'd still encounter an error.


Best regards, Google Ads Scripts Team

Anja Avantgarde

unread,
Mar 28, 2023, 10:06:06 AM3/28/23
to Google Ads Scripts Forum
Hi Scripts Team,
thanks a lot for your help - it works :-)
Kind regards,
Anja

El Mahdi Chaker

unread,
Aug 3, 2023, 9:09:53 AM8/3/23
to Google Ads Scripts Forum
Commenting out apiVersion works. Thank you for the help

Nils Rooijmans

unread,
Aug 4, 2023, 3:20:53 AM8/4/23
to Google Ads Scripts Forum
 

Some more background info for future readers of this post (incl the fix):

Hope this helps,

Nils Rooijmans
https://nilsrooijmans.com
See my Google Ads Scripts FAQ to avoid the same mistakes I made: https://nilsrooijmans.com/google-ads-scripts-faq/

Google Ads Scripts Forum Advisor

unread,
Aug 4, 2023, 3:45:12 AM8/4/23
to adwords...@googlegroups.com

Hi All,

 

@Nils - Thank you for your insights.

 

@El Mahdi - Thanks for confirming this. If you need any further assistance from our team, please let us know so we can be able to guide you accordingly.

 

This message is in relation to case "ref:_00D1U1174p._5004Q2naxJz:ref"

Thanks,
 
Google Logo Google Ads Scripts Team


rinki kumari

unread,
Aug 12, 2023, 8:44:50 AM8/12/23
to Google Ads Scripts Forum on behalf of adsscripts
TAEQHV8pTE

SAVITA DEVI

unread,
Aug 12, 2023, 8:44:50 AM8/12/23
to Google Ads Scripts Forum on behalf of adsscripts

RxQ1lzSeGW

rinki kumari

unread,
Aug 12, 2023, 8:44:51 AM8/12/23
to Google Ads Scripts Forum on behalf of adsscripts

9dW9Q6cQqj

rinki kumari

unread,
Aug 12, 2023, 8:44:58 AM8/12/23
to Nils Rooijmans via Google Ads Scripts Forum

ae5Y1GeldI

david bitrus

unread,
Aug 12, 2023, 8:45:04 AM8/12/23
to Google Ads Scripts Forum on behalf of adsscripts

knMcCgi8dW

Moses Mogale

unread,
Aug 12, 2023, 8:45:04 AM8/12/23
to Google Ads Scripts Forum on behalf of adsscripts

l6kyYozu31

Faixa Hamosu

unread,
Aug 12, 2023, 8:45:25 AM8/12/23
to Google Ads Scripts Forum on behalf of adsscripts

HupDnLbQ1i

Piyathida Sornprom

unread,
Aug 12, 2023, 8:45:30 AM8/12/23
to Nils Rooijmans via Google Ads Scripts Forum

mFFaqisOwd

Ekpo Emmanuel

unread,
Aug 12, 2023, 8:45:37 AM8/12/23
to Google Ads Scripts Forum on behalf of adsscripts

853mIekTtm

Áron Schőmer

unread,
Nov 17, 2023, 7:02:39 AM11/17/23
to Google Ads Scripts Forum
Hi Everyone,

I have commented the API section out as recommended above but when I run the code now, I get the error message 

ReferenceError: REPORTING_OPTIONS is not defined at getReportStats (Code:232:39) at main (Code:125:22) at Object.<anonymous> (adsapp_compiled:20648:54)

Could you help me out here?

Thxx 🙏

Nils Rooijmans

unread,
Dec 24, 2023, 4:13:00 AM12/24/23
to Google Ads Scripts Forum
could it be you've added the double slash at the wrong place?

it should be like this:


  'reporting_options': {
   
// Comment out the following line to default to the latest reporting version.
   // 
'apiVersion': 'v10'
 
}


Hope this helps,

Nils Rooijmans
https://nilsrooijmans.com
See my Google Ads Scripts FAQ to avoid the same mistakes I made: https://nilsrooijmans.com/google-ads-scripts-faq/

Yucel Baydemir

unread,
Dec 25, 2023, 9:05:11 PM12/25/23
to Google Ads Scripts Forum
Hello everyone,

I also get an incompatible version error. I did the suggestions above but still got the same error. Can you help me?

Ca: MutateError.UNSPECIFIED: Specified version 'v10' not supported.
     at getReportStats (Code:232:13)
     at main (Code:124:22)

Google Ads Scripts Forum Advisor

unread,
Dec 26, 2023, 3:20:32 AM12/26/23
to adwords...@googlegroups.com
Hi,

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

I would like to inform you that please update the latest apiVersion as 'v15' . If the issue still exists, kindly provide us with the below details to further investigate the issue.
  • Google Ads account ID / CID.
  • Name of the new script.
This message is in relation to case "ref:!00D1U01174p.!5004Q02r3Xbf:ref"


Thanks,
 
Google Logo Google Ads Scripts Team


 

Reply all
Reply to author
Forward
0 new messages