![]() |
Integrating Google Adsense Code |
Post Reply ![]() |
Author | |
swaynewilson ![]() Newbie ![]() ![]() Joined: 10-July-2007 Location: United States Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() 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? |
|
![]() |
|
swaynewilson ![]() Newbie ![]() ![]() Joined: 10-July-2007 Location: United States Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |