Today I’ll show you how to get your Ad Sense Google ads and how to easily add them to your WordPress posts. I’m going to use a WordPress short code, just like I did in the article called Post RSS Feeds in WordPress. To start off I’ll explain how to set up an Ad Sense Google account. If you just want the WordPress short cut for pasting Ad Sense Google Ads Click Here!
How to Set Up An Ad Sense Google Account
Before you can display Ad Sense advertisements, you have to be approved. The only sites that are not approved, or who lose their ability to post ads do the following:
Warning: Never click on your own site ads, or tell others to do so. It is also best to not label the Ad Sense ads either. If you do either of these things, Google will find out and you’ll lose the ability to post Ad Sense Google ads.
To apply just follow these steps:
You will probably be approved on the day that you submitted your application.
Logging on your Ad Sence Google Account
After you receive an email, notifying you of your approval, login to your Ad Sense account. You’ll be welcomed by a report, that shows your current:
Getting your Ad Sense Ads
Your not going to make any money until you get some ads for your site. Just click on the tab labeled Ad Sense Setup. Here is my general impression for each Ad Sense type:
As you may have noticed, I pay attention to your complaints. I’ll talk later about ways to increase your clicks that may also irritate your site visitors.
Now, follow these steps to get your ads:
Easily Paste Ads into WordPress
Your Ad Sense code looks something like this:
<script type=”text/javascript”><!–
google_ad_client = “pub-xxxxxxxxxxxxxxxx”; <—- You’ll have numbers here
/* 468×60, created 8/8/10 */
google_ad_slot = “xxxxxxxxxx”; <—- You’ll have numbers here
google_ad_width = 468;
google_ad_height = 60;
//–>
</script>
<script type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>
You want to copy the above:
Then place it in the appropriate place in the following code, that you will paste in your functions.php file.
//This code is used to display google ads
function showads() {
return ‘<script type=”text/javascript”><!–
google_ad_client = “pub-xxxxxxxxxxxxxxxx”; <—- You’ll have numbers here
google_ad_slot = “xxxxxxxxxx”; <—- You’ll have numbers here
google_ad_width = 468;
google_ad_height = 60;
//–>
</script>
<script type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>
‘;
}
add_shortcode(‘adsense’, ‘showads’);
Placing the Code in Functions.php
Placing Ad Sense Google Ads in your Posts
Now all you have to do to place ads is to type adsense, surrounded by brackets [ ], directly in your posts. This is what they will look like:
That’s All Folks
If you have any questions on this post, or would like me to cover another subject, leave a comment below.
Here to Serve
Think Tank