Forum Moderators: open

Message Too Old, No Replies

Adsense ads ON Dynamic Page

How to put ads.

         

a1domain

7:14 am on Jun 5, 2006 (gmt 0)

10+ Year Member



Hello
I am new in AdSense so plz guide me that how to put ads on dynamic genarated pages.
for Ex. i am generating page with ASP from my database so how can i put that google code in my script

Really Need Your help - Thanks

smoger

12:49 pm on Jun 5, 2006 (gmt 0)

10+ Year Member



just paste the adsense code in where you'd like the ads to display.. no different than on a static page

a1domain

12:59 pm on Jun 5, 2006 (gmt 0)

10+ Year Member



Thanks dear but my whole page is generating with ASP mean from start to end so is it same for this also?
can you plz give me syntex of that?

Thanks again for your help

FlipFlops

1:08 pm on Jun 5, 2006 (gmt 0)



Somewhere in the ASP code I believe that you'll have to use the following...

<%
Response.Write("**ADSENSE CODE HERE**")
%>

I haven't used ASP in a solid three years, so I'm assuming it's like PHP where you can simply echo the code. When I say code, I'm mean the code that is provided by Google when logged into their AdSense system.

Best of luck!

smoger

1:17 pm on Jun 5, 2006 (gmt 0)

10+ Year Member



as stated above, response.write will work.. or simply end your asp code block with %>

in other words...

<% ..ASP CODE... %>

normal html/javascript

<% .. more ASP CODE... %>

oxbaker

8:26 pm on Jun 5, 2006 (gmt 0)

10+ Year Member



i wouldn't recommend using response.write as it writes to the top of the page (breaking head tags if they're in the way) you should either have a code block <% %> with something in it to accept the rendered html that way it will be rendered properly in the DOM.

mcm