PDA

View Full Version : Ads Issue


Tequila
04-04-2009, 10:53 AM
I'm trying to add in advertising codes (googleAdsense) and after I submit, I just get the linksbar.php page. No ads added at all.

Is this a bug?

BMR777
04-04-2009, 11:01 AM
What's the ad code you are trying to use? If you just insert some regular text as an ad does it appear?

Are the three ad files, header.txt, footer.txt and tower.txt writable CHMOD 777? :)

Tequila
04-04-2009, 11:26 AM
They're writeable. I'm trying to use the basic Google AdSense for Content code (it's JavaScript based). I'm still working on it though.

BMR777
04-04-2009, 11:27 AM
Is it that anything you enter in doesn't work or just your ad code?

Tequila
04-04-2009, 11:56 AM
Just ad code...

This is the ad code:
<script type="text/javascript"><!--
google_ad_client = "pub-9937811682735223";
/* 120x240, created 4/4/09 */
google_ad_slot = "1398716991";
google_ad_width = 120;
google_ad_height = 240;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

BMR777
04-04-2009, 11:58 AM
Try This:

<script type=\"text/javascript\"><!--
google_ad_client = \"pub-9937811682735223\";
/* 120x240, created 4/4/09 */
google_ad_slot = \"1398716991\";
google_ad_width = 120;
google_ad_height = 240;
//-->
</script>
<script type=\"text/javascript\"
src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
</script>

Sometimes the PHP doesn't like quotes so escaping them with backslashes \ should help. :)

Tequila
04-04-2009, 12:01 PM
Still a no go. :/ I'm going to have to do something different.

BMR777
04-04-2009, 12:04 PM
I would suggest then pasting the ad code into the actual template of the site.

The new release I am working on will store the ads in the database, which should solve a lot of issues people have had with the ads system. It will also let the site be adsense-compliant. :)

Tequila
04-04-2009, 02:03 PM
Even pasting the ad code into the template doesn't work. :/ (Yes I disabled my adblocker on my site.)

BMR777
04-04-2009, 02:05 PM
That's odd, it should work fine if you put it in the template the adoptable script is using.

Is your adsense account enabled?

Seapyramid
04-04-2009, 04:00 PM
When did you create your code? If it was recently google tells you it could take up to like 2 hours before ads start showing.

Sea

Tequila
04-05-2009, 07:41 AM
That's odd, it should work fine if you put it in the template the adoptable script is using.

Is your adsense account enabled?

Yeah, I don't use it much (hate ads on a portfolio, but I run it on other sites). I'll see if I can trick the script with include().


When did you create your code? If it was recently google tells you it could take up to like 2 hours before ads start showing.

Sea


It was about an hour before this. I can go and re-grab the code anytime though.

Seapyramid
04-05-2009, 10:10 AM
Just put the code up & leave it up. I tend to embed mine directly in the template. Check it a bit later and it should be showing. Look at Mystic Grove. I have one in the right side bar & one on bottom. http://www.mysticgrove.net & on pets galore on the bottom and the also on thread view in the forum.

Sea