You must be logged in to post Login


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

code for AdSense

No Tags
UserPost

5:47 pm
January 30, 2011


Melissa (Mom's Plans)

Member

posts 908

A few weeks ( or months?) ago there was a post here about a code you could put around your post to make AdSense focus on that one particular post and find ads to match.  Does anyone remember or know what the code is,  or could anyone share the link here if you remember?  Thanks!

My Member Site:  Mom's Plans

My Challenger Site:  Fiscal Phoenix

E-mail:  momsplans@yahoo.com

6:03 pm
January 30, 2011


Mike – Saving Money Today

Member

posts 520

Hey Melissa,

Here's the Google instructions on how to implement.

https://www.google.com/adsense/support/bin/answer.py?hl=en&answer=23168

Basically you just add your content in between the two lines below and it should help with targeting.  I only recently started using it and it seems to have made a difference.

<!– google_ad_section_start –>

<!– google_ad_section_end –>

good luck!

6:11 pm
January 30, 2011


Melissa (Mom's Plans)

Member

posts 908

Thanks, Mike!

My Member Site:  Mom's Plans

My Challenger Site:  Fiscal Phoenix

E-mail:  momsplans@yahoo.com

7:46 pm
January 30, 2011


My Personal Finance Journey

Member

posts 3159

Great tip! I've been wandering this as well! I'm going to implement in the next few days. 

 

Mike – So you've seen your adsense pick up a bit since adding it?

Jacob @ My Personal Finance Journey

Visit me at My Personal Finance Journey

Email me jacob@mypersonalfinancejourney.com

Be my Facebook Friend, Follow my journey on Twitter

7:57 pm
January 30, 2011


Sustainable PF

Member

posts 2759

My Personal Finance Journey said:

Great tip! I've been wandering this as well! I'm going to implement in the next few days. 

 

Mike – So you've seen your adsense pick up a bit since adding it?


I added this long ago.  I didn't note any increased clicks but the ads were much more aligned with the content than they were prior to adding these snippets.

Visit us at Sustainable Personal Finance

Or Earth and Money

Follow us on Facebook, Twitter and RSS!

7:59 pm
January 30, 2011


My Personal Finance Journey

Member

posts 3159

Nice! Thanks for sharing your experiences SPF!

Jacob @ My Personal Finance Journey

Visit me at My Personal Finance Journey

Email me jacob@mypersonalfinancejourney.com

Be my Facebook Friend, Follow my journey on Twitter

8:10 pm
January 30, 2011


Mike – Saving Money Today

Member

posts 520

My Personal Finance Journey said:

Great tip! I've been wandering this as well! I'm going to implement in the next few days. 

 

Mike – So you've seen your adsense pick up a bit since adding it?


Hey Jacob,

The clickthrough rate didn't increase but the CPC amount did.  Admittedly it's a small sample size so I'll have to see if the trend continues or if it was just a coincidence, but it makes sense that earnings would increase if the ads are more targeted.

Mike

1:22 am
January 31, 2011


Buy Like Buffett

Member

posts 1682

Great info!

 

 

Mark

Learn how to build wealth at Buy Like Buffett.

Learn about making money online at Mark Riddix dot com

Follow me on Twitter

5:19 am
January 31, 2011


My Personal Finance Journey

Member

posts 3159

Nice! It's so quick and easy to implement, I'm going to add it in!

Jacob @ My Personal Finance Journey

Visit me at My Personal Finance Journey

Email me jacob@mypersonalfinancejourney.com

Be my Facebook Friend, Follow my journey on Twitter

6:09 am
January 31, 2011


Glen Craig

Member

posts 1087

Post edited 6:11 am – January 31, 2011 by Craig – Free From Broke


I forget where I got this code (implemented a long time ago) but this is the code I use in my custom functions file for Thesis (theme):

 

/*adsense targeting functions*/

function open_adsense_targting(){

echo "<!– google_ad_section_start –>";

}

function close_adsense_targting(){

echo "<!– google_ad_section_end –>";

}

add_action('thesis_hook_before_post','open_adsense_targting' );

add_action('thesis_hook_after_post', 'close_adsense_targting');

 

This is probably where I got the code:

http://www.wolf-howl.com/blogs…..targeting/

 

Remember, this is only for Thesis users.

6:19 am
January 31, 2011


Mike – Saving Money Today

Member

posts 520

Craig, do you have the Thesis Openhook Plugin?  It lets you make a lot of changes like this without messing with the custom functions file. 

I did mine similar to yours, but I placed the it before content instead of before post because I wanted to make sure my Title would be included, and in fact it's the first content after the ad section starts.  If your keyword is in your Title I think that would help.

thesis_hook_before_content

thesis_hook_after_content

7:49 am
January 31, 2011


Glen Craig

Member

posts 1087

Hmm, I'll have to look into changing the hook.  Thanks!

 

I have OpenHook and use it for a couple of things but I found that overall it's easier for me to go into my functions file and make the changes myself.

7:54 am
January 31, 2011


Khaleef @ KNS Financial

Fat Guy, Skinny Wallet

Member

posts 3149

Ok, I'm a little confused. I thought that Adsense already was coded to look at your content and find appropriate ads. If not, then what is it currently looking at? If so, then why the need for additional code? 

Sorry, but I really don't know much about this stuff – but trying to learn!

Khaleef "Fat Guy" Crumbley

My Battle to Lose 100lbs and Pay off $100k in Debt:

http://fatguyskinnywallet.com

http://twitter.com/FGSW

http://www.facebook.com/fatguy…..innywallet

Personal Finance From A Biblical Perspective:

http://knsfinancial.com

http://www.facebook.com/knsfinancial

http://twitter.com/knsfinancial

8:02 am
January 31, 2011


Mike – Saving Money Today

Member

posts 520

Craig, I edit the custom functions file too sometimes…depends on what you're trying to accomplish i guess.

Khaleef, AdSenselooks at your entire page to determine the relevance for partcular keywords, but this code is kind of like highlighting a certain section and saying "this is the really important stuff".  Google even says they may still factor in the rest of your page but it can help to highlight the areas you feel are most relevant. 

5:35 pm
January 31, 2011


Khaleef @ KNS Financial

Fat Guy, Skinny Wallet

Member

posts 3149

Mike – Saving Money Today said:

Craig, do you have the Thesis Openhook Plugin?  It lets you make a lot of changes like this without messing with the custom functions file. 

I did mine similar to yours, but I placed the it before content instead of before post because I wanted to make sure my Title would be included, and in fact it's the first content after the ad section starts.  If your keyword is in your Title I think that would help.

thesis_hook_before_content

thesis_hook_after_content

Hey Mike, I just inserted the code that Craig provided into these hooks using Thesis Open Hook, but now the code shows up on the site as text! What do you think the problem is?

Khaleef "Fat Guy" Crumbley

My Battle to Lose 100lbs and Pay off $100k in Debt:

http://fatguyskinnywallet.com

http://twitter.com/FGSW

http://www.facebook.com/fatguy…..innywallet

Personal Finance From A Biblical Perspective:

http://knsfinancial.com

http://www.facebook.com/knsfinancial

http://twitter.com/knsfinancial

6:07 pm
January 31, 2011


Mike – Saving Money Today

Member

posts 520

hey Khaleef,

Craig's code would be if you were editing the custom functions file.  If you're using openhook most of that is unnecessary, just strip it down to the two lines below.  I attached a screenshot of the openhook box so you can see….

<!– google_ad_section_start –>

<!– google_ad_section_end –>

Let me know if you still have problems.

Mike

6:08 pm
January 31, 2011


Glen Craig

Member

posts 1087

Hey Mike, I just inserted the code that Craig provided into these hooks
using Thesis Open Hook, but now the code shows up on the site as text!
What do you think the problem is?

 

Just a guess here but did you enable php in the section for OpenHook?  I think there's a check box under the hook?

 

It could also be that there's too much information in the code I provided to use in OpenHook.

 

This is why I like to code the file myself sometimes.  It's also good practice to get to know the code in case I muck something up.

6:12 pm
January 31, 2011


Glen Craig

Member

posts 1087

Ok, I'm a little confused. I thought that Adsense already was coded to
look at your content and find appropriate ads. If not, then what is it
currently looking at? If so, then why the need for additional code?

 

Like Mike said, Google looks at your entire site to match the ads.  If you have an ad or link to an article outside of your current article, then the big G might match an ad to those rather than the particular article you are writing about.  The result is you get funky ads that are relevant to your SITE but not relevant to your ARTICLE.

6:23 pm
January 31, 2011


Khaleef @ KNS Financial

Fat Guy, Skinny Wallet

Member

posts 3149

Thanks guys! I tested it on my new site and it works well! Now I'll put it on my main site as well.

Khaleef "Fat Guy" Crumbley

My Battle to Lose 100lbs and Pay off $100k in Debt:

http://fatguyskinnywallet.com

http://twitter.com/FGSW

http://www.facebook.com/fatguy…..innywallet

Personal Finance From A Biblical Perspective:

http://knsfinancial.com

http://www.facebook.com/knsfinancial

http://twitter.com/knsfinancial

3:54 pm
February 5, 2011


Sunil from The Extra Money Blog

Member

posts 362

btw guys/gals – this also works for side columns when using CSS.  example, have a look at this website: http://rotator-cuff-therapy-ex…..cises.com/

click on any page other than the homepage.  you will see adsense ads on the side columns.  though not necessary, each column can be further made to focus on the content within that column.  you will see content heavy sites do this to ensure more precise targeting.

The Extra Money Blog– Expedited Wealth Building Through Multiple Streams of Active & Passive Income (Entrepreneurship, Internet Marketing, Personal Finance)

No Tags

About the Yakezie.com Forum

Forum Timezone: America/Los_Angeles

Forum Stats:

Groups: 2
Forums: 9
Topics: 6383
Posts: 84794

Membership:

There are 13651 Members
There have been 20 Guests

There are 9 Admins
There are 8 Moderators

Top Posters:

My Personal Finance Journey – 3159
Khaleef @ KNS Financial – 3149
Budgeting in the Fun Stuff – 3048
Sustainable PF – 2759
Miss T @ Prairie Eco-Thrifter – 2213
Eric – PersonalProfitability.com – 2120

Administrators: The College Investor (1935 Posts), Financial Samurai (1803 Posts), LaTisha @YoungFinances (1715 Posts), Forest Parks (1337 Posts), 20s Finances (1147 Posts), Money Reasons (697 Posts), Chris Johnson (78 Posts), Sydney at Untemplater (0 Posts), Suba (0 Posts)

Moderators: Suba @ Wealth Informatics (1876 Posts), sooverthis (1041 Posts), PK @ DQYDJ (361 Posts), jmichelsen (208 Posts), Ramona (13 Posts), JeremyNJohnson (4 Posts), Moderator (0 Posts), rackgeek (0 Posts)