vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Where & how to insert Google AdSense Code (https://vborg.vbsupport.ru/showthread.php?t=326559)

alfuzzy 07-11-2018 05:46 PM

Where & how to insert Google AdSense Code
 
Can some kind person please explain how & where to insert the Google AdSense code for my website running vBulletin 4.2.3 please.

I've been racking my brain trying to figure this out for days & days...but I'm not really getting anywhere.

- Google seems to say add the AdSense code to the header and/or footer files. But this seems to apply to html based websites.
- I also seem to keep seeing that I need to edit the vBulletin "postbit_legacy" template. But not really 100% sure where to add the AdSense code without messing things up.

Could really use some help,

Thanks

iA1 07-11-2018 08:21 PM

In admincp, there is an option for advertisements. Simply select where you want to display the ads and paste the code.


See https://www.vbulletin.com/docs/html/...rtising_ad_new for details

alfuzzy 07-11-2018 10:05 PM

Quote:

Originally Posted by iA1 (Post 2595502)
In admincp, there is an option for advertisements. Simply select where you want to display the ads and paste the code.

Thank you iA1. That seems easy enough. Just did it (followed the vBulletin manual instructions)...but no ads are appearing on my site. I only did a new add for below the NavBar at the moment.

Thanks

iA1 07-12-2018 02:27 AM

Clear cache under Maintenance and check again. Usually it appears after some time.

alfuzzy 07-12-2018 10:34 AM

Ok...cleared cache. Will wait a bit and see if successful:)

Thanks

alfuzzy 07-12-2018 11:05 AM

1 Attachment(s)
Been about 30 minutes...unfortunately nothing has shown up yet (hopefully that's long enough).

Any other ideas/suggestions?

Here's a screenshot of my ad settings...maybe something is setup incorrectly?

- I blocked out some of the ad code...but you can see there's html ad code there (copied & pasted from advertiser).
- I believe I have it setup so that everyone see's the ad's (all usergroups).

Thanks

Dave 07-12-2018 11:26 AM

None of the checkboxes are checked in the section at the bottom. Review those settings and check at least one, for example the user (does not) belong to usergroup setting.

alfuzzy 07-12-2018 01:30 PM

Hey Dave...thanks for posting.

Do I really need to check at least one of the boxes in the lower half of the screen shot?

In the upper area there's the "Active" setting...with choices of "Yes" or "No". I currently have "Yes" selected. Right below that it says "If active and no criteria are set, ad will display to all."

I'm understanding this to mean that if nothing is selected in the lower half...that the ads will display to all. So I was thinking I didn't need to check any of the boxes in the lower half of the screenshot.

Thanks

iA1 07-12-2018 01:33 PM

Are you using a custom style? Maybe ad templates are disabled in that. Check the default template. Also, do you have ad block installed?

Dave 07-12-2018 01:35 PM

Ah good catch, yes in that case no checkboxes need to be set.


All times are GMT. The time now is 03:53 AM.

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.01037 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete