Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 03 Oct 2018, 13:25
alfuzzy alfuzzy is offline
 
Join Date: Jul 2018
Help with AdSense Advertising Code

Hello folks. My website is currently using AdSense Ad Units. Previously I was using AdSense Auto Ads...and thought I would give Ad Units a try. I'm finding that fill rate & revenue are not as good with Ad Units as with Auto Ads...so I'd like to return to using Auto-Ads.

Currently I have banner ads & sidebar ads.

What I could use some help with is...could some kind person or persons help me with modifying the AdSense code so I can copy and paste it into each of the banner ad & sidebar ad slots?

I should also mention that I'm entering the code directly into the vBulletin ad templates...and not using the vBulletin Ad Manager. I've found the vBulletin Ad Manager (vBulletin 4.2.5) to be a bit flaky & inconsistent...and find entering the ad code directly the the ad templates more reliable.

Here's an example of my AdSense auto ad code for banner ads:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-xxxxxxxxxxxxxxxx",
enable_page_level_ads: true
});
</script>

What code needs to be added to this so that I can copy & paste it directly into the vBulletin ad templates?


Here's an example of my sidebar ad code:

<div class="sponsor">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Sidebar 1 -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-xxxxxxxxxxxxxxxx"
data-ad-slot="xxxxxxxxxx"
data-ad-format="rectangle"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>

How does this sidebar ad code need to be modified so that AdSense Auto Ads will run instead of Ad Units?

Thanks very much.

p.s. FYI. Website running vBulletin 4.2.5.
Reply With Quote
  #2  
Old 03 Oct 2018, 14:31
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
I have never used auto ads in Vbulletin but I do not think you should need to modify that code at all. Why? It is not working?
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need. Need local seo? What about Dumpster Rental SEO?
Reply With Quote
  #3  
Old 03 Oct 2018, 16:10
alfuzzy alfuzzy is offline
 
Join Date: Jul 2018
When copy & pasting the auto ad code (example 1) directly into the vBulletin ad templates...some code needs to be added to get it to work.

If the vBulletin Ad Manager worked properly (which it doesn't)...then yes...the code from example 1 is all that's needed (vBulletin ad manager does the rest). But since I'm not using the Ad Manager (inserting code directly into the ad templates)...it the "does the rest" part is what I need.

In example 2 (sidebar ad code). Some of the Ad Unit code needs to be removed...and the code from example 1 inserted.

I've tried some trial & error with both examples...but I'm not quite getting it right. That's why I posted for some help.

Thanks
Reply With Quote
  #4  
Old 05 Oct 2018, 01:58
CharlieDelta CharlieDelta is offline
 
Join Date: Apr 2010
I am not using Auto Ads but from what I understand you can use auto ads with ad units. You just place the auto ad code and Google looks after placing auto ads. So shouldn't you be able to just ad the auto code to the header or headinclude template?
Reply With Quote
  #5  
Old 05 Oct 2018, 13:47
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
Originally Posted by CharlieDelta View Post
I am not using Auto Ads but from what I understand you can use auto ads with ad units. You just place the auto ad code and Google looks after placing auto ads. So shouldn't you be able to just ad the auto code to the header or headinclude template?
Exactly.
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need. Need local seo? What about Dumpster Rental SEO?
Reply With Quote
  #6  
Old 05 Oct 2018, 20:59
alfuzzy alfuzzy is offline
 
Join Date: Jul 2018
I've worked with a developer in the past...and while adding the AdSense Auto-Ads code into the headinclude template can get some ads to fill with Auto Ads...when you have ads located in all sorts of locations on the site...better to work with each individual vBulletin ad template...and add the ad code to each template...not just the headinclude template.
Reply With Quote
  #7  
Old 10 Oct 2018, 23:00
scottkoz20 scottkoz20 is offline
 
Join Date: Jan 2016
Real name: Scott
Originally Posted by CharlieDelta View Post
I am not using Auto Ads but from what I understand you can use auto ads with ad units. You just place the auto ad code and Google looks after placing auto ads. So shouldn't you be able to just ad the auto code to the header or headinclude template?
this is how it worked on my site, found that it was good at some levels, but miserable in other levels... I pulled it out. I like to know where the ads are going to be on the site.
Reply With Quote
  #8  
Old 08 Feb 2022, 00:35
DNN DNN is offline
 
Join Date: Mar 2011
Originally Posted by RichieBoy67 View Post
I have never used auto ads in Vbulletin but I do not think you should need to modify that code at all. Why? It is not working?
I'm looking for an add on that'll let adsense show in every forun post in the center of the forum posts
__________________
DNN
Reply With Quote
  #9  
Old 12 Feb 2022, 15:05
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Real name: Anthony
Originally Posted by DNN View Post
I'm looking for an add on that'll let adsense show in every forun post in the center of the forum posts
You do NOT want that many ads on 1 single page, google will ding you for it.

Just use the standard ad placements in a post to avoid google dinging you for to many ads on a page.

Besides, that would make me not visit a forum if an ad was in every post.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add-On Releases Danny Google AdSense Advertising dannyheath Modification Graveyard 39 26 Jan 2012 08:49



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 10:41.

Layout Options | Width: Wide Color: