PDA

View Full Version : Google adsense Responsive ad unit with Vbulletin


lapiervb
03-21-2014, 01:23 PM
Is anybody using google adsense Responsive ad units with vbulletin 4?

I'm using vbulletin 4.2.2 and have added one google responsive ad unit however for some reason it is not showing on the page.

TheLastSuperman
03-21-2014, 01:26 PM
Like Googletags code?

Try wrapping it w/ vb literal example:

<vb:literal> script code here </vb:literal>

lapiervb
03-21-2014, 01:33 PM
Like Googletags code?

Try wrapping it w/ vb literal example:

<vb:literal> script code here </vb:literal>

Thanks for the response, do you mean try wrapping the google adsense code with this?

EDIT: I tried your suggestion however the ads are still not showing, do you have another suggestion?

RichieBoy67
03-21-2014, 02:16 PM
Yes, the literal tags are correct.

Do the ads show as active in your adsense account? Has your site been approved by Google for adsense?

Jain Farstrider
03-21-2014, 02:55 PM
I had the same problem myself. Even with google adsense active, it took me about an hour before the ad showed up for the first time, So might have to wait a bit.

I used admin > advertising to set it up.
Just got adsense to give me the code according to ad type, width and height etc and just pasted it in.

If I remember correctly, it also worked with static html widgets. Same delay as well.

bzcomputers
03-21-2014, 03:32 PM
The issues you're probably running across with the new (beta) "Responsive Ad Units" is that the parent container must have a width set, otherwise the ad will not display.

RichieBoy67
03-21-2014, 03:43 PM
I had the same problem myself. Even with google adsense active, it took me about an hour before the ad showed up for the first time, So might have to wait a bit.

I used admin > advertising to set it up.
Just got adsense to give me the code according to ad type, width and height etc and just pasted it in.

If I remember correctly, it also worked with static html widgets. Same delay as well.

It always takes time the first timer while adsense crawls your site for content so it can display relevant ads.

mykkal
05-17-2015, 02:21 AM
Hello, i'm trying to get responsive units to display in the vbulletin mobile style IN VB 4.2.3. Any ideas on how to make this work properly? The ad is active and sometimes it displays but most of the time it doesn't. Google adsense folks tell me that this is because the width isn't defined correctly. I tried to tell it to define to 100% because the mobile style supports tablets, smartphones, and featured phones. As you can guess the widths on each interface vary greatly.

This is the code I'm using in the header template:

<div class="adsense-header">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Mobile Forum Header (Responsive) -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="MY_ADSENSEPUB_CODE"
data-ad-slot="5779071897"
data-ad-format="rectangle, horizontal"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>

And here is the CSS I defined in vbulletin.css.

.adsense-header{
width: 100%;
}

Pardeep Bagga
10-15-2015, 08:47 AM
i also have the problem............. any solution ?