
Hello there,
Thank you for raising this to us.
So our team could further check on this, could you share with us your Google Ads customer ID and the script name? You can also send those details directly to this email (googleadsscr...@google.com) and don't forget to include the link of this thread for reference.
Regards,
|
||||||
Hi,
Thanks for providing the requested information. I am Harry, teammate of Mak on the Google Ads Scripts.
Can you kindly confirm that you are still encountering the same issue at your end? It does seem that the succeeding executions worked as expected. Was there any ads that was left out which was supposed to be paused cause by the error? Any other information is highly appreciated so that I can take a look at the issue further.
Thanks,
|
||||||
Hi Tong,
Thanks for coming back. The error: "Another task is also trying to change this entity" is caused by changes that are being made at the same time. May it be via UI, rules or scripts. I would suggest that you recreate and re-authorize (reschedule if necessary) the script to see if it would still encounter the issue. If the issue still persists, kindly let me know.
Hi Tong,
Thanks for providing your observations. Upon further checking, your script does process same entities at the same time and for some instances it would occur to an error. You can improve your script to make sure it does not handles the same entities and process them simultaneously. I would suggest that you separate the parts where you enable and pause entities. For example, separate them into two scripts or into two separate code blocks.
Let me know if you have other questions.
Hi Tong,
My previous statement was merely a suggestion to possibly mitigate the issue to occur. Nevertheless, if you don't think that it would not help in anyway and considering that we can't replicate the error on our side, kindly try to add a logger statement to log the ad IDs with a caption of the method (enabled or paused) on every instance of when you are pausing and enabling ads to see if it really handles the same entities simultaneously.
Let me know the results on your end.