Hi,
Thanks for posting your concern. However, I'm afraid that our team doesn't support third party scripts such as the script that you've attached. I would suggest to reach out to the author of the third party script to modified it and to meet the requirements.
As an aside, we have the
Link Checker solution script which iterates through all of your ads, keywords, and sitelinks, checking its URLs that produces "Page not found" (which can be change to "out of stock" or other types of error responses. The said solution script will also email you when error responses are found, and saving the results of its analysis to a spreadsheet. You can review the solution script to determine if it will meet your requirement by referring to the provided link. Let me know if you have questions on this suggestion.
Regards,
 |
| Teejay Wennie Pimentel |
| Google Ads Scripts Team |
|
|
| |

ref:_00D1U1174p._5004Q2RvW1F:ref