i have a website built using html files and and when i bought it i had to manually remove all the previous owner's adsense code using search and replace tool and replace it with my account's code this process wad tedious i was thinking about loading the adsense code from an external file so if i have to change the adsense code the process will be easier the code in main html file looks like that <html> <head> <script src="http://code.jquery.com/jquery-1.10.2.js"></script> <script> $(function(){ $("#includedContent").load("b.html"); }); </script> </head> <body> <div id="includedContent"></div> </body> </html> Code (markup): and the adsnse code in the external file (b.html) looks like that <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- bawaba main --> <ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-XXXXXXXXXX" data-ad-slot="xxxxxxxxxxx"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> Code (markup): the adsense code is not modified in external file is that violate the adsense TOS
Looks like it is against the TOS: https://productforums.google.com/forum/#!topic/adsense/70BN2f5XEiE https://productforums.google.com/forum/#!topic/adsense/Bc3No5q4Zm8
it's not a pop up it's like include files in php maybe they right, the people who answered the questions are just users not from the adsense staff