how to insert adsense code?

Go to Post settings and you should see the option there
 
If you are trying to paste adsense code directly on your xml template, you will need to convert some characters like '<' or '>' to xhtml entities.

Take a look:
Code:
http://www.eblogtemplates.com/how-to-embed-ad-code-anywhere-in-your-blogger-template/

Another thing: be careful with online converters. Some of them convert with their own adsense code. Always check your pub id.
 
In your Blogger Account, just click "Monetize", sign into your AdSense Account and it will have all the options for you. :)
 
Sorry, I've just looked at the demo and understand what you want to achieve.

When you're writing a post, click the HTML tab and insert the following code at the beginning of your posts text:

Code:
<div style="float:right;margin:3px 3px 3px 3px;">
INSERT YOUR ADSENSE CODE IN HERE
</div>

Hope that helps,
Lynn.
 
Sorry, I've just looked at the demo and understand what you want to achieve.

When you're writing a post, click the HTML tab and insert the following code at the beginning of your posts text:

Code:
<div style="float:right;margin:3px 3px 3px 3px;">
INSERT YOUR ADSENSE CODE IN HERE
</div>
Hope that helps,
Lynn.
Thanks
how to add this code to theme?
 
Thanks
how to add this code to theme?

There's no need to add it to any theme - you just simply add it to your HTML of the actual post... simple:

adsense.png
 
I am no coder so if someone can say whether or not the code below is legit (or beneficial/hurtful to ones wordpress blog) I would very much appreciate it.

I found the code over at:
Code:
http://www.r10.net/wordpress/612719-icerik-ortasina-reklam.html

PHP:
<?php
  $content = apply_filters('the_content', $post->post_content);  //get the post content store in $content
  $save = explode("</p>", $content);  //Separate the content into <p> blocks
  $tcount=0; //this is count for number of <p> blocks
  $adon=0;  //this is a variable so you don't show ads more than once.
  foreach($save as $item) {
    echo $item;  //print the <p> block
    echo "</p>"; 
    if(preg_match('/<p> /',$item)==0 && $tcount>=1 && $adon==0) {
                                $adon=1;
?>
Replace this with Your adsense code!!!
<?php
    }
 if(preg_match('/<p> /',$item)==0 && $tcount>=4 && $adon==1) {
                                $adon=2;
?>
Replace this with Your adsense code if you want additional adsense blocks for super long blog posts or leave it empty if you don't want one.
<?php
   }
   $tcount++;
 }
?>
 
in a widget it's:

1. choose 'text' widget
2. add <body> and </body>
3. past adsense code in between
4. voila, you have adsense in widget!

In your text? The same way! Add the codes in HTML-part:
1. Choose HTML
2. add <body> and </body>
3. past adsense code in between
4. voila, you have adsense in post!
 
how to insert adsense code befor content in blogger blog?
demo:
http://anonym.to/?http://revolution-news-theme.blogspot.com/2009/11/present-future-of-cell-phones.html

I have Autoblog and i can not edit every post for inserting adsense code and no widgetin my theme.

I have not tried this myself but if you look towards the bottom of the page under the heading of Adsense Within Posts you may find your answer.

Here is the website:

Code:
http://www.scratch99.com/2009/01/blogger-how-to-add-adsense-inside-single-posts-only/
 
This is BHW, not noob world if you don't know how to put ads in a site go to
PHP:
forums. digitalpoint. com
the land of the freaking noobs, get out of here.

wahabbusiness and myloveistwitter use google if you want help?
 
hi everyone, i am having an issue adding adsense code so it comes up right under the title of each post in my wordpress autoblog. i have seen how to do this in the editor for the signle.php file but since this is an autoblog, i am trying to find out what page in the editor and where in the code to post my adsense. any help would be awesome. thanks. in advance.
 
Back
Top