Jump to content

Why Are These Ads Appearing? ?


jackflash

Recommended Posts

Posted
1 hour ago, steve00 said:

looks like have a few references to google ads in your forum

Remove those and should be ok

I was thinking the same thing, however, I don't know where they are at.

They are in the default theme too, which I didn't edit......

Posted
56 minutes ago, jackflash said:

I was thinking the same thing, however, I don't know where they are at.

They are in the default theme too, which I didn't edit......

You have enabled GOOGLE AUTO ADS. 

I can see below code in your page source.

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

You can check where you have enabled this code.

My best guess is that you may have enabled it in IPB ADMIN > System > SITE PROMOTION > Advertisements

I think you created some Advertisement to put these GOOGLE AUTO ADS in SIDEBAR. Check for that Advertisement and disable it.

Also, please note that you need to put the GOOGLE AUTO ADS CODE between <header> & </header> HTML tags.

But you have put the code probably in wrong place. I can see the code outside  </header> tag. 

Hope this helps !

 

 

Posted
14 minutes ago, Surendra.S said:

You have enabled GOOGLE AUTO ADS. 

I can see below code in your page source.


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

You can check where you have enabled this code.

My best guess is that you may have enabled it in IPB ADMIN > System > SITE PROMOTION > Advertisements

I think you created some Advertisement to put these GOOGLE AUTO ADS in SIDEBAR. Check for that Advertisement and disable it.

Also, please note that you need to put the GOOGLE AUTO ADS CODE between <header> & </header> HTML tags.

But you have put the code probably in wrong place. I can see the code outside  </header> tag. 

Hope this helps !

 

 

THANKS for taking the time to help.  Someone did this before me, so now I have to figure out where they placed these ?

Posted
6 minutes ago, jackflash said:

THANKS for taking the time to help.  Someone did this before me, so now I have to figure out where they placed these ?

try IPB ADMIN > System > SITE PROMOTION > Advertisements

Open each Advertisement and see in which one the above Google code is mentioned.

Posted
2 minutes ago, Surendra.S said:

try IPB ADMIN > System > SITE PROMOTION > Advertisements

Open each Advertisement and see in which one the above Google code is mentioned.

I turned off the ads for mobile devices and that stopped them.  I really didn't think that this was the issue because I used this snipet, which I thought would only make it work on mobile devices?

<div class='ipsResponsive_showPhone ipsResponsive_block'>

<center>

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

 

Posted

try below if you want to show ADs only in Mobile.

 

<div class='ipsResponsive_showPhone ipsResponsive_hideTablet ipsResponsive_hideDesktop'>

<!-- Place your AD code here -->
  
</div>  

 

 

Posted
2 minutes ago, Surendra.S said:

try below if you want to show ADs only in Mobile.

 


<div class='ipsResponsive_showPhone ipsResponsive_hideTablet ipsResponsive_hideDesktop'>

<!-- Place your AD code here -->
  
</div>  

 

 

THANKS, again!  I checked a different site and it uses:

<div class="ipsResponsive_showPhone ipsResponsive_block">
    <!-- Mobile Advertisement -->
  <div>

The site that I had problems with was done incorrectly by my colleague. 

Posted

You're going to run into problems hiding ads with css as they'll still load without displaying and you'll be breaking Google's TOS.

Posted
5 minutes ago, Dll said:

You're going to run into problems hiding ads with css as they'll still load without displaying and you'll be breaking Google's TOS.

what's the best way to use their ads on mobile vs. computer?

Posted
30 minutes ago, Dll said:

You're going to run into problems hiding ads with css as they'll still load without displaying and you'll be breaking Google's TOS.

You mean using this kind of <div> for ADs in Desktop vs Mobile will be problem ?

<div class='ipsResponsive_showPhone ipsResponsive_hideTablet ipsResponsive_hideDesktop'>

If so, whats the best way to deal with displaying separate ADs for Desktop and Mobile ?

Can you please suggest.

 

Posted
59 minutes ago, Surendra.S said:

You mean using this kind of <div> for ADs in Desktop vs Mobile will be problem ?


<div class='ipsResponsive_showPhone ipsResponsive_hideTablet ipsResponsive_hideDesktop'>

If so, whats the best way to deal with displaying separate ADs for Desktop and Mobile ?

Can you please suggest.

 

Yes, that sort of div will hide the ads but not stop them from actually loading. You can see this happening, load the page on a desktop, then shrink the browser window to mobile size and you'll see the ads will be there without any need to reload the page. 

You'll need to use some width detection on the javascript as well, something like will only display on mobile (you can change the width to whatever the breakpoint is on your theme):

<script>
  var width = window.innerWidth || document.documentElement.clientWidth;
  if (width<768)
{ .. ad loading js in here ..
}
</script>

 

Posted

 

2 hours ago, Dll said:

Yes, that sort of div will hide the ads but not stop them from actually loading. You can see this happening, load the page on a desktop, then shrink the browser window to mobile size and you'll see the ads will be there without any need to reload the page. 

You'll need to use some width detection on the javascript as well, something like will only display on mobile (you can change the width to whatever the breakpoint is on your theme):


<script>
  var width = window.innerWidth || document.documentElement.clientWidth;
  if (width<768)
{ .. ad loading js in here ..
}
</script>

 

If what you are saying is correct, this is a very serious problem when using this software for ad revenue. It's potentially devastating if it violates Google / Bing TOS.

What's the clean solution here?  Isn't there a way to just past the ad code in the template somewhere?  That's what I did on 3.4.6 for the desktop version at least.

 @Lindy

Posted

There are lots of solutions, but it's not a problem with the software at all. It's a responsive design, like most of the web these days and this is how it works.

If you don't want to do as suggested above, how about using responsive ad units, or use an adserver like dfp which will do the heavy lifting for you.

Posted
On 7/24/2018 at 2:37 AM, Dll said:

There are lots of solutions, but it's not a problem with the software at all. It's a responsive design, like most of the web these days and this is how it works.

If you don't want to do as suggested above, how about using responsive ad units, or use an adserver like dfp which will do the heavy lifting for you.

I will look into this further.  Let me rephrase, I wish IPS offered a way to use the ad manager in two different formats: one for desktop ONLY and one for mobile.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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