is Loading AdSense code from external files aginst the TOS??

Discussion in 'AdSense' started by shuman202, Jul 30, 2014.

  1. #1
    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
     
    Last edited: Jul 30, 2014
    shuman202, Jul 30, 2014 IP
  2. karthimx

    karthimx Prominent Member

    Messages:
    4,959
    Likes Received:
    127
    Best Answers:
    2
    Trophy Points:
    340
    #2
    yes. it should not be used as pop up
     
    karthimx, Jul 30, 2014 IP
  3. malky66

    malky66 Acclaimed Member

    Messages:
    3,997
    Likes Received:
    2,248
    Best Answers:
    88
    Trophy Points:
    515
  4. shuman202

    shuman202 Well-Known Member

    Messages:
    638
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    145
    Digital Goods:
    1
    #4
    shuman202, Jul 31, 2014 IP