-
Posts
82 -
Joined
-
Last visited
Content Type
Downloads
Release Notes
IPS4 Guides
IPS4 Developer Documentation
Invision Community Blog
Development Blog
Deprecation Tracker
Providers Directory
Forums
Events
Store
Gallery
Posts posted by Cemmos
-
-
11 hours ago, Saurabh Jain said:
They have a small code to be added on between head
Yes this can be done with global template
However this also shows ads on login / register pages which are not allowed
so how can we place a code between heads and disable ads on non content pages
Adsense is pretty good at detecting where not to place ads, but there's a specific option where you can create groups of URLs to not display ads. Simply add your login and registration links, privacy policy, etc. I did that on one of my sites along with the entire /forum section and ads are not displayed.
I don't know the specific terms, but I'm sure this is something Google is aware of since they specifically tell you to load the code in those global places, whereas with regular Adsense, you need to place them specifically where you want them (and follow their TOS).
-
6 hours ago, Sheffielder said:
I've not implemented yet as waiting to see how everyone else get on with it
Sounds interesting but don't want Google splattering ads everywhere and angering my membersYeah, that's definitely something to think about. But one thing that I like about Google is that they're very much against ad-spam themselves. I noticed that there won't even be ads on pages where there's very little content (like text). It also seems to insert ads decently in article body text, but I've noticed that sometimes they leave big white gaps where an ad should be. For someone that really likes to make sure a site looks nice, that bit is a little jarring.
On an old forum of mine, it inserts an ad something like every 2-3 posts down and actually looks fairly tasteful.
Overall, I think it's a nice way to get ad placements on a site, but it does need some tinkering on Google's end. I can't speak for earnings yet since it hasn't even been a full day since I put them on a few sites I run. Haven't yet put it on my Invision Community though, except when I was testing some things.
- Markus Jung and Sheffielder
- 2
-
5 minutes ago, ABGenc said:
The script is supposed to be put between <head> tags. Will this work there too?
Yup. If you're adding it directly to your theme's globalTemplate, template syntax will work there.
-
24 minutes ago, ABGenc said:
When you select all options, it puts ads between messages, within post/message feeds and even paragraphs. That may be annoying for users and visitors.
Is it possible to limit the ads to guests only @AlexWebsites ?
{{if \IPS\Member::loggedIn()->member_id === NULL}} Adsense Auto Ad code goes here {{endif}}
Just paste your ad code in the IF statement. This way the script won't load for users that are logged in.
- sobrenome, Markus Jung and ABGenc
- 3
-
Haven't tried it myself, but I'll give it a shot on one of my sites using Google Tag Manager. Seems like it could be a really good asset.
-
Google AdSense Auto Ads
in Technical Problems
Posted · Edited by Cemmos
Click the Add URL button and a popup will come up.
Type in the URL that you want to hide all ads on (such as www.YOURSITE.com/register)
Trailing slash and http/https don't matter — they'll be stripped anyway.
Repeat adding your URLs for every page you want to disable ads from, then go to your site in the list below and click on the arrow dropdown (to reveal the URLs you just added). Select each one of them and continue to the next page. On the next page I believe you'll select each ad type that should be shown. Uncheck all of them, including the small button at the button about future ad type, then proceed. You can name it.
For example, I have multiple sites that use the same auto ad code. I name mine as such:
Site1.com - no ads
Site2.com - no ads
I don't actually use it on my IPS site, but I set it up for when I want to use it:
But my URLs are customized, except login, lostpassword, and contact. So your mileage will vary. For instance, all of my documents such as terms of service, ad disclosure, and privacy policy are under the /policy page, so including only that one will also remove the ads from /policy/privacy, /policy/terms, etc.
Keep in mind that Google themselves are also very good at not displaying ads on pages they think shouldn't have ads, such as those ones with very little text on them that don't seem like an article.