Jump to content

[SOLVED] Google Adsense - Problem


Recommended Posts

Hi,

Can anyone advise as to when I'm getting the following error message when I try to submit the Google Adsense code within the Google Adsense module?

Forbidden
You don't have permission to access /new/****/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Thanks,
Adam

Link to comment
Share on other sites

  • 3 weeks later...

find the file in your document root and change the permissions to 777, then try entering your code. If the file is just plain missing then redownload the installation package and place that file.

Hope this helps

dont forget to change your permission back once you have sorted it!

Link to comment
Share on other sites

  • 2 years later...

<script type="text/javascript"><!--

google_ad_client = "ca-pub-xxxxxxxxxxxxxxxxxxx";

/* Name */

google_ad_slot = "xxxxxxxxxxxxxx";

google_ad_width = 468;

google_ad_height = 60;

//-->

</script>

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>

 

 

Once I click on update setting the code is as below, is this normal?

 

 

 

<script type="text/javascript"><!--

google_ad_client = "ca-pub-xxxxxxxxxxxxxxxxxxx";

/* Name */

google_ad_slot = "xxxxxxxxxxxxxx";

google_ad_width = 468;

google_ad_height = 60;

//-->

</script>

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>

Link to comment
Share on other sites

  • 1 month later...

I found I forgot to install my advise in right position after I upgraded the prestashop program, now I solved it.

function install()

{

if (!parent::install() OR !$this->registerHook('Footer'))

return false;

return true;

}

install it to correct position,

function hookFooter($params)

{

$output = html_entity_decode(Configuration::get('GADSENSE_ID'), ENT_COMPAT, 'UTF-8');

return $output;

}

then uploaded to my site, goto back office, uninstall the google adsense and install it again, undate your google advice codes.

My advise appreal again,

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
  • 1 month later...
  • 1 month later...

Hi,

 

Can anyone advise as to when I'm getting the following error message when I try to submit the Google Adsense code within the Google Adsense module?

 

Forbidden

You don't have permission to access /new/****/index.php on this server.

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

 

Thanks,

Adam

 

I am facing the same problem. Can anybody tell the solution for it. 404 forbidden error.

Link to comment
Share on other sites

  • 2 months later...

<script type="text/javascript"><!--

google_ad_client = "ca-pub-xxxxxxxxxxxxxxxxxxx";

/* Name */

google_ad_slot = "xxxxxxxxxxxxxx";

google_ad_width = 468;

google_ad_height = 60;

//-->

</script>

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>

 

 

Once I click on update setting the code is as below, is this normal?

 

 

 

<script type="text/javascript"><!--

google_ad_client = "ca-pub-xxxxxxxxxxxxxxxxxxx";

/* Name */

google_ad_slot = "xxxxxxxxxxxxxx";

google_ad_width = 468;

google_ad_height = 60;

//-->

</script>

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>

 

Having the same problem bump

The odd thing is that on one of the occasions it actually did work and displayed on the homepage which made me realize it was the wrong side so I did a new one and am having the same problems with it there. Not sure why it won't accept those characters

 

Huh... it just worked this time. Man, I don't understand what went wrong there but it's fine now.

Edited by Metsubo (see edit history)
Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

Hello, I will go ahead and mark this thread as solved. Thank you for choosing PrestaShop!

 

Hello Benjamin

 

the Problem isn't solved!!

 

i have Prestashop V 1.5.3.1 and have still the Problem with the Gadsense Modul

 

My Code from Gadsense

 

<script type="text/javascript"><!--

google_ad_client = "ca-pub-MyID";

/* GLBT */

google_ad_slot = "XXXXXXXXX";

google_ad_width = 468;

google_ad_height = 60;

//-->

</script>

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>

 

Output from Prestashop

 

<script type="text/javascript"><!--

google_ad_client = "ca-pub-3MyID";

/* GLBT */

google_ad_slot = "xxxxxxxxxxx";

google_ad_width = 468;

google_ad_height = 60;

//-->

</script>

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>

 

At Live edit it shows the banner

liveedit.PNG

 

and at the Live site it doesnt show the banner

 

livesite.PNG

 

Do you have any solution for this issue?

 

Regards Nico

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...