News: February 11, 2012, 11:07:25 PM

Please help support the ongoing development of our Affiliate Website Script using our
recommended Hosting Company & Directory Submission Software

Stay informed with our eBay RSS Feeds from our eBay affiliates forum:

eBay Affiliate Forum latest news.  eBay Affiliate Forum latest news.  eBay Affiliate Forum latest news.  eBay Affiliate Forum latest news.  eBay Affiliate Forum latest news.  eBay Affiliate Forum latest news.  eBay Affiliate Forum latest news.
Welcome, Guest. Please login or register. *

Adsense Question
Pages: [1]   Go Down
  Print  

  Adsense Question
Author Message
0 Members and 1 Guest are viewing this topic.
cnquest
Full EZAWBer
***

Karma: 13
Offline Offline

Posts: 195



WWW
« on: May 16, 2008, 10:59:56 AM »

Jorge,



Is there a trick to editing the adsense ads.  I replaced the javascript code in the top with what I got from GOogle and it breaks the template so that nothing shows up below the ad location including the ad.  I have also tried selectively replacing parts of the code with the same reuslts.  I don't believe I have touched the PHP that encloses the script so Don't understand why it would break the template:

Adsense top code - Orginal

Code:
<?php

echo "
<div align=\"center\">
<script type=\"text/javascript\"><!--
google_ad_client = \"$AdSense\";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = \"336x280_as\";
google_ad_type = \"text_image\";
google_ad_channel =\"\";
google_color_border = \"$google_color_border\";
google_color_bg = \"$google_color_bg\";
google_color_link = \"$google_color_link\";
google_color_text = \"$google_color_text\";
google_color_url = \"$google_color_url\";
//--></script>
<script type=\"text/javascript\"
  src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
</script>
</div>
"
;

?>


Results of my cut and paste:

Code:
<?php

if ($UseAdSenseTop=="no"){echo "";}
elseif (
$UseAdSenseTop=="yes"){echo "
<script type="
text/javascript"><!--
google_ad_client = "
pub-9743189793807585";
/* 468x60, created 5/13/08 */
google_ad_slot = "
3719661419";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="
text/javascript"
src="
http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
";}

?>


Let me know if you see anything I am missing.

Chris
Logged

It's up to you... to make it a great Day!
www.nextdaydomains.com
www.auctiondoctor.com
www.bidforcoins.net
EZAWB Admin
EZAWB Admin
Administrator
Master EZAWBer
*****

Karma: 61
Offline Offline

Posts: 1019


The Best Affiliate Website Builder!


WWW
« Reply #1 on: May 16, 2008, 11:08:20 AM »

Hi Chris,

I modified the AdSense module from the beta...

All you have to do now is enter the code directly from Google.

Example:
Code:

<script type="text/javascript"><!--
google_ad_client = "pub-9743189793807585";
/* 468x60, created 5/13/08 */
google_ad_slot = "3719661419";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>



You don't need:
Code:

<?php

if ($UseAdSenseTop=="no"){echo "";}
elseif (
$UseAdSenseTop=="yes"){echo "


</div>
"
;}

?>



Call me if you need Wink

Jorge
Logged

cnquest
Full EZAWBer
***

Karma: 13
Offline Offline

Posts: 195



WWW
« Reply #2 on: May 16, 2008, 11:14:20 AM »

Worked like a charm.

Once again you have answered a question before I finish typing the next one.

You are the Jedhi master and I bow to your skills  icon_cheers

Thanks

Chris
Logged

It's up to you... to make it a great Day!
www.nextdaydomains.com
www.auctiondoctor.com
www.bidforcoins.net
EZAWB Admin
EZAWB Admin
Administrator
Master EZAWBer
*****

Karma: 61
Offline Offline

Posts: 1019


The Best Affiliate Website Builder!


WWW
« Reply #3 on: May 16, 2008, 11:18:33 AM »

Well...

Thank you my young Padawan!

 laughing7
Logged


Pages: [1]   Go Up
  Print  

 

Jump to:  

Get your website featured here through Jan 22 2010

Choose Your Keywords (2 keywords max)

Powered by ezClouds


Please consider using our Recommended Hosting & eBay website Directory Submission Software
Host UNLIMITED eBay affiliate websites for only $7.95 per month!
You will be supporting the ongoing development of ez Affiliate Website Builder.

eBay affiliate hosting