PDA

View Full Version : How to display AdSense ads inside threads


Penicillin
05-09-2009, 08:43 PM
Hello
How can I display AdSense ads inside the first post in each thread?

Thanks

Michael.A
05-09-2009, 10:19 PM
use this code

<!-- Start Sponsors -->
<if condition="(THIS_SCRIPT!='private') && (((($post[postcount]-1)%10 == 0)|(($post[postcount]-5)%10 == 0)))">


<div style="padding:6px 0px 0px 0px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0px" $post[scrolltothis] width="100%">
Sponsored Ads</td></tr>
<tr>
<td class="alt1" align="center">

<script type="text/javascript"><!--
google_ad_client = "pub-8667005809445729";
/* 468x60, created 5/9/09 */
google_ad_slot = "4905868335";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</td>
</tr>
</table>
</div>
</if>
<!-- End Sponsers -->

Penicillin
05-10-2009, 12:05 AM
Thanks for your reply.
Where should I place that code?
P.S I'm using vB 3.8.

abbasbsp
05-10-2009, 12:16 AM
if you want script from google like under this :

<script type="text/javascript"><!--
google_ad_client = "pub-8667005809445729";
/* 468x60, created 5/9/09 */
google_ad_slot = "4905868335";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

you much register this link https://www.google.com/adsense

Penicillin
05-10-2009, 03:49 PM
if you want script from google like under this :

<script type="text/javascript"><!--
google_ad_client = "pub-8667005809445729";
/* 468x60, created 5/9/09 */
google_ad_slot = "4905868335";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

you much register this link https://www.google.com/adsense
I know AdSense code and I have it.
But I don't know where to place it to be displayed within posts.

Penicillin
05-17-2009, 05:34 PM
Please help.
Where should I place that code above?

dxflw
05-17-2009, 05:40 PM
This is product: (Use this is better..)
https://vborg.vbsupport.ru/showthread.php?t=194817&highlight=Google+Adsense+Postbit

And this is template modification:
https://vborg.vbsupport.ru/showthread.php?t=172170