Saturday, April 13, 2013

How to Put Google Adsense at any location inside the Post (Article)

To Improve our Google Adsense CTR (Click Through Rate), we have to try to show the Adsense in the area that easily viewed by our Visitor. If our Blog is Wordpress Platform, there is a lot of method we can used. We can use the plugins or insert the Google Adsense in the Widget Sidebar or insert the Adsense code into the single.php and index.php. But most of them are not able to place the adsense at the location that preferred, especially inside our post (article).
Below is the method that I would like to share is how to place the Google Adsense in any location inside the post as our wish.

We need 2 step to do it. Firstly we need to make a shortcode and second step is insert the shortcode inside the post.

I. Prepare Shortcode

1. Login to our Wordpress Dashboard.
2. Go to [appearance]
3. Click [Editor]
4. In the Templete Menu, Click [function.php]
5. Insert below codes  into last code of function.php

    function adsenseads() {
        return '<div id="adsenseads">
    insert your google adsense code here
        </div>';
    }
    add_shortcode('myads1', 'adsenseads');

Note :
You can change the shortcode title (in red color) with any name as you like.

6. Click [update file]

II. Place your Google Adsense inside the post.

Place your google adsense at any place inside your posting as you like, just insert the shortcode name in the location that we want.

As above example code is 'myads1'. So we just insert :
[myads1]
Below picture is the example :

To View in Indonesia version regarding how to place a Google Adsense inside the Post. Please Click :
Cara Memasangkan Google Adsense ke dalam Posting 

1 comment:

  1. Run adsense ads in any website. .com, .in. .net from hosted account. No tricks used to get approved the account.
    skype : buyourservice

    ReplyDelete