The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Google adsense Responsive ad unit with Vbulletin
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. |
#2
|
||||
|
||||
Like Googletags code?
Try wrapping it w/ vb literal example: Code:
<vb:literal> script code here </vb:literal> |
#3
|
|||
|
|||
Quote:
EDIT: I tried your suggestion however the ads are still not showing, do you have another suggestion? |
#4
|
||||
|
||||
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? |
#5
|
||||
|
||||
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. |
#6
|
||||
|
||||
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.
|
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
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: Code:
<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> Code:
.adsense-header{ width: 100%; } |
#9
|
|||
|
|||
i also have the problem............. any solution ?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|