Jump to content

google adsense module in PrestaShop 1.5


Recommended Posts

Hi,

Thank you for your idea.

 

I uploaded htmlbox to folder .../modules

In the administration I don't see module htmlbox.

 

I uploaded ContentBox to folder .../modules

In the administration I see this modul. Bohužel neumí java script.

Link to comment
Share on other sites

 

Hi, i have other problem.

in HTMLbox configuration I added this javascript:

 

<script type="text/javascript"><!--
google_ad_client = "...I deleted this ID...";
/* Google AdSense 250x250 */
google_ad_slot = "8356209241";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

 

HTMLbox on my website wrote this error:

 

The webpage cannot be found

HTTP 400

Most likely causes:
•There might be a typing error in the address.
•If you clicked on a link, it may be out of date.

What you can try:

Retype the address.
Go back to the previous page.

Go to  and look for the information you want.
More information
This error (HTTP 400 Bad Request) means that Internet Explorer was able to connect to the web server, but the webpage could not be found because of a problem with the address.
For more information about HTTP errors, see Help.

 

If you insert a normal HTML code, everything works.

 

For example:

 

<div class="block"><br/> <h4>advertising</h4>...

Link to comment
Share on other sites

Hi, i have other problem. in HTMLbox configuration I added this javascript:
 

HTMLbox on my website wrote this error:

 The webpage cannot be found HTTP 400 Most likely causes: •There might be a typing error in the address. •If you clicked on a link, it may be out of date. What you can try: Retype the address. Go back to the previous page. Go to and look for the information you want. More information This error (HTTP 400 Bad Request) means that Internet Explorer was able to connect to the web server, but the webpage could not be found because of a problem with the address. For more information about HTTP errors, see Help. 

If you insert a normal HTML code, everything works.

 

I got same problem. Can display normal HTML code, but can not display Adsense script:

 

Link to comment
Share on other sites

is there any chance to check your website? if so, paste the url

It is located in the right column in the bottom. For some reason I can see this box only in Opera. IE10 doesn't reflect it for some reason.

http://www.bestpixelrepair.com/

Adsense module is working fine (located on the left column in the bottom).

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

Hi,

 

Google AdSense offers two options for code (synchro / async)

 

I used async (BETA) and everything works for me.

 

Asynchronous contains comments. I therefore agree with the vekia.

 

With synchro, the adsense needs to load on everypage, which can make your website slower if the googleadsense is taking too long to load. Asynchronous means the page will load first, regardless of googleadsense loading/tracking.

Link to comment
Share on other sites

i checked your website, for me it isn't working too (chrome)

 

if it is possible - remove all comments from code that you use

 

by comments i mean:

/*  */

 

I did remove the comments. I was able to find only one /* and one */ in the code.

Doesn't do any difference.

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

Hi,

 

Google AdSense offers two options for code (synchro / async)

 

I used async (BETA) and everything works for me.

 

Asynchronous contains comments. I therefore agree with the vekia.

I just tried asynchronous - and it did work fine for me!

Thanks!!!

Link to comment
Share on other sites

i checked your website and you've got right, now it works well - block loads asynchronously.

Im convinced that this tip (to use asnychronous) will help for many other merchants (i saw several posts related to this case)

thanks again!

Link to comment
Share on other sites

i created simple html file with code with google adsense advert widget and for me it also didn't work. It worked only when i turned on async. method. So i think that this isn't related to the prestashop issues. (something goes wrong on google side? LOL?)

Link to comment
Share on other sites

  • 2 months later...

Kindly attention Mr. Vekia ....

 

 Google adsence and html box box not working in my module to place adsence code ? Kindly help and send a link for content box .

 

contentbox is located on external service (contentbox [dot] org) may i know why it doesn't work? as far as i remember, you have to configure adsense first (on google side)

Link to comment
Share on other sites

Kindly attention Mr. Vekia ....

 

 Google adsence and html box box not working in my module to place adsence code ? Kindly help and send a link for content box .

 

Hi Arminder, what is the issue you are having? There is a SOLVED post regarding content box here, http://www.prestashop.com/forums/topic/269624-solved-contentbox-problem-with-1541/

 

Please be more specific with your error and we can help better. Thank you!

Link to comment
Share on other sites

  • 9 months later...
  • 3 weeks later...

well,

htmlbox or contentbox are a solution if you have to use some custom code (widget codes etc.)

these modules will allow you to add some contents to your website

 

in some cases you have to be sure that code that you will use will work, for example, if code includes some libraries (js/css) you must check if these libraries exist

Link to comment
Share on other sites

Dear Vekia,

 

I have the following codes:

 

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- FooterAd -->
<ins class="adsbygoogle"
     style="display:inline-block;width:468px;height:15px"
     data-ad-client="ca-pub-9325087057698481"
     data-ad-slot="2620316657"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
 
 
AND
 
<script type="text/javascript"><!--
google_ad_client = "ca-pub-9325087057698481";
/* FooterAd */
google_ad_slot = "2620316657";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
 
 
 
 
¿Can you please tell me if the insertion of the code was correctly set up with htmlbox ?
 
Thank you,
 
Link to comment
Share on other sites

  • 6 months later...

Hi ... I need help with AdSense...

Ver - 1.6.09

I tried all above... HTMLbox .. Google Adsense module ... contentbox and I cannot get it to display

on the source code I can see that the adsense box is there (footer).

shop site is www.yourdailyfresh.com

 

Help will be highly appreciated.

 

Thanks, 

Link to comment
Share on other sites

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

 I have tried with with htmlbox or contentbox, but always change the code, I do not why . Please how to fixe it. Thank you

 

From

<script async src="/xxxxs"></script>
<!-- xxxx-->
<ins class="adsbygoogle"
     style="xxxk"
     data-ad-client=xxxx"
     data-ad-slot="x
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

 

To this

 

<script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- xxxx --> <ins class="adsbygoogle" style="display: block;"xxxxx" data-ad-slot="9943466541" data-ad-format="auto"></ins>
<script>// <![CDATA[
 (adsbygoogle = window.adsbygoogle || []).push({});
// ]]></script>

 

 

Link to comment
Share on other sites

  • 4 weeks later...
×
×
  • Create New...