NameSilo

GoogleAds into CGI Scripts

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

BLazeD

VIP Member
Impact
23
I am trying to insert my googleads code into a .cgi script. But each time I do, I get an internal server error.

I have tried the normal google ads code, and also the code formatted like:

$content = "<script type=\"text/javascript\"><!--
google_ad_client = \"pub-xxxxxxxxxxxxxxxxxxx\";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = \"728x90_as\";
google_ad_channel =\"xxxxxxxxxxx\";
google_ad_type = \"text_image\";
google_color_border = \"333333\";
google_color_bg = \"000000\";
google_color_link = \"ffffff\";
google_color_url = \"999999\";
google_color_text = \"cccccc\";
//--></script>
<script type=\"text/javascript\"
src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
</script>";

Anyone that knows how to do it?

Cheers
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
check your error log. it should give more detailed outputs
 
0
Close
Cheers

It says - Premature end of script headers
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back