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.

Google adsense code on one line

Discussion in 'HTML & Website Design' started by sirgraystar, Mar 1, 2009.

  1. #1
    Not 100% sure if this is the right forum...

    How can I put the google adsense code on one line? I need to do this for the Wordpress adrotator plugin on my blog. If I just delete the spaces between the lines the code doesn't work.
     
    sirgraystar, Mar 1, 2009 IP
  2. rebelagent

    rebelagent Well-Known Member

    Messages:
    876
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    165
    #2
    Create a new file called googlead.inc and add the google adnsense code there.
    Then place this in your ad rotator add on
    <?php include('googlead.inc'); ?>

    And I'm not sure if it's okay to rotate google ads with another ad company. I believe it's against their no other advertisements rule. But don't quote me on that. Just be sure to check. Because it'd suck to get banned or denied over a silly thing like that.
     
    rebelagent, Mar 1, 2009 IP
  3. theseoguy

    theseoguy Active Member

    Messages:
    44
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #3
    I don't think google has any such policy in regards to having other advertisers. Not to mention they wouldn't be able to tell if your not running their ad code 100% of the time unless you use Google Analytics and even that is a maybe.

    ... If their code does not load they cannot track.*

    * excludes manual inspection or bot check.
     
    theseoguy, Mar 1, 2009 IP