ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Integrating Google Adsense Code
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Integrating Google Adsense Code

 Post Reply Post Reply
Author
Message
swaynewilson View Drop Down
Newbie
Newbie
Avatar

Joined: 10-July-2007
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote swaynewilson Quote  Post ReplyReply Direct Link To This Post Topic: Integrating Google Adsense Code
    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?
Back to Top
swaynewilson View Drop Down
Newbie
Newbie
Avatar

Joined: 10-July-2007
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote swaynewilson Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.