I've tried everything I can think of. Read all the forums that I could find and still cannot figure out why my google adsense are not displaying. The weird thing is that I had it working the other day but deleted the site figuring that I could recreate it without and difficulty. This is what I've done so far:

1)Installed Drupal 5.3
2)Installed adsense Mondule
3)Enabled the profile and Adsense Module
4)Set input format to PHP code
5)Created a "single-line textfield" profile and entered Category: "Google Adsense Client ID" Title: "Google Adsense Client ID" and Form name: "profile_google_adsense_client_id"
Made the profile Private
6) went to My account>Edit and put in my google adsense client ID
7) went to Administer>Google Adsense and selected the Google Adsense Client ID for the Google Adsense Client Id Profile field. (I had to save the configuration twice to get rid of an error, it appears that the changes do not take place until saved twice, no idea why).
8) Configured the a block
9) exited out of administrator mode because Adsense Module will not display when logged in as an Administrator.

Now I still do not see my ads displayed.

The site is

http://highat.com This is a clean Drupal install that i get installed

I believe I followed the same steps a week ago and it worked now I've tried a dozen times and still cannot get it working.

Please Help

CommentFileSizeAuthor
#6 adsense-test.gif8.48 KBPetra

Comments

kbahey’s picture

Status: Active » Closed (fixed)

On your site, the Google adsense code shows up correctly.

It takes some time for Google to index new sites and show ads on them.

Be patient.

Also, use the 5.x-2.x version. It has better features.

reb00t’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

I don't mean to be a pain but I don't believe you are correct. Every other site that I've created the google adsense is displayed immediately. In addition the one time I installed the adsense module for drupal and got it working properly the ads showed instantly. Any other ideas? If in fact you are correct how long do you think it would take google to index the site and show ads? I have also tried the 5.x-2.x version without any luck. The reason I am Version 5.x-1.6 is because that was the only time I was able to get adsense to work but it was very difficult and I cannot recreate what i did to get it to work.

Thanks for your input.

kbahey’s picture

I don't know why they are not displaying.

What I know is that the module is generating the correct javascript code.

This is in your HTML:

<!--adsense: cached-->
<div class="adsense">
<script type="text/javascript"><!--
google_ad_client = "pub-3952533677664335";
google_ad_type = "text";
google_ad_channel = "";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "336699";
google_color_url = "FF8C00";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

You have a valid format and a valid Adsense Client ID.

So, the module is working as it was designed.

Probably Google is detecting this is a stock Drupal install, with no nodes published, and hence no content, and not displaying anything.

Try posting a node with some text in it (20 - 30 lines) and see if it makes a difference.

reb00t’s picture

Ok I posted some content...still nothing.

I've been referring to this post a lot to resolve the issue.

http://drupal.org/node/71023

One of the posts says to TRUNCATE cache in the database which I did without success. Is there any other cache that I should remove that might resolve the issue?

I've also tried to just copy and paste the google code into a block without the module and I get a page cannot be found where the block should be....I only see this if I view from IE not firefox. I'm completely confused. :-(

kbahey’s picture

For cache truncation, see my comment here http://drupal.org/node/71023#comment-733975

Don't know what else you can do about this, short of contacting Google and asking them.

Petra’s picture

StatusFileSize
new8.48 KB

I postet your adsense-code in one of my sites as a page and it shoes ads at first pageview. Look at the attached image.
But I have no idea, what can be wrong with your site.

reb00t’s picture

That is so weird thx for the info....but I still do not understand why it is not working on my site.

reb00t’s picture

OK maybe this will help. I had my web host restore the site that i had the adsense module working. Here it is:

http://usedbouncehouses.com

As you can see the ads work on this site. Does this help? What is the difference between highat.com and usedbouncehouses.com I believe i set up the adsense module the same way.

Thanks a lot for all the help you are giving me I really appreciate it. I love drupal but I need adsense to work in order for me to use it.

Thanks again,

Willy

Petra’s picture

One difference is the client-id:
google_ad_client = "ca-pub-3952533677664335";
and
google_ad_client = "pub-3952533677664335";

I don't know a 'ca-' in client-id - but it works on your other site.

kbahey’s picture

Petra,

Google has different ID schemes. I think ca- is for business or something like that.

WillyWonka

Your highat site does not have the ads enabled. It shows a placeholder now.

Make sure that the settings are the same for both sites, then flush the cache once more, and let us know.

Oh, and make the Google IDs the same, just in case.

reb00t’s picture

Guys I have to apologize....I found out that google banned that domain from displaying google ads. I just tried the adsense module on another site on mine:

snowmanage.com

The ads work fine. Sorry to have wasted you time. I've had that domain for a long time and at one point it was a forum with what google must have considered "inappropriate material." I've been banging my head against the wall on this for a week....well at least I'm not crazy. Thanks again for you time. Great Mod btw.

kbahey’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)
paulieyo’s picture

Hi,

I have a pub-id that is the ca-pub-xxxxxxxxxxxxxxxxx format as well and I believe that is because I am Canadian ... and all my info points to me being in Canada, hence the use of the ca.

However if I put in the ca-pub-xxxxxxxxxxxxxxxxx the module does not accept it but if I remove the ca at the start it accepts the format. The only problem is after that I do not see any ads being displayed anywhere.

Has anyone happened to encounter this as well?

Cheers,

Paul

christianhau’s picture

Version: 5.x-1.6 » 6.x-1.x-dev

Hi!

I am having the same problem. I have a ca-pub-xxxxx formatted id aswell but the module accepts both formats.. But with either of the format none of my adds are displaying.

Christian

premg’s picture

AdSense Site Configuration

I visited several times this posting if someone had found the solution as I had the same blank AdSense block but this is what I have found out by myself and got solved:

yoursite/admin/settings/adsense/id

Enter your Google AdSense Publihser ID: pub-9999999999999

Of course you have configure the google AdSense block as desired.

Then just stay and watch money growing in your Google Account. :-D

Premg