Hello There,
I have checked your project requirement, you need a script which will automatically stop third party adword on your website you are out of stock. I can make it done for you I have more than 5 year of experience in web based technology.I need to answer of below question.
-Do you need it stop automatically or you need an interface.
-On which platform your website is working.
-I will need your admin & password to make it done.
Looking forward to hear from you.
Thanks & Regards,
XtreemSolution