How to add adsense Code in large no of pages through php include function ??

Discussion in 'AdSense' started by netincome4you, Aug 11, 2010.

  1. #1
    Dear Friends,

    Can any one help me , and write exact code of php include, to call and embed adsense ad code into my multiple html pages. i want to write adsense code once in a text file and call simple php include file function to show all the adsense ads.
     
    netincome4you, Aug 11, 2010 IP
  2. Rasputin

    Rasputin Peon

    Messages:
    1,511
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Something like...

    <?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/adsense-336-280.html'); ?>
    PHP:
    where your google code is in a file called adsense-336-280.html in the /includes/ directory should do it (I like to include the ad size in the filename so you can type it without checking
     
    Rasputin, Aug 11, 2010 IP