Hi Martin,
Thank you for reaching out to us. This is Yasmin from the Google Ads Scripts team.
For us to further investigate this and guide you accordingly, can you please provide the following information below:?
Kindly send the requested details above via ‘Reply privately to author’ option, if the private option is not available on your end, then please send it over through this email <googleadsscr...@google.com> instead.
Regards,
|
||||||
Hello Martin,
Maia here, I’m a colleague of Yasmin from the same team. Thank you for sharing with us the needed information privately. Allow me to further assist you.
Unfortunately, the 30 minute execution time is the standard limit in the Google Ads Scripts and when the executeInParallel is used, scripts can execute up to a maximum of 60 minutes before being cancelled at the MCC level. See Limits for your reference.
Since this is an unusual behavior and upon checking the script on your account, I noticed that you are using a reports spreadsheet. Can you share with us the shareable link of the spreadsheet that you have used so that we can test it on our end?
Kindly share it via ‘Reply privately to author’ option. If the option is not available, then please send it through our email <googleadsscr...@google.com> instead.
Best Regards,
|
||||||
Hello Martin,
Maia here, I’m a colleague of Yasmin from the same team. Thank you for sharing with us the needed information privately. Allow me to further assist you.
Unfortunately, the 30 minute execution time is the standard limit in the Google Ads Scripts and when the executeInParallel is used, scripts can execute up to a maximum of 60 minutes before being cancelled at the MCC level. See Limits for your reference.
Since this is an unusual behavior and upon checking the script on your account, I noticed that you are using a reports spreadsheet. Can you share with us the shareable link of the spreadsheet that you have used so that we can test it on our end?
Kindly share it via ‘Reply privately to author’ option. If the option is not available, then please send it through our email <googleadsscripts-support@google.com> instead.
Hello Martin,
Michael here from Google Ads scripts Team. I work along with Maia.
Reading through the thread, I can see that you are encountering executime time limit errors on your anomalies_v1.1.js. With the shared spreadsheet, I was able to test the behavior on my end. However, I did not encounter the same error as the script appears to run correctly on both legacy and new scripts experience. With this, would you be able to confirm if you are still seeing the issue? Kindly try running it now and share to us the screenshot of the results and we will raise it to the rest of our team should the issue persist on your end.
Regards,
|
||||||
Hi Schafer,
Thank you for your response.
I can confirm that our team investigated the correct script (anomalies_v1.1.js) as mentioned. That being said, I would recommend that you follow this migration guide and convert your script to GAQL using this query migration tool as well as this resource mapping document since I observed that you’re still using an AWQL query. I said this because there are fields which are not compatible with the new experience.
After converting your script, kindly try executing it in the new experience and let us know if you would still encounter a timeout on your end when executing the script.
Regards,
|
||||||
Hi Martin,
I've scrutinized your script and found that there isn't anything wrong with your implementation. For context, many AWQL reports will continue to function. Behind the scenes, when using the new infrastructure, scripts will convert your AWQL query to GAQL (the new query language for the Google Ads API), run it against the new backend, and then convert the results back to the format originally used by AWQL reports. Hence, it is using additional resources which is causing it to fail sometimes. Queries with GAQL will pass through as is. Furthermore, the behaviour being exhibited is a case to case basis because there are many accounts being processed. Upon checking on my end, 19 accounts were processed and did not reach the limit.
What I may suggest you do is to recreate the script with the new experience already toggled. You may also try to filter the account based on the label and create multiple copies so that each new script will only work on each subset of your accounts based on the specified label. This is so that the script will not reach the execution limit.
Hi Martin,
Thank you for the update.
Our team is happy to hear that. If you have further questions / concerns for our team, please feel free to get back to us. We will be happy to address it.
Regards,
|
||||||