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-12-2018 01:52 PM

Quote:

Originally Posted by Dave (Post 2595517)
Ah good catch, yes in that case no checkboxes need to be set.

Thanks for confirming Dave. I'm fairly new at this...so good to have someone confirm things.

Dave 07-12-2018 01:53 PM

You are not using an ad blocker that could cause it not to display?
Feel free to private message me your website URL so I can take a look to see if it's working or not.

alfuzzy 07-12-2018 02:01 PM

1 Attachment(s)
Quote:

Originally Posted by iA1 (Post 2595515)
Are you using a custom style? Maybe ad templates are disabled in that. Check the default template. Also, do you have ad block installed?

Great questions!

Yes...I normally do have an ad blocker installed...but I have it uninstalled at the moment. And I'm also using a 2nd computer (with no ad blocker)...and I'm getting the same results.

Also awesome question regarding a custom style. I do believe I'm using a custom style (not vBulletin 4 default). I went to "Styles & Templates"...then "Style Manager"...then scrolled to the settings for "Ads". Hopefully I'm in the correct area.

Attached is a screenshot of the settings. Anything look unusual?

Thanks

Dave 07-12-2018 02:31 PM

From what I can see, you have Google Analytics properly inserted and 2 Google ad locations: below navbar and above footer.

However, the Google Ads script code is missing, which causes the ads not to display. The Google Ads actual script that loads Google Ads must be inserted in the headinclude template. (where you inserted the Google Analytics script)

alfuzzy 07-12-2018 03:42 PM

1 Attachment(s)
Quote:

Originally Posted by Dave (Post 2595522)
From what I can see, you have Google Analytics properly inserted and 2 Google ad locations: below navbar and above footer.

However, the Google Ads script code is missing, which causes the ads not to display. The Google Ads actual script that loads Google Ads must be inserted in the headinclude template. (where you inserted the Google Analytics script)

When you say the Google Ads Script is missing. Are you referring to the area in the screenshot (the "Ad Manager" area)...or somewhere else totally different?

As you can see...I do have the Google Ad script code entered in the Ad Manager area.

Thanks

alfuzzy 07-12-2018 04:13 PM

Ok...I did a search in the "Search in Templates" area...and found the "headinclude" template.

Are you saying that the same Google AdSense code that was inserted in the "Ad Manager" area...also needs to be inserted in the "headinclude" template as well?

If so...where do I insert it...without messing things up.;)

Thanks

Dave 07-12-2018 05:08 PM

Yes, that script is not showing up on your forum. Insert it into the headinclude template and see if it then works.

alfuzzy 07-12-2018 05:31 PM

<u>Just to be 100% sure:
</u>
- Does it matter where the code is inserted in the headinclude template? I don't want to mess things up.

- Can this html code be inserted directly into the headinclude template...without any additional PHP code?

- Is the Google AdSense code that I inserted into the Ad Manager needed in both places to work properly (Ad Manager and headinclude template areas)?

Thanks

Dave 07-12-2018 05:34 PM

No need to worry, even if things break you can easily restore it back to how it used to work.
Just insert the Google Ads script at the bottom of the headinclude template and don't do anything else.

alfuzzy 07-12-2018 05:43 PM

Ok...gonna give it a shot.:)

--------------- Added [DATE]1531424927[/DATE] at [TIME]1531424927[/TIME] ---------------

Hey hey hey...it worked!!! Yeyyy!

Thanks Super-Dave!:)

--------------- Added [DATE]1531425015[/DATE] at [TIME]1531425015[/TIME] ---------------

If I wanted to get more ads working on my site...what files do I need to insert the Google Adsense code into?

For example:

- footer
- header
- sub-forums
- within threads
- etc.


Thanks

--------------- Added [DATE]1531426204[/DATE] at [TIME]1531426204[/TIME] ---------------

As an example of where else to place ads. If I click on "Add New Ad"...I get the "Ad Selector" window. There's a drop down menu at the center top...with selection choices of (Global, Thread, Forum, Board).

If I wanted to get ads operating in these area's...do I need to add the Google AdSense code to different templates to get the ads working in these areas?

Thanks

--------------- Added [DATE]1531488833[/DATE] at [TIME]1531488833[/TIME] ---------------

Hey all. Dave helped me with getting my AdSense ads working in the header area of my website (mostly the home page)...still no luck getting ads working in other positions and other areas.

Would like to get adds working in the:

- Footer
- Right margin
- Other positions too.

Also would like to get adds working on other pages/areas of website subpages such as :

- sub-forum groups
- indivdual sub-forums
- individual threads

Also in the header, footer, and right margin areas.

Thanks:)


All times are GMT. The time now is 03:28 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.01142 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)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