PenciDesign replied
Hi,
First, please check the guide here to know how to setup AMP. If you put your custom javascript and it make your site can't validate on AMP pages here => that mean your custom ads doesn't supports for AMP.
Google AMP develop by Google - that's why it very limit for other ads ( except Google Adsense ads )
Best Regards,
PenciDesign