Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - V 9.70 Ad Code error message.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

V 9.70 Ad Code error message.

 Post Reply Post Reply Page  12>
Author
mAce View Drop Down
Newbie
Newbie
Avatar

Joined: 16 July 2007
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote mAce Quote  Post ReplyReply Direct Link To This Post Topic: V 9.70 Ad Code error message.
    Posted: 25 January 2011 at 8:20pm
We just had the upgrade, very slick.

I'm getting an error when updating the include. Here's what i'm doing and the error from Chrome.


'Enter your ad code below for ads shown in the forum header
strForumHeaderAd = "<script type=""text/javascript"" src=""http://syndication.webwiz.net/pagead/?L=wffh""><script type="text/javascript"><!--
google_ad_client = "ca-pub-0104799003429195";
/* SF HEADER */
google_ad_slot = "3078781356";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></script>"


Error message:

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/forum/includes/ads_inc.asp, line 53

strForumHeaderAd = "<script type="text/javascript"><!--
----------------------------------^
Am I doing something wrong?
Any help welcome,

Si
Scarletfever Forum
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 26 January 2011 at 10:48am
You need to replace the present code in the variable with your own add code. This also needs to be in a format that ASP can read.

The correct code for what you require is below:-

'Enter your ad code below for ads shown in the forum header
strForumHeaderAd = "google_ad_client = ""ca-pub-0104799003429195"";" & _
vbCrLf & "/* SF HEADER */" & _
vbCrLf & "google_ad_slot = ""3078781356"";" & _
vbCrLf & "google_ad_width = 728;" & _
vbCrLf & "google_ad_height = 90;" & _
vbCrLf & "//-->" & _
vbCrLf & "</script>" & _
vbCrLf & "<script type=""text/javascript""" & _
vbCrLf & "src=""http://pagead2.googlesyndication.com/pagead/show_ads.js"">" & _
vbCrLf & "</script></script>"
Back to Top
mAce View Drop Down
Newbie
Newbie
Avatar

Joined: 16 July 2007
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote mAce Quote  Post ReplyReply Direct Link To This Post Posted: 26 January 2011 at 7:21pm
Thanks Bruce, it's all up and earning. I did have to tweak the code slightly.
Back to Top
mAce View Drop Down
Newbie
Newbie
Avatar

Joined: 16 July 2007
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote mAce Quote  Post ReplyReply Direct Link To This Post Posted: 07 February 2011 at 8:01pm
I'm running google adsense on my forum and the ads that are in the include don't seem to be registering on my account. I also have one ad hard coded into the header.asp, which is registering perfectly. When i view source the ads appear to be identically formatted.

I'd like to try hard coding the ads that are not registering in their current positions, but can't seem to find which file and where they are included. Any pointers welcome. 

I would also like to use alternative ads for the mobile version, but I'll walk before i can run.


Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 07 February 2011 at 8:12pm
mAce

An answer will be here tomorrow
I thought however you had to edit includes/google_adsense_inc.asp
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 07 February 2011 at 8:14pm
Obviously you also need to be running the http://www.webwiz.net/web-wiz-forums/forum-compare-editions.htm - Premium edition
Back to Top
mAce View Drop Down
Newbie
Newbie
Avatar

Joined: 16 July 2007
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote mAce Quote  Post ReplyReply Direct Link To This Post Posted: 07 February 2011 at 8:32pm
Thanks, I'm displaying the ads fine. I have each on a separate custom channel and they are registering zero impressions. 
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 07 February 2011 at 8:36pm
There could be several reasons for this:

Your visitors are using adblock software so the ads are never shown

Adsense can't find any ads that fit your site and is showing public service advertising

Your Adsense code is not being loaded either because it is incorrectly applied to your website or the page stops loading before it gets to that code

Users have JavaScript turned off

You can contact Google in their Adsense support forums. Maybe someone there can help you identify the problem.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.