Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google adsense... help & question


louis1st

Recommended Posts

I have just been reading about google's adsense, and according to what is said on their website (http://www.google.com/services/) some people seem to be very happy by the result.

 

I wanted to know if anybody has used this and what you think.

 

Also, did you get a good result?

 

Would this be OK to use with oscommerce (I think they say to paste a html code into the page but oscommerce is php so I am not sure if it would work )?.....

 

thanks all

Link to comment
Share on other sites

  • 3 months later...

Yes, very good results. I receive a monthly check from the Google Boys.

 

You can put the code anywhere really. Mine is in the right column, other sites I have built for people they wanted it in the footer. I have also put it by itself in the banner rotation (no other rotation banners).

 

HTH

Link to comment
Share on other sites

  • 9 months later...
Yes, very good results. I receive a monthly check from the Google Boys.

 

You can put the code anywhere really.  Mine is in the right column, other sites I have built for people they wanted it in the footer.  I have also put it by itself in the banner rotation (no other rotation banners).

 

HTH

 

 

Can you help

 

I would like to add the google adsense to my right column also. I have tried a few recomendations I have found in the forum and all seem to return errors. Do you know the syntax that surrounds the google code?

 

Thanks for your help

 

 

Tom

Link to comment
Share on other sites

Here's what I use

<?php  if ($request_type == NONSSL) {   /* only show adsense in NON SSL else it causes warning */
?> 	 
 <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 } ?>
 

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

  • 1 month later...
Here's what I use
<?php ?if ($request_type == NONSSL) { ? /* only show adsense in NON SSL else it causes warning */
?> ?	
?<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 } ?>
?

 

Jack

 

 

CORRECTION:

 

If you use the code shown above, you may get errors like I did. Here is the corrected code that works for me (this is only the very first part of the code. The rest of my code is a bit different perhaps because I use mine in the header)...

 

<?php  if ($request_type == 'NONSSL') ?>

Link to comment
Share on other sites

HOWEVER:

 

Even though that line of code above works with no OSC page errors I still get the "non-secure items" browser dialog box when I go to a secure page because the ads are still showing when accessing a secured page. They are not supposed to, correct?

 

Any solution to this?

Link to comment
Share on other sites

Yes, very good results. I receive a monthly check from the Google Boys.

 

You can put the code anywhere really.  Mine is in the right column, other sites I have built for people they wanted it in the footer.  I have also put it by itself in the banner rotation (no other rotation banners).

 

HTH

Cathy,

 

I am curious about how well these ads work. I know their computer reads your page and places ads that have the same or similiar content as your page. Do you think you lose any business to the sites paying for the ads?

Link to comment
Share on other sites

HOWEVER:

 

Even though that line of code above works with no OSC page errors I still get the "non-secure items" browser dialog box when I go to a secure page because the ads are still showing when accessing a secured page.  They are not supposed to, correct?

 

Any solution to this?

If you are still getting the error it is most likely something else on your page that is causing it.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Cathy,

 

I am curious about how well these ads work. I know their computer reads your page and places ads that have the same or similiar content as your page. Do you think you lose any business to the sites paying for the ads?

You have to monitor what ads are being shown. If the prices on your products are higher than those of your competitiors, you should not allow those competitors to have an add on your page. This is controllable in your adsense account.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I have AdSense on my web site, but not on my osC pages.

 

Once I get a visitor to my store I do not want to encourage them to leave. I do not plan to advertise any other sites on my store pages.

 

I am very happy with the income I get considering my site is not a high volume site.

Rik Rasmussen

Link to comment
Share on other sites

I have AdSense on my web site, but not on my osC pages.

 

Once I get a visitor to my store I do not want to encourage them to leave. I do not plan to advertise any other sites on my store pages.

 

I am very happy with the income I get considering my site is not a high volume site.

 

Just a thought, can the ad code be altered to open a new window with the outside links?

 

This may be of help if your site stays active and the links open in new windows?

 

Anyone have this altered??

 

Thx, KJ

define('PROJECTS', 'Something that goes on forever!');

Link to comment
Share on other sites

I got mine working by using the Adsense contribution. But I took adsense down now. I have taken my ads down because they cost me sales, I believe. I have a busy store and with adsense up, my sales immediately slowed.

 

 

I haven't tried it but the code just contains a normal html link so I would think it work.

 

Jack

 

 

NO :o

 

You cannot alter the adsense ad code in ANY way, shape or form.. It is against Google's rules.

 

I suggest that before you use adsense, you read the terms of service and all the FAQs completely. There are many things you cannot do and one of them is not talk about how much money you make, too, along with not altering any code. You will get your account indefinitely suspended. They do not take take breaking the TOS lightly and they look for it all the time. they are very serious about protecting the value of their ads and making them open in a new window decreases the value of the ads.

 

 

All in all, I have found that using adsense in an ecommerce store is not usually a good thing to do.

 

Also, using AdSense in an OSC store is worthless becasue the session ID and all the other stuff that comes after the "?' in the URL make adsense ads not able to generate relevent ads.

 

For instance, if you use your straight URL to see your adsense ads you will see targeted ads. HOwever, if you go to, say, http://www.YOURSTOREDOMAIN.com/shop/index?9384234j23

 

You will notice that you will not get targeted ads if you get them at all.

Link to comment
Share on other sites

Yes. It is good to know. There are many things you can do to get booted. And there are many things that you do not do that will ge tyou booted as well. Many folks have been booted from AdSense becasue malicious visitors kept click on ads like there was no tomorrow. Google suspends many people for this. even though it is not your fault, Google cannot prove you are not at fault and neither are you. the solution: they just boot you. No questions asked and no rebuttals will do you any good.

 

 

Again, read the TOS and all of the FAQs. It is absolutely important to you account to know the rules like the back of your hand. They will always let you know when they change the TOS.

Link to comment
Share on other sites

If you are still getting the error it is most likely something else on your page that is causing it.

 

Jack

 

No that is not the case. if you put adsense in your header, footer, or one of the side columns, your ads will show up in secure mode and therefore cause an error becasue the ads are not on your seure server.

 

You must use the NONSSL line of code correctly in order to not have the ads show in SSL mode. For some, they need to use single quotes, for others, no quotes at al. I guess I have a prety highly modded OSC store and perhaps something was changed so that I need to use the single quotes areound the NONSSL part of the line ion order for it to work. Who knows.

Link to comment
Share on other sites

No that is not the case.  if you put adsense in your header, footer, or one of the side columns, your ads will show up in secure mode and therefore cause an error becasue the ads are not on your seure server.

 

You must use the NONSSL line of code correctly in order to not have the ads show in SSL mode.  For some, they need to use single quotes, for others, no quotes at al.  I guess I have a prety highly modded OSC store and perhaps something was changed so that I need to use the single quotes areound the NONSSL part of the line ion order for it to work.  Who knows.

I think you may have misread my post. I said if the above code was in and the error still exists then there is some other reason for the failure. Does that differ somehow from what you said?

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

  • 2 months later...
Yes, very good results. I receive a monthly check from the Google Boys.

 

You can put the code anywhere really.  Mine is in the right column, other sites I have built for people they wanted it in the footer.  I have also put it by itself in the banner rotation (no other rotation banners).

 

HTH

 

 

Can you help me to place google adsense code in footer?

What code shall i use?

Link to comment
Share on other sites

just paste the code in the footer.php

 

And there we go again. Full circle. Doing so will cause the security popup box to show when you access the site securely. if you read this thread and others pertaining to adsense you'd realize this already. You need to make sure that when you are in secure mode, the ads do not show. Otherwise, you could lose customers. Sure, the security box means nothing but the average web shopper does not understand this.

 

Your best bet is to do a search on the contribs for ADSENSE and use the one contrib that works for you.

 

Good luck.

Link to comment
Share on other sites

Make a conditional statement, which only shows the adsense code on http and not when you are on https/SSL.

Link to comment
Share on other sites

  • 5 weeks later...
Here's what I use
<?php ?if ($request_type == NONSSL) { ? /* only show adsense in NON SSL else it causes warning */
?> ?	
?<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 } ?>
?

 

Jack

 

Thanks Jack. I had a hard time figuring out how to stop the Non secure dialog box from appearing. When I placed your code directly into catalog/includes/header.php it worked like a charm! I only had problems when I used the banner rotator to present the code.

 

Since you have to place the banner rotator code wherever you want banners, the rotator code overrides any security settings in your browser. Also, if you put Jack's code in the rotator, the rotator over powers that code. Based on that, it is safer to use Jack's code by placing it directly into your header.php code. I've followed Jack's postings lately and he hasn't let me down yet.

Link to comment
Share on other sites

  • 1 month later...

I am using STS, I tried to paste the script along with my adsense ad script but I am still getting the nonsecure message on my SSL pages.

 

I added the script to my sts_template.html page, is there somewhere else I need to put it?

Link to comment
Share on other sites

  • 1 month later...

I'm using

<?php 

if ($banner = tep_banner_exists('dynamic', '468x60')) { 
if  ($request_type == 'NONSSL') {


?> 

<br> 

<table border="0" width="100%" cellspacing="0" cellpadding="0"> 

<tr> 

  <td align="center"><?php echo tep_display_banner('static', $banner); ?></td> 

</tr> 

</table> 

<?php 

}

} 

?>

 

in my footer.php but dont get any banner ads showing whether i am in http or https mode! Any clues? My banners are suppled by tradedoubler....

 

Thanks

 

 

Gareth

Link to comment
Share on other sites

  • 1 year later...

The code I used for mine is:

 

<?php  if ($request_type == NONSSL) {   /* only show adsense in NON SSL else it causes warning */
?>   
PLACE GOOGLE CODE HERE
<?php } ?>

 

I used this for any code directly inserted into header.php an footer.php.

 

This seems to work well.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...