WordPress.org

Ready to get started?Download WordPress

Forums

how to put adsensecode into my php-file? (7 posts)

  1. innerchild
    Member
    Posted 9 years ago #

    it is not as simple as pasting the js-script from googles adsense into the mainpage indexfile index.php ..
    what to ad?

  2. XeroCool
    Member
    Posted 9 years ago #

    Actually, It is. :)

    Just paste the code to where ever you want to add it and your done.

  3. innerchild
    Member
    Posted 9 years ago #

    hmmok then i have made another mistake..but what is it??
    this is how i tried to just pasting the adsensecode in my themes/default/comments.php file... but no success ;(

    ---CODE----
    /* This variable is for alternating comment background */
    $oddcomment = 'alt';
    ?>

    <!-- You can start editing here. -->
    <script type="text/javascript"><!--
    google_ad_client = "pub-9702519331186124";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_channel ="";
    google_color_border = "FFFFFF";
    google_color_bg = "FFFFFF";
    google_color_link = "0000FF";
    google_color_url = "008000";
    google_color_text = "FF9933";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    <?php if ($comments) : ?>

    --------CODE----

    any ideas?

  4. innerchild
    Member
    Posted 9 years ago #

    no one that got an idea?

  5. innerchild
    Member
    Posted 9 years ago #

    ah got some answers from googlesupport!
    a long time ago i tried adsense on the same domain as i am trying it on now, the difference is this is awhole new site compared to before but some rules still said "NO ADSENSE ON http://WWW.TOP-10-LIST.COM"...
    so in 48hours it should work...

  6. innerchild
    Member
    Posted 9 years ago #

    puhhhh
    yezzz it worked now...
    thanx all!!

  7. zooph
    Member
    Posted 9 years ago #

    hi,

    Im tryna put Adsense code into my WordPress blog! Though id try putting it the left column. Tried simply adding it to the list of the left div but when i do the page throws up errors,

    heres the code :

    <div id="left">

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.