I have the recent version of the module and nothing I do will allow ads to be shown. I have the php input filter enabled. I have the block enabled with the appropriate php tags and all of my adsense information in place. And yes I have logged out of my account.

http://www.apockotos.com

Comments

kbahey’s picture

Priority: Critical » Normal

I dont see any block that should have adsense in it at all on your web site.

Tell me exactly what is in the block, and what the block title on the web site is, and I will take another look.

fbomb’s picture

I'm getting the same thing.

I viewed source on the page, and it appears that the JS for showing the ads is correct. I copied this JS to another test page, but the ads still don't show. i think it may be a problem with my adsense account....

http://test.polevaultpit.com --> Sponsored Links block on left

kbahey’s picture

Status: Active » Closed (fixed)

The block on http://test.polevaultpit.com/ does show Google Adsense ads correctly.

I also see <!--adsense: cached--> which means the module generated the javascript, and even cached it.

I am not sure why you are not seeing this on your other site. Perhaps the site is so new that Google does not know what it is about, no keywords, ...etc.

So, closing this issue.

RobRoy’s picture

Not sure if this is related, but adsense will be hidden for admin account since admin accounts have ALL priveledges and this includes the 'hide adsense' priveledge. I feel like this should be reveresed so the perm is 'show adsense', but that's just me.

IamPter’s picture

Status: Closed (fixed) » Active

The reason why most of you probably didn't see anything is because I deleted the entire site and re-installed drupal.

Now I have been an adsense user since last year. If I create a block with the normal adsense code then the ads appear normally. But using this module nothing appears. And yes I am logged out and even tried on another computer. I have made it easy to see where the ads should appear. All I can see in the source is the following:

Google Ads

IamPter’s picture

Sorry the last part was converted:

 <div class="block block-block" id="block-block-2">
    <h2 class="title">Google Ads</h2>
    <div class="content"><!--adsense: page not in match list--></div>
 </div>
kbahey’s picture

If you look at the source, you will find that it contains the comment:

<div class="content"><!--adsense: page not in match list--></div>

This means that the page matching part is not setup correctly.

Also, there was a bug recently and it has been fixed. Please download the latest tarball and install it.

IamPter’s picture

This was just installed again in a fresh install minutes before my repost. Could you be more specific about "This means that the page matching part is not setup correctly". Now is the cvs tarball more recent that the version in the listed modules for 4.6.0?

IamPter’s picture

Ok I updated to the 1.10 version of this module. But I am still stuck on <div class="content"><!--adsense: page not in match list--></div>

kbahey’s picture

Version: 4.6.x-1.x-dev » master

1.10 version is the latest. For some reason the daily build does not happen regularly, and it is stuck at May. Downloading the CVS version overcomes this problem.

The page matching I am referring to is where it says:

Show Adsense on specific pages:
- Show on every page except the listed pages.
- Show on only the listed pages.

Make sure the first option is checked and there is nothing in the "Pages" box below them.

Do you have it set this way?

IamPter’s picture

I do have it set to this option: Show on every page except the listed pages. with no pages listed for exclusion.

kbahey’s picture

Can you please go into the database, and run these two SQL statements:

DELETE FROM variable WHERE name like 'adsense%';
DELETE FROM cache WHERE cid like 'adsense%';

Then, go into admin/settings/adsense, and enter you Google Client ID (only the client ID, leave everything else as it is). Then save, then go to the web site's main page and see if you can see the ads.

IamPter’s picture

Still nothing. I don't understand. Months ago when I requested the channel ID feature. This module worked. I am running a fresh install of 4.6.2. php is 4.3.11 and mysql is 4.0.24-standard. I really like this module since it hides the ads from me. But this is driving me crazy. It shouldn't be this difficult.

kbahey’s picture

Component: Miscellaneous » Code
Category: support » bug
Status: Active » Fixed

I just commited a change that should make it work.

The page matching logic was not correct in 1.10.

Hope this works for those who want ads on certain pages too.

IamPter’s picture

I just downloaded the cvs version and it is still listed as 1.10

IamPter’s picture

fbomb,

I see it is working on your site. How did you get it to work?
On another note. I don't have any categories setup would this cause the module not to load. And would there be any issue with the permissions of the adsense.module?

IamPter’s picture

Kbahey,

1.11 Did it. Google ads now load! Thank you so much!!!!!!!!!

fbomb’s picture

I'm going to assume it was my AdBlock filter in Firefox that was causing my problem....thanks for the quick spot check....

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Status: Fixed » Closed (fixed)