I have received a lot of feedback from readers saying that they would like to know what the Google girl told me on our consultation call where we went over every page of this site to see what can be done to increase adsense earnings.
There was so much that was done and so much to tell about how I did it using edits to my themes functions.php file that I have decided to make a series of video tutorials covering each thing we discussed and how I implemented it on this site.
Here is part 1 that deals with how to target your post content by using google_ad_section_start and google_ad_section_end
You can read more about how to target sections by reading the google adsense help page here
here’s the code from the video
/** adsense blocks */ add_filter('the_content','my_adsense_target'); function my_adsense_target($content){ if(is_singular()){ $content = '<!-- google_ad_section_start -->'.$content.'<!-- google_ad_section_end -->'; } return $content; }
Where are the captions? :S
Twitter: commentluv
says:
start playing the video and then click the arrow on the toolbar at the bottom of the video window and click the CC to see the captions or click the youtube logo to watch it at youtube where you will be able to click for captions more easily
Twitter: cmygoodies
says:
Great vid Andy, I didn’t know Google was still using those – I had used them years ago on an old static html site. Have you noticed an improvement in targeted ads since implementing it? And I don’t suppose you could post that code for us lazy non coders who would more than likely miss a semi-colon and break our whole site.
Chris´s recent blog post ..EarthBox VS Square Foot Gardening – And the Winner Is
Twitter: commentluv
says:
that’s a good idea, I’ll edit the post to put the code in for copy and paste.
you can see how well it works on http://comluv.com/tutorials/hints-and-tips/why-is-she-dating-him/ which is an article about dating, you will see that all the adsense blocks are about dating sites which you could say is definitely targeted!
Andy Bailey´s recent blog post ..New Commentluvcom site
Twitter: Quillcards
says:
Great that you added the code – (thanks Chris)
I added the code to custom_functions.php in Theses theme.
I wonder how long it takes for Google to follow its nose and find the content?
I am counting off the seconds in eager anticipation.
David´s recent blog post ..Help Bring Attention To Child In Need India This Mother’s Day
Twitter: Quillcards
says:
Great that you added the code – (thanks Chris)
I added the code to custom_functions.php in Thesis theme.
I wonder how long it takes for Google to follow its nose and find the content?
I am counting off the seconds in eager anticipation.
David´s recent blog post ..Help Bring Attention To Child In Need India This Mother’s Day
Twitter: commentluv
says:
good idea putting it into the custom functions file for thesis. According to Google, it can take up to two weeks for AdSense to start adapting ads. It’s probably quicker if your site gets indexed often.
Twitter: Quillcards
says:
Andy,
It took about two hours for the Ads to change one of my niche sites.
On another of my sites – one that could be sub-titled ‘scattered jottings of a curious mind with no niche’ – that also gets far fewer hits, nothing has ‘happened’ yet.
All in all – a big thank you to you.
David´s recent blog post ..Help Bring Attention To Child In Need India This Mother’s Day
Twitter: cmygoodies
says:
Thanks Andy for posting that code – I’ll add it to my twentyten child theme (you may want to mention to people that if they are using twentyten and alter the functions.php file the changes will be erased when they update WP – unless they have it set up as a child theme)
I have to admit I don’t spend a lot of time looking at what ads are posting on my site, but hopefully from now on they’ll be more targeted.
Chris´s recent blog post ..Cool Nook Cover- The Unique Hemp Eco-nique from i-Nique
Twitter: commentluv
says:
You’re welcome!
another advantage of using the functions.php file with filters and actions is that it is much easier to turn those modifications into a plugin, all you need is the skeleton plugin code and then you just paste the mods in there.
I may even turn the series of snippets into a single solution adsense plugin. There’s an idea!
Andy Bailey´s recent blog post ..New Commentluvcom site
Very nice and informative video, I wasn’t aware that something like this it can be done. Thanks for fore sharing the code, I will try to implement it on some of my blogs to see how it will do.
Bit Doze´s recent blog post ..Build My Rank Review
Twitter: commentluv
says:
you’re welcome. be sure to come back and let me know how it worked out for you
Twitter: rscannon
says:
Andy…This is an excellent piece of information. I hadn’t even thought about being able to do this. Depending on the type of blog that you have, this can sure influence your Adsense revenue. Thanks.
Rick´s recent blog post ..Tips For Fixing Plumbing Problems