Home > Divertisment, Video-Movie > How to insert adsense code into php ? – the simplest answer !

How to insert adsense code into php ? – the simplest answer !

August 22nd, 2008 Leave a comment Go to comments

Someone ask me question “How to insert adsense code in php?”

Maybe the simplest answer is:

<?php echo “HTML ADSENSE CODE”; ?>

like this:

<?php echo “<script type=”text/javascript”><!–
google_ad_client = “pub-xxxxxxxxxxxxxxx”;
google_ad_width = 120;
google_ad_height = 60;
google_ad_format = “120×60_as_rimg”;
google_cpa_choice = “yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy”;
//–>
</script>
<script type=”text/javascript” src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>”; ?>

Have fun with php !

  1. No comments yet.
  1. No trackbacks yet.
GoCache - ByREV-Cache v1.0 - live served in : 0.378425 sec (gzip)