vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Google adsense Responsive ad unit with Vbulletin (https://vborg.vbsupport.ru/showthread.php?t=309759)

lapiervb 03-21-2014 01:23 PM

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.

TheLastSuperman 03-21-2014 01:26 PM

Like Googletags code?

Try wrapping it w/ vb literal example:
Code:

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

lapiervb 03-21-2014 01:33 PM

Quote:

Originally Posted by TheLastSuperman (Post 2488738)
Like Googletags code?

Try wrapping it w/ vb literal example:
Code:

<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

Quote:

Originally Posted by Jain Farstrider (Post 2488745)
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:

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>

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

Code:

.adsense-header{
    width: 100%;
}


Pardeep Bagga 10-15-2015 08:47 AM

i also have the problem............. any solution ?


All times are GMT. The time now is 10:32 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01038 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete