Inserting Adsense Into Your Posts

Writing by Brick Marketing on Thursday, 28 of August , 2008 at 2:27 am

If you are an Adsense publisher then you will want to publish your ad units in the most effective places possible. You may also want to have control over when you publish those ads. For example, if you also undertake affiliate marketing and you write the occasional blurb on one of your affiliates, the last thing you should really do is include an Adsense ad unit.

If you install the Adsense plugin WordPress you can control when your ad units are inserted into your posts. To use the plugin, you need to setup an ad unit through your Adsense account. One the best for converting into clicks is the 300 x 250. You can play around various ad unit sizes until you find one that converts into clicks more frequently.

Once you have downloaded the plugin, you will need to unzip it and edit the adsense.php file - notepad or similar is useful for this task. Find the following section of text:

<b>Your Google Adsense code should be here, but you forgot
to edit the plugins/adsense.php file and replace the code
there with your own.</b>
<script type=”text/javascript”><!–
google_ad_client = “client-code-goes-here”;
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = “468×60_as”;
google_ad_channel =””;
//–></script>
<script type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>

Replace this text with the following:

<div style=”float: right; margin: 10px;”>
Your Adsense code that you have retrieved from your Adsense account
</div>

This will float the ad unit to the right. If you would prefer to have it on the left, replace the word ‘right’ with the word ‘left’. When you are creating a post, place your cursor at the beginning of the line where you want the code placed and then click on the Adsense button. The code will be inserted and the ad unit will appear after the post is published. Now you can chose when to insert the code.

                      Category: Blogging Income                      
No Comments

No comments yet.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Blog Marketing Journal is a Blog that discusses How to Build, Write Market and Promote a Business Blog for the new and advanced reader.
Learn more about this blog.