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

  1. innerchild
    Posted 11 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
    Posted 11 years ago #

    Actually, It is. :)

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

  3. innerchild
    Posted 11 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 ;(

    /* 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 type="text/javascript"
    <?php if ($comments) : ?>


    any ideas?

  4. innerchild
    Posted 11 years ago #

    no one that got an idea?

  5. innerchild
    Posted 11 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
    Posted 11 years ago #

    yezzz it worked now...
    thanx all!!

  7. zooph
    Posted 11 years ago #


    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


No tags yet.