Forums / Addon Sideboxes / Problem with Adsense sidebox, need assistance

Problem with Adsense sidebox, need assistance

Locked

Started by angelanger on 15 Aug 2006, 8:14 AM · Views: 5,182

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
15 Aug 2006, 8:14 AM
#1
angelanger avatar

angelanger

New Zenner

Join Date:
Aug 2006
Posts:
40
Plugin Contributions:
0

Problem with Adsense sidebox, need assistance

I installed the Google Adsense sidebox I found here:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_52&products_id=149

I added the code from Google to the tpl_google_adsense.php as stated in the readme.

But I'm getting "You are not authorized to view this page" error where the ads are suppose to be showing up. (only visible in IE, firefox just shows nothing in the box)

My website is https://www.populuxebooks.com. I am using the default template that came with zencart.

Anyone able to help?

15 Aug 2006, 8:41 AM
#2
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Problem with Adsense sidebox, need assistance

angelanger:

I installed the Google Adsense sidebox I found here:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_52&products_id=149

I added the code from Google to the tpl_google_adsense.php as stated in the readme.

But I'm getting "You are not authorized to view this page" error where the ads are suppose to be showing up. (only visible in IE, firefox just shows nothing in the box)

My website is https://www.populuxebooks.com. I am using the default template that came with zencart.

Anyone able to help?

Not certain if this will help, but in the google code you added there is a line

google_ad_channel ="9168118680";

I am not sure what this line does but try instead

google_ad_channel ="";

This is the main difference between yours and mine that I can see.

15 Aug 2006, 8:45 AM
#3
angelanger avatar

angelanger

New Zenner

Join Date:
Aug 2006
Posts:
40
Plugin Contributions:
0

Re: Problem with Adsense sidebox, need assistance

Did as you suggested but there was no change. I just signed up with adsense less than an hour or so ago, could there be some delay caused by the newness?

15 Aug 2006, 9:07 AM
#4
angelanger avatar

angelanger

New Zenner

Join Date:
Aug 2006
Posts:
40
Plugin Contributions:
0

Re: Problem with Adsense sidebox, need assistance

Just to make sure I put them in the correct places, here's where they went

includes/languages/english/extra_definitions/classic/google_box_defines.php

includes/modules/sideboxes/classic/google_adsense.php

includes/templates/template_default/sideboxes/google_adsense.php (this is the one I added the google code to)

15 Aug 2006, 10:54 AM
#5
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Problem with Adsense sidebox, need assistance

angelanger:

Just to make sure I put them in the correct places, here's where they went

includes/languages/english/extra_definitions/classic/google_box_defines.php

includes/modules/sideboxes/classic/google_adsense.php

includes/templates/template_default/sideboxes/google_adsense.php (this is the one I added the google code to)

While I don't use the classic template I believe it should work

I copied your google code to one of my sites and got the same error.
I then changed your line
google_ad_client = "pub-1918********9149";
to my client number and the code displayed fine.

I don't think there is anything wrong with your code I just think you have to wait for your ad client number to be approved.

15 Aug 2006, 8:42 PM
#6
angelanger avatar

angelanger

New Zenner

Join Date:
Aug 2006
Posts:
40
Plugin Contributions:
0

Re: Problem with Adsense sidebox, need assistance

Perhaps you're right but it's very odd how it works.

This afternoon I have adsense showing up in the sidebox if I view it in Firefox. If I check it out in IE it still gives me the same broken page link.

I deleted cookies and temp internet files in IE with no change.

16 Aug 2006, 1:00 AM
#7
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Problem with Adsense sidebox, need assistance

angelanger:

Perhaps you're right but it's very odd how it works.

This afternoon I have adsense showing up in the sidebox if I view it in Firefox. If I check it out in IE it still gives me the same broken page link.

I deleted cookies and temp internet files in IE with no change.

Just checked its working fine on your home page.
Some other pages are showing PSA (public sevice ads), this is because your site has not been fully scanned by google yet for relevant ads. If you don't want to show PSA on your site, there is google code that will collapse the box and not show them.

16 Aug 2006, 1:04 AM
#8
angelanger avatar

angelanger

New Zenner

Join Date:
Aug 2006
Posts:
40
Plugin Contributions:
0

Re: Problem with Adsense sidebox, need assistance

hey gilby, thanks a ton for looking over this stuff for me. It's very much appreciated.

16 Aug 2006, 1:45 AM
#9
ladysaat avatar

ladysaat

Zen Follower

Join Date:
May 2006
Location:
Anywhere USMC points
Posts:
330
Plugin Contributions:
0

Re: Problem with Adsense sidebox, need assistance

hey just a note, before you really get everything all dialed in... I would stop using that Classic template. Check out the override section in the Wiki docs and the Override posts for how to create your own template. If you don't then when you upgrade your cart, you will wipe out your stuff.

The ART of Zen ; man I wish I was an ARTIST!~!

Donate $5 a month, you spend more for NOTHING at McDonalds!

16 Aug 2006, 2:04 AM
#10
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Problem with Adsense sidebox, need assistance

ladysaat:

hey just a note, before you really get everything all dialed in... I would stop using that Classic template. Check out the override section in the Wiki docs and the Override posts for how to create your own template. If you don't then when you upgrade your cart, you will wipe out your stuff.

Agreed makes life much simpler in the long run. Its well worth biting the bullet and get started on your own template.

16 Aug 2006, 11:26 AM
#11
angelanger avatar

angelanger

New Zenner

Join Date:
Aug 2006
Posts:
40
Plugin Contributions:
0

Re: Problem with Adsense sidebox, need assistance

thanks but I don't know enough about coding to create my own template. As I understand it, I won't lose my work if I don't install any upgrades.

17 Aug 2006, 3:40 AM
#12
ladysaat avatar

ladysaat

Zen Follower

Join Date:
May 2006
Location:
Anywhere USMC points
Posts:
330
Plugin Contributions:
0

Re: Problem with Adsense sidebox, need assistance

well that may be true, but trust me you'll eventually want to upgrade LOL.

Look at it from this perspective. The first time I ever saw PHP was installing my zen cart. EVER. I am NOT a coder. To make your own template isn't actually much super php coding stuff. You make a few changes to a few files, almost all of which I found actually in posts here in the forums, copied and pasted it.... and then you change some CSS stuff in the stylesheet. The CSS stuff I also learned purely by trial and error, with the Firefox and Web Developer tool kit for it.

You can so do it!! Then once you do your first one and realize that it's possible, you realize you can do others for other things (seasons, special sales... whatnot).

The ART of Zen ; man I wish I was an ARTIST!~!

Donate $5 a month, you spend more for NOTHING at McDonalds!

17 Aug 2006, 10:11 AM
#13
angelanger avatar

angelanger

New Zenner

Join Date:
Aug 2006
Posts:
40
Plugin Contributions:
0

Re: Problem with Adsense sidebox, need assistance

Thank you for the advice but since the program does exactly what I want it to do I don't see a need for upgrades. Creating a new template when the one provided does the job just seems like adding another level of additional work for myself. I do not have a need to make changes for seasons or special sales.