Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google Add Sense


gaspower

Recommended Posts

Hello,

 

I am using the below code in footer.php. I am getting the warning "Unauthorized Content". I assume due to the (http://pagead2.googlesyndication.com/pagead/show_ads.js"). Is there a way to use the below code without getting the warning?

 

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

google_ad_client = "pub-9219******6187255";

/* 728x90, created 5/20/08 */

google_ad_slot = "12*****2545";

google_ad_width = 728;

google_ad_height = 90;

//-->

</script>

<script type="text/javascript"

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

</script>

 

Thanks JR

Link to comment
Share on other sites

Hello,

 

I found the below to work, and only show Ad Sense in Non HTTPS. Was wondering still if possible to show both in http and https?

 

<?php if ($request_type == NONSSL) {

?>

<tr><td align="center">

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

 

PLACE GOOGE CODE HERE

 

//--></script>

<script type="text/javascript"

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

</script>

</td></tr>

<?php } ?>

 

Thanks JR

Link to comment
Share on other sites

I found the below to work, and only show Ad Sense in Non HTTPS. Was wondering still if possible to show both in http and https?

Only if you change the links from http to https.

 

Try it.

 

If it works great!

 

If it doesn't, change it back.

 

Any content, images or scripts, from HTTP sources will cause problems on HTTPS pages.

 

No way around it.

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...