1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

convert Adsense code from javascipt code to html to get More Earning $$$$$$$

Discussion in 'AdSense' started by *eng.ahmed*, Mar 8, 2009.

  1. #1
    The problem is that AdSense ad code or client side javascipt code is not a valid XML, and some ASCII characters have special meaning and reserved functions to Blogger engine. It will be confused when trying to interpret your template syntax.

    The solution is replacing special characters or symbols in the script to HTML code. These HTML codes will be rendered correctly when the page is generated to the viewer. Check out this list for special characters that need to be converted to HTML code:

    Character Replaced with

    < &lt;

    > &gt;

    " &quot;


    to convert the code from


    <script type="text/javascript"><!--
    google_ad_client = "pub-xxxxxxxx";
    /* 250x250, created 2/1/09 */
    google_ad_slot = "xxxxx";
    google_ad_width = 250;
    google_ad_height = 250;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>

    to

    &lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
    google_ad_client = &quot;pub-xxxxxxxxxxxxxxxx&quot;;
    google_ad_host = &quot;pub-xxxxxxxxxxxxxxxx&quot;;
    google_ad_slot = &quot;xxxxxx&quot;;
    google_ad_width = 336;
    google_ad_height = 280;
    //--&gt;
    &lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot;
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js";>
    &lt;/script&gt;

    are adsense allow me convert adsense code from javascipt code to html
    code ?

    i want convert it to put adsense code under the title of the post in blogs so i must convert it
     
    *eng.ahmed*, Mar 8, 2009 IP
  2. config_error

    config_error Well-Known Member

    Messages:
    1,719
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    130
    #2
    it is not allowed to modify your adsense code..dont do this or you will get banned
     
    config_error, Mar 8, 2009 IP
  3. skumar.forum

    skumar.forum Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    HA, THis is a nice trick of geeting banned from the program.
     
    skumar.forum, Mar 8, 2009 IP
  4. *eng.ahmed*

    *eng.ahmed* Banned

    Messages:
    73
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Please Do Not Say Any Reply Without Proof .. If you unders stand programming you not may any thing as soon as you put adsense code in you blogger it will convert with itself that's mean blogger do every thing
     
    *eng.ahmed*, Mar 8, 2009 IP
  5. Chuckun

    Chuckun Well-Known Member

    Messages:
    1,161
    Likes Received:
    60
    Best Answers:
    2
    Trophy Points:
    150
    #5
    Seriously, never edit the code in ANY way, shape, or form.

    It's really not worth the effort. You WILL get found out, as Google undoubtedly monitors what code is actually using the JS Ad Loader, and even if they don't; they DO crawl your site on a SOURCE basis. This means they dont just crawl your site on how it appears to a human, they crawl the source code, meaning they WILL see if you've modified the code.

    Inevitable bans follow modifications of the AdSense code...
     
    Chuckun, Mar 8, 2009 IP
  6. jesi

    jesi Active Member

    Messages:
    715
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #6
    jesi, Mar 8, 2009 IP
  7. prashantban

    prashantban Well-Known Member

    Messages:
    1,202
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    100
    #7
    Modifying adsense code is against their TOS buddy.//
     
    prashantban, Mar 8, 2009 IP
  8. dairyman

    dairyman Notable Member

    Messages:
    7,224
    Likes Received:
    274
    Best Answers:
    0
    Trophy Points:
    205
    #8
    Don't dabble with the adsense codes because it is an invitation to get banned. You may escape from the eyes of google bot but they will surely find you later. Never indulge in activities that are against TOS.
     
    dairyman, Mar 8, 2009 IP
  9. JMapleton

    JMapleton Peon

    Messages:
    155
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    This is why you noobs get banned, for doing stupid stuff like this.
     
    JMapleton, Mar 8, 2009 IP
  10. crappyPaste

    crappyPaste Guest

    Messages:
    115
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    You will NOT get banned when doing that. It does not even increase your earnings.
    You may alter your adsense code in that way so it would be compatible with blogspot.

    This is the only legal way to edit your code. :)
    Just ask Google for more information, email or call them.
    Or just read on the adsense forums. You won't get banned. :)
     
    crappyPaste, Mar 8, 2009 IP
  11. slaich2000

    slaich2000 Peon

    Messages:
    408
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Best way to get Banned from Google.
     
    slaich2000, Mar 8, 2009 IP
  12. beotron

    beotron Member

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #12
    yes! exactly... Please don't modify adsense code
     
    beotron, Mar 8, 2009 IP
  13. Cagliostro

    Cagliostro Active Member

    Messages:
    354
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #13
    Instead of these tricks, spend your time to promote and enhance your website.

    That way you will earn more.
     
    Cagliostro, Mar 8, 2009 IP
  14. Chuckun

    Chuckun Well-Known Member

    Messages:
    1,161
    Likes Received:
    60
    Best Answers:
    2
    Trophy Points:
    150
    #14
    Something I forgot to say was;

    I fail to see how this will boost any revenue..?

    Please enlighten me!
     
    Chuckun, Mar 8, 2009 IP
  15. johnnie

    johnnie Peon

    Messages:
    402
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Explain how this earns money?
     
    johnnie, Mar 8, 2009 IP
  16. crappyPaste

    crappyPaste Guest

    Messages:
    115
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #16
    To all of you people posting that this can get your account banned. Well its not:

     
    crappyPaste, Mar 8, 2009 IP
  17. effektz

    effektz Active Member

    Messages:
    474
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #17
    I'll join everybody else in saying if you modify the AS code, even if its a small change like this, you can get banned and you'll regret it
     
    effektz, Mar 8, 2009 IP
  18. jamshed_11946

    jamshed_11946 Peon

    Messages:
    617
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #18
    a great way to be banned from google adsense.
    it is agains tos of google
     
    jamshed_11946, Mar 8, 2009 IP
  19. jkadin

    jkadin Peon

    Messages:
    1,554
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #19
    I hear the adsense ban wagon be sure to flag it down. You are not alowed to play with the codes.
     
    jkadin, Mar 8, 2009 IP
  20. austin-G

    austin-G Peon

    Messages:
    435
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #20
    how does this make you more money?
     
    austin-G, Mar 8, 2009 IP