Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (Ruben), 43 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 03/24/10
Posts: 8
Top Posters (30 Days)
Ruben 50
Gizmo 24
DennyP 24
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#228986 - 09/05/09 11:24 AM Getting Google AdSense Code to Display in Custom Islands
24hourcampfire Offline
journeyman
Registered: 11/02/06
Posts: 91
Hi Guys:

I've tried search and implementing all I found there, and I still can't get Google AdSense Java code to display in a custom island.

Here's the Java code as generated by Google:
Code:
<script type="text/javascript"><!--
google_ad_client = "pub-7613791073340750";
/* 160x90, created 9/4/09 */
google_ad_slot = "9256914271";
google_ad_width = 160;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>



And here's my implementation ... basically putting it between the EOFs wih no spaces.

Code:
/* BODY HERE */

$body = <<<EOF
<div align="center">
<script type="text/javascript">
<!--
google_ad_client = "pub-7613791073340750";
/* 160x90, created 9/4/09 */
google_ad_slot = "9256914271";
google_ad_width = 160;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
EOF;
/* DO NOT CHANGE THE LINE ABOVE */


No workee. Can anybody help?

Rick



Edited by Gizmo (09/05/09 04:53 PM)
Edit Reason: [code] tags
_________________________
Rick Bin
24hourcampfire.com

http://www.24hourcampfire.com/ubbthreads/ubbthreads.php
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#228988 - 09/05/09 11:48 AM Re: Getting Google AdSense Code to Display in Custom Islands [Re: 24hourcampfire]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
It sure looks like you have it setup properly. Is it giving you an error or just not displaying anything? If you want to open up a basic support ticket I can take a closer look.
Top
#228991 - 09/05/09 12:06 PM Re: Getting Google AdSense Code to Display in Custom Islands [Re: Rick]
24hourcampfire Offline
journeyman
Registered: 11/02/06
Posts: 91
Just not displaying anything.
_________________________
Rick Bin
24hourcampfire.com

http://www.24hourcampfire.com/ubbthreads/ubbthreads.php
Top
#228992 - 09/05/09 12:10 PM Re: Getting Google AdSense Code to Display in Custom Islands [Re: Rick]
24hourcampfire Offline
journeyman
Registered: 11/02/06
Posts: 91
Just not displaying anything.

Basic Support ticket opened. smile
_________________________
Rick Bin
24hourcampfire.com

http://www.24hourcampfire.com/ubbthreads/ubbthreads.php
Top
#228993 - 09/05/09 12:10 PM Re: Getting Google AdSense Code to Display in Custom Islands [Re: 24hourcampfire]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
If you put that adsense code into a regular html page does it show up ok? I've had a couple ads that didn't start displaying close to 24 hours after they were setup.
Top
#228994 - 09/05/09 12:35 PM Re: Getting Google AdSense Code to Display in Custom Islands [Re: Rick]
24hourcampfire Offline
journeyman
Registered: 11/02/06
Posts: 91
yup. Shows up fine even in HomeSite.
_________________________
Rick Bin
24hourcampfire.com

http://www.24hourcampfire.com/ubbthreads/ubbthreads.php
Top
#228995 - 09/05/09 12:35 PM Re: Getting Google AdSense Code to Display in Custom Islands [Re: Rick]
Ruben Online   hyper

Registered: 12/20/03
Posts: 4424
Loc: Lutz,FL
I just pasted you ad code on my island and it works fine. Using v7.5.3
_________________________
Blue Man Group
Top
#228997 - 09/05/09 01:02 PM Re: Getting Google AdSense Code to Display in Custom Islands [Re: Ruben]
Bad Frog Offline
addict
Registered: 05/13/08
Posts: 596
Loc: Coast of Maine
make sure you ad blocking turned off, it may be blocking it on your site?

I have adsense running in a custom island it it works fine.
_________________________
"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Top
#229004 - 09/05/09 04:52 PM Re: Getting Google AdSense Code to Display in Custom Islands [Re: Bad Frog]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Keep in mind that if the site hasn't been crawled the code will return a blank set. It will also return a blank set if there is an issue on the site itself and you need to contact google.

A good test is to just create a test.html file and put the google code in it and upload it to your site and access it to ensure that it's not an issue with the google code in the first place (I've seen this happen with several client sites)
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image