Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-21-2014, 01:23 PM
lapiervb lapiervb is offline
 
Join Date: Mar 2010
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 03-21-2014, 01:26 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like Googletags code?

Try wrapping it w/ vb literal example:
Code:
<vb:literal> script code here </vb:literal>
Reply With Quote
  #3  
Old 03-21-2014, 01:33 PM
lapiervb lapiervb is offline
 
Join Date: Mar 2010
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheLastSuperman View Post
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?
Reply With Quote
  #4  
Old 03-21-2014, 02:16 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 03-21-2014, 02:55 PM
Jain Farstrider's Avatar
Jain Farstrider Jain Farstrider is offline
 
Join Date: Mar 2010
Location: Perth, Western Australia
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 03-21-2014, 03:32 PM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 03-21-2014, 03:43 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jain Farstrider View Post
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.
Reply With Quote
  #8  
Old 05-17-2015, 02:21 AM
mykkal's Avatar
mykkal mykkal is offline
 
Join Date: May 2007
Location: Atlanta, GA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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%; 
}
Reply With Quote
  #9  
Old 10-15-2015, 08:47 AM
Pardeep Bagga Pardeep Bagga is offline
 
Join Date: Dec 2011
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i also have the problem............. any solution ?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:12 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06170 seconds
  • Memory Usage 2,243KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete