Author |
Topic  |
MarcelG
Retired Support Moderator
    
Netherlands
2625 Posts |
|
D3mon
Senior Member
   
United Kingdom
1685 Posts |
Posted - 11 November 2003 : 05:41:30
|
Be aware though that there are some limitations, both practical and by-contract, to the use of AdSense in Snitz forums. Some scripting will be needed to only show AdSense on certain pages for contractual reasons. |
 Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod "In war, the victorious strategist only seeks battle after the victory has been won" |
 |
|
MarcelG
Retired Support Moderator
    
Netherlands
2625 Posts |
Posted - 11 November 2003 : 05:56:11
|
Yep, I saw that already... I am planning on showing adsense only on default.asp, index.asp, forum.asp, topic.asp, shortnews.asp, weblogs.asp, logfeed.asp, news.asp, portal_content.asp and file_library.asp
So, the code for displaying adsense will include something like this:
'## GOOGLE ADSENSE PAGE CHECKS AND JAVASCRIPT HERE
if Request.ServerVariables("URL") = "default.asp" or _
Request.ServerVariables("URL") = "index.asp" or _
Request.ServerVariables("URL") = "forum.asp" or _
Request.ServerVariables("URL") = "portal_content.asp" or _
Request.ServerVariables("URL") = "topic.asp" or _
Request.ServerVariables("URL") = "news.asp" or _
Request.ServerVariables("URL") = "logfeed.asp" or _
Request.ServerVariables("URL") = "weblogs.asp" or _
Request.ServerVariables("URL") = "shortnews.asp" or _
Request.ServerVariables("URL") = file_library.asp" then
GoogleAdOK=TRUE
else
GoogleAdOK=FALSE
end if
if GoogleAdOK=TRUE then
%>
<!--#INCLUDE VIRTUAL="include_adsense_code.asp" -->
<%
else
%>
<!--#INCLUDE VIRTUAL="include_other_code.asp" -->
<%
end if
I'll try to integrate it in my sidebar mod (as I am going to use the 'skyscraper' ad) |
portfolio - linkshrinker - oxle - twitter |
 |
|
Ryan
Average Member
  
USA
858 Posts |
Posted - 14 November 2003 : 21:59:05
|
I used mama2000's code (on page 2) but it didnt seem to work
quote: '## GOOGLE ADSENSE PAGE CHECKS AND JAVASCRIPT HERE if Request.ServerVariables("URL") = "/forum/default.asp" or _ Request.ServerVariables("URL") = "/forum/topic.asp" or _ Request.ServerVariables("URL") = "/forum/forum.asp" then GoogleAdOK=TRUE else GoogleAdOK=FALSE end if if GoogleAdOK=TRUE then %> <!--#INCLUDE VIRTUAL="include_adsense_code.asp" --> <% else %> <!--#INCLUDE VIRTUAL="include_other_code.asp" --> <% end if
I modified it to this:
quote: '## GOOGLE ADSENSE PAGE CHECKS AND JAVASCRIPT HERE if Request.ServerVariables("URL") = "default.asp" or _ Request.ServerVariables("URL") = "topic.asp" or _ Request.ServerVariables("URL") = "forum.asp" then GoogleAdOK=TRUE else GoogleAdOK=FALSE end if if GoogleAdOK=TRUE then %> <!--#INCLUDE VIRTUAL="inc_adsense.asp" --> <% end if
When I put that and my include file in my ftp and open my forum in the browser it displays nothing. What is wrong? A possibility I thought of was that since my forum is actually a subdomain (http://forum.mysite.com) then it might not work with above code. If so how could I change it? What am I doing wrong? |
The Poultry Link - "Serving the best of the fancy with the best of the web" Forum Setup Help |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
|
Ryan
Average Member
  
USA
858 Posts |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 14 November 2003 : 23:22:10
|
^^^ Have you applied through Google to use AdSense? |
|
 |
|
Ryan
Average Member
  
USA
858 Posts |
Posted - 14 November 2003 : 23:29:42
|
Yes I have.  I applied once got denied and a couple months later tried again and got accepted. |
The Poultry Link - "Serving the best of the fancy with the best of the web" Forum Setup Help |
 |
|
Ryan
Average Member
  
USA
858 Posts |
Posted - 17 November 2003 : 11:18:53
|
Does anyone have any solution to help me? |
The Poultry Link - "Serving the best of the fancy with the best of the web" Forum Setup Help |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 17 November 2003 : 11:40:47
|
does your google adsense work without using this mod? btw ryan, do you have a tax id? google is now requiring it before they will pay you. |
|
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 17 November 2003 : 11:42:02
|
wait, let me rephrase that because your SSN can be your tax id. I'm not sure you may be of legal age to collect $$ on this because it is taxable income. |
|
 |
|
Ryan
Average Member
  
USA
858 Posts |
Posted - 17 November 2003 : 13:36:05
|
Yes Google works on my other pages. I have already taken care of your other question.  |
The Poultry Link - "Serving the best of the fancy with the best of the web" Forum Setup Help |
 |
|
seahorse
Senior Member
   
USA
1075 Posts |
Posted - 18 November 2003 : 02:11:53
|
Now this is wierd. After getting rejected, I reapplied and got my application rejected a second time.
Now, I've suddenly been informed that Google is expanding their covered content and that my application has been re-reviewed and accepted. I don't know what to make of it.
|
Ken =============== Worldwide Partner Group Microsoft |
 |
|
Gremlin
General Help Moderator
    
New Zealand
7528 Posts |
Posted - 18 November 2003 : 04:04:42
|
Lol, don't try and understand it, just accept it and be happy :) |
Kiwihosting.Net - The Forum Hosting Specialists
|
 |
|
seahorse
Senior Member
   
USA
1075 Posts |
Posted - 18 November 2003 : 09:01:07
|
Well, whatever their doing, they at least seem to be fairly accurate on the ads. I've got ads promoting the RAF, jet fighter rides, and aviation flight sims. |
Ken =============== Worldwide Partner Group Microsoft |
 |
|
Topic  |
|