+ Start a Discussion
the_wolfthe_wolf 

Google AdSense

Hi all,

 

I have insert many google adsense in my force.com site.


When I am on force.com site domain, it shows all google advertising (this is the site http://esa.force.com/secondhandcampers)

 

But if I see the site under its custom web address, the google advertising does not appear ! (this is the custom web address http://www.secondhandcampers.com)

 

Why the custom web address "delete" the advertising?

 

Thanks in advance!

Best Answer chosen by Admin (Salesforce Developers) 
the_wolfthe_wolf

Hi michaelforce,

 

yes, I have resolved my problem!

Simply insert a robots.txt in your sites!

 

Best regards,

the_wolf

 

 

 

All Answers

michaelforcemichaelforce

Hey wolf,  I'm having the same issue!  The ads work fine when you go to the force.com domain address, and then they don't work when you go to the custom URL.

 

I've also noticed that if you put the AdSense code into a visualforce page and view directly (not using sites) the ads do not show up there either.

 

Can anyone shed any light on this??

michaelforcemichaelforce

the_wolf, I just clicked on your links and it appears like you got the ads working with the custom URL... is that correct?  If so, HOW?

the_wolfthe_wolf

Hi michaelforce,

 

yes, I have resolved my problem!

Simply insert a robots.txt in your sites!

 

Best regards,

the_wolf

 

 

 

This was selected as the best answer