function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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