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.

modifying adsense unit

Discussion in 'AdSense' started by apnavarun, Jun 11, 2013.

  1. #1
    Hi,I know we can remove ad tags as I saw google's ad modification acceptance. However I want to know can I put adsense code in a line
    like converting this multiples lines

    <script type="text/javascript">
    google_ad_client = "ca-publisher-id";
    google_ad_slot = "1234567890";
    google_ad_width = 728;google_ad_height = 90;
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>

    to this
    <script type="text/javascript">google_ad_client= "ca-pub-45d28";google_ad_slot="545dfdfdfdfsdsdsd34343477"; google_ad_width=728;google_ad_height=90;</script>
    <script type="text/javascript"src="http://pagead2.googlesynd">

    Thanks
     
    apnavarun, Jun 11, 2013 IP
  2. fuad_hasan

    fuad_hasan Member

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #2
    thnx.
     
    fuad_hasan, Jun 11, 2013 IP
  3. robyries

    robyries Notable Member

    Messages:
    3,230
    Likes Received:
    51
    Best Answers:
    6
    Trophy Points:
    205
    Digital Goods:
    1
    #3
    why not you tested and let us know... :p
     
    robyries, Jun 12, 2013 IP
  4. apnavarun

    apnavarun Member

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    I tested it and it worked but I have changed back to original form.
     
    apnavarun, Jun 12, 2013 IP
  5. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #5
    Making it a one-liner doesn't mean you modified it.
     
    ActiveFrost, Jun 12, 2013 IP
  6. dontstop

    dontstop Active Member

    Messages:
    242
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Actually you can. According to https://support.google.com/adsense/answer/1354736?hl=en:
    So I think minimizing the code to one line is completely acceptable and safe. Enjoy!
     
    Last edited: Jun 12, 2013
    dontstop, Jun 12, 2013 IP