Jump to content

Recommended Posts

Posted
10 minutes ago, CheersnGears said:

How is it broken? It is exactly where you put it.  If you want it centered, you need a Div align center.

<div align="center">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({
          google_ad_client: "your pub ID",
          enable_page_level_ads: true
     });
</script>
</div>

 

Could contain: Clothing, Apparel, Text, File

put after tag </footer>

Template broken

Could contain: File, Poster, Advertisement, Clothing, Apparel, Page, Text, Webpage, Bird, Animal 

 

Posted
8 minutes ago, CheersnGears said:

Do you not know how to use Div?

Don't put this in your templates manually.  Put it in the Advertising section in the Admin panel System-> Site Promotion -> Advertisements.

this is correct?

Could contain: File, Text, Word, Page, Document, Webpage

Posted
9 minutes ago, Jim M said:

You have automatic ads still enabled on Google AdSense, this is what is breaking your community:

Could contain: Person, Human, Text, Flyer, Paper, Brochure, Poster, Advertisement

Ok. How fix it?

2 minutes ago, CheersnGears said:

it looks correct, but put the final </div> on its own line for clarity.

ok. Same result.

Posted
6 minutes ago, Igor Denisov said:

Ok. How fix it?

You would need to disable Automatic Advertisements in Google AdSense's dashboard. You would need to contact AdSense for assistance in doing so as this would be outside our scope of support. 

Posted
55 minutes ago, Jim M said:

You would need to disable Automatic Advertisements in Google AdSense's dashboard. You would need to contact AdSense for assistance in doing so as this would be outside our scope of support. 

Yes, you need add thi point to you instruction.. This is help me,

Posted
2 minutes ago, Igor Denisov said:

Yes, you need add thi point to you instruction.. This is help me,

Please keep in mind, we cannot advise you on how to do things in another platform, in this case Google Adsenses. It would be up to yourself to understand the platform you choose or reach out to them for assistance if you do not understand it.

Posted
On 6/29/2022 at 10:57 AM, Igor Denisov said:

Yes, you need add thi point to you instruction.. This is help me,

Glad to hear that advice worked! I actually ran into something similar a few years back and recall now that disabling automatic ads in Google did the trick. 

It's been a few days since you last left a comment. Have you sorted everything out? 😊 

Posted

I initially created 3 different kinds going to Google AdSense > Ads > Overview > By Ad Unit > Display Ads

1. Height 75px horizontal below the page header using AdminCP > Advertisements

Could contain: Text

2. Big horizontal above the page footer using AdminCP > Advertisements

Could contain: Text

3. Big vertical block using AdminCP > Blocks

Could contain: Text, Menu

4. Auto-ads Experiments

Note: Auto-ads typically break the site. But if you wanted to run them to try to increase your revenue, I'd try Optimization > Experiments which would show Auto-ads to 1% to 50% of visitors (25% might be a good number) depending on how you configure Experiments > Auto optimize settings. When running an experiment the worst case scenario is that if pages aren't loading correctly refreshing would probably "fix" the problem.

Posted
On 6/29/2022 at 9:38 AM, CheersnGears said:

Surround it with

<div align="center">

 YOUR AD CODE HERE
  
</div>

For some reason, when I configured my ads two years ago, I had problems with the <div> tags; so I used <p> tags instead which worked for me.

  • 4 months later...
Posted

I read the tips and tricks in this topic with interest. I see that automatic ads is giving much more revenue than ads placed between posts, but they are very invasive.

Is it possible to have automatic ads only for a certain membergroup? I need to have autoads from google for guests browsing my sites... not my members..

Posted
3 minutes ago, Kjell Iver Johansen said:

Is it possible to have automatic ads only for a certain membergroup? I need to have autoads from google for guests browsing my sites... not my members..

I am not a Google Adsense expert so, it may be worth contacting them if you have any direct questions.

If you are wanting to show Google Adsense to both guests and members, you would not be able to show them automatic and in place ads. From my knowledge, you would need 2 different websites as the automatic ads setting is on the site, not a particular ad unit.

If you are wanting to only show guests ads entirely, then you might be able to utilize the advertisement module to have these display as this has a member group restriction built in.

Posted

Yes. You can!

In your theme global template use something like:

{{if \IPS\Member::loggedIn()->member_group_id === 4}}
	This content only shows to members in the "Administrators" group (ID 4 in our example)
{{endif}}

 

The link above will also give you logic if you want to simply check guest vs logged in. 

Posted
34 minutes ago, Jim M said:

If you are wanting to show Google Adsense to both guests and members, you would not be able to show them automatic and in place ads. From my knowledge, you would need 2 different websites as the automatic ads setting is on the site, not a particular ad unit.

Yes this is my experience also. If I try to have just a single google ad in the sidebar for members and have automatic ads for guests they all get automatic ads.

Is there anything that could be altered in the scripts suplied by google? I know this is not a google supportforum, but google ads is an important revenue for some and this is very forumspecific question.

@Randy Calvert Thanks - I was not precise in my question.

Posted
5 minutes ago, Kjell Iver Johansen said:

Is there anything that could be altered in the scripts suplied by google? I know this is not a google supportforum, but google ads is an important revenue for some and this is very forumspecific question.

You would need to ask Google. As far as I know, you would need 2 different websites as it is a website setting.

Posted (edited)
1 hour ago, Jim M said:

I am not a Google Adsense expert so, it may be worth contacting them if you have any direct questions.

If you are wanting to show Google Adsense to both guests and members, you would not be able to show them automatic and in place ads. From my knowledge, you would need 2 different websites as the automatic ads setting is on the site, not a particular ad unit.

If you are wanting to only show guests ads entirely, then you might be able to utilize the advertisement module to have these display as this has a member group restriction built in.

I'd think you could use some javascript to look at the ips4_member_id cookie and place the relevant script depending on what's there?

if (document.cookie.split(';').some((item) => item.includes('ips4_member_id'))) {
          MEMBER ADSENSE HERE}
else{GUEST ADSENSE HERE}

Or something along those lines.

Quoted the wrong person - was meant for @Kjell Iver Johansen

 

Edited by Dll
Posted

If you choose to have it displayed to members, you can’t have forums available ONLY while logged in. You would have to exclude those pages in your Adsense settings. 

So you could serve Adsense ads to members but for example you could not display the code within private member only areas or moderator forums. (Google adbot needs to be able to crawl it)  

I think I saw a plugin which will let you treat bots as a specific member group… this could work also as it could be set to allow Google adbot access to those private forums without registering. (Be careful with this as it could also mean content shows up in search results as well if you don’t fix robots.txt.)

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...