Print Page | Close Window

Integrating Google Adsense Code

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=948
Printed Date: 28-June-2025 at 7:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Integrating Google Adsense Code
Posted By: swaynewilson
Subject: Integrating Google Adsense Code
Date Posted: 10-July-2007 at 7:47pm
Sorry if this has been asked before...I searched all FAQ's, Forum topics,
KnowledgeBase and didn't find anything.

I am trying to integrate Google's Adsense ads into the right column of
ProductCart. I have recently converted to ProductCart from .php-based
CubeCart. I have everything working now except this. Anyone done this?



Replies:
Posted By: swaynewilson
Date Posted: 22-July-2007 at 8:57pm
I figured out how to do this and since a number of people viewed this, I thought I would put it up here.

I put the Adsense script code in the footer.asp just below the

                      <!-- START Logins -->
                      <div id="pcCustomerLogin">
                           <h3>Customer Account:</h3>
                                 <ul>
                                       <%
                                           ' If the customer is not logged in
                                           ' show a link to the registration page.
                                           if session("idCustomer")="0" or session("idCustomer")="" then
                                      %>
                                           <li><a href="custPref.asp">Register/Login</a></li>
                                      <% else
                                           ' Otherwise show the customer service links     %>
                                           <li><a href="custPref.asp">Account Home</a></li>
                                           <li><a href="CustviewPast.asp">Previous Orders</a></li>
                                           <li><a href="login.asp?lmode=1">Billing Address</a></li>
                                           <li><a href="CustSAmanage.asp">Shipping Addresses</a></li>
                                      <%
                                           ' If the Wish List feature is active, show a link to it
                                                if (scWL="-1") or ((scBTO=1) and (iBTOQuote=1)) then
                                      %>
                                                <li><a href="Custquotesview.asp">Saved Products</a></li>
                                           <% end if %>
                                      <li><a href="CustLO.asp">Log Out</a></li>
                                 <% end if %>
                                 </ul>
                                
                           </div>
                           <h3> Sponsored Links</h3>
                           <center>

                      <script type="text/javascript">
                      <!--
                      google_ad_client = "YOURADSENSE CODE HERE";
                      google_ad_width = 120;
                      google_ad_height = 600;
                      google_ad_format = "120x600_as";
                      google_ad_type = "text";
                      google_ad_channel = "";
                      google_color_border = "FFFFFF";
                      google_color_bg = "FFFFFF";
                      google_color_link = "4587D1";
                      google_color_text = "000000";
                      google_color_url = "6131BD";
                      //-->
                      </script>

                      <script type="text/javascript"
                      src="http://pagead2.googlesyndication.com/pagead/show_ads.js ">

                </script>

                      </center>           


Unfortunately if you are using SSL, you will get all kinds of nasty "secure & non secure data on this page" warning in Microsoft Internet explorer. So I ended up taking it off. You may have better luck.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net