This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Smithtech

  • ****
  • 219 posts
GOOGLE ADS NOT SHOWING ON DELTA THEME
« on: June 26, 2021, 08:43:14 PM »
Installed Delta theme today but GOOGLE ADS NOT SHOWING.

*

MB Themes

Re: GOOGLE ADS NOT SHOWING ON DELTA THEME
« Reply #1 on: June 26, 2021, 09:07:35 PM »
@support
- make sure no javascript errors are generated by adsense in console
- put adsense into div with expected width and height, example:
Code: [Select]
<div style="width:120px;height:500px;">ad-sense-code-here</div>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Smithtech

  • ****
  • 219 posts
Re: GOOGLE ADS NOT SHOWING ON DELTA THEME
« Reply #2 on: June 26, 2021, 09:27:16 PM »
The ads are working well in Gamma theme.

I saw this error by adsense in console
js?id=AW-442318217:48 GET https://www.googleadservices.com/pagead/conversion_async.js net::ERR_BLOCKED_BY_CLIENT

*

MB Themes

Re: GOOGLE ADS NOT SHOWING ON DELTA THEME
« Reply #3 on: June 26, 2021, 10:36:27 PM »
Question is answered here.
@support
- make sure no javascript errors are generated by adsense in console
- put adsense into div with expected width and height, example:
Code: [Select]
<div style="width:120px;height:500px;">ad-sense-code-here</div>

Your additional question is on google support.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Smithtech

  • ****
  • 219 posts
Re: GOOGLE ADS NOT SHOWING ON DELTA THEME
« Reply #4 on: June 26, 2021, 10:58:03 PM »
@support
- make sure no javascript errors are generated by adsense in console
- put adsense into div with expected width and height, example:
Code: [Select]
<div style="width:120px;height:500px;">ad-sense-code-here</div>


I added the code in a <div> but no ad showed.

What do I do?
« Last Edit: June 26, 2021, 11:14:07 PM by support »

*

MB Themes

Re: GOOGLE ADS NOT SHOWING ON DELTA THEME
« Reply #5 on: June 27, 2021, 01:23:07 PM »
@support
I reviewed these issues and problem is ON YOUR SIDE.

1) fluid banners has requirements on minimum width/height of box, you MUST update that in theme if you want to use such kind of banner. You have to manually define width and height of box to be LARGER, this message is also shown in console.
As example: TagError: adsbygoogle.push() error: Fluid responsive ads must be at least 250px wide: availableWidth=120

2) you have added google tags several times into header, this message is visible in console as well

3) last, those are external services, not related to theme at all. No matter how it works on gamma theme, alpha, beta or any other. It is your code, it is you putting it into theme and it is you responsible for making this code functional and properly placed.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Smithtech

  • ****
  • 219 posts
Re: GOOGLE ADS NOT SHOWING ON DELTA THEME
« Reply #6 on: June 27, 2021, 08:48:01 PM »
Thank you very much for checking.

1. Some of the ads are showing on now. Just that desktop is not showing well for the horizontal ads.
Banner Body Left and Right are still showing.
How did you do it for some of the ads to show?

How do I do I manually define the width? Because what I see now in my browser is: Fluid responsive ads must be at least 250px wide: availableWidth=160
Is this not very dynamic? I'm I the only person facing this issue?

2. I was troubleshooting so, I added the google tag to the theme head itself again to see if it because of the tag the ads aren't showing.



« Last Edit: June 27, 2021, 08:56:49 PM by support »

*

Smithtech

  • ****
  • 219 posts
Re: GOOGLE ADS NOT SHOWING ON DELTA THEME
« Reply #7 on: June 27, 2021, 08:59:11 PM »
2. Looking the issue number 2. I think the horizontal banner spaces are using the same width as the sidebar Banners spaces which is causing the problem. Something needs to be done about that.

4. Body left & Body Right aren't showing ads

*

Smithtech

  • ****
  • 219 posts
Re: GOOGLE ADS NOT SHOWING ON DELTA THEME
« Reply #8 on: June 27, 2021, 10:45:03 PM »
@support
I reviewed these issues and problem is ON YOUR SIDE.

1) fluid banners has requirements on minimum width/height of box, you MUST update that in theme if you want to use such kind of banner. You have to manually define width and height of box to be LARGER, this message is also shown in console.
As example: TagError: adsbygoogle.push() error: Fluid responsive ads must be at least 250px wide: availableWidth=120

2) you have added google tags several times into header, this message is visible in console as well

3) last, those are external services, not related to theme at all. No matter how it works on gamma theme, alpha, beta or any other. It is your code, it is you putting it into theme and it is you responsible for making this code functional and properly placed.


This is what I have found in theme CSS. What changes should I make?

Code: [Select]
.banner-search_top .myad, .banner-search_middle .myad, .banner-search_bottom .myad, .banner-item_description .myad {width:728px;height:90px;}
.banner-home_top .myad, .banner-home_bottom .myad, .banner-item_top .myad, .banner-item_bottom .myad, .banner-home_middle .myad {width:970px;height:90px;}
.banner-item_sidebar .myad {width:300px;height:250px;}
.banner-item_sidebar_bottom .myad {width:300px;height:600px;}

*

Smithtech

  • ****
  • 219 posts
Re: GOOGLE ADS NOT SHOWING ON DELTA THEME
« Reply #9 on: June 28, 2021, 12:46:08 AM »
I use this ad code for Banner Home Top from the demo site. It still showed small.

<a href="https://www.a2hosting.com?aid=5ff74858d3bac&bid=a3194333" target="_top"><img src="//affiliates.a2hosting.com/accounts/default1/banners/a3194333.jpg" alt="" title="" width="728" height="90" /></a><img style="border:0" src="https://affiliates.a2hosting.com/scripts/imp.php?aid=5ff74858d3bac&bid=a3194333" width="1" height="1" alt="" />


I have spent a lot of time investigating this issue.

I have tried to replace the CSS file with the original CSS file and no ad is showing. the error in console is Fluid responsive ads must be at least 250px wide: availableWidth=0"
Thinking the problem might be from theme CSS. There is probably a bug in theme CSS.

Are there others who have installed the theme and everything is working fine especially Adsense?
« Last Edit: June 28, 2021, 01:56:02 AM by support »

Marked as best answer by frosticek on June 28, 2021, 08:03:36 AM
*

MB Themes

Re: GOOGLE ADS NOT SHOWING ON DELTA THEME
« Reply #10 on: June 28, 2021, 07:55:55 AM »
@support
It is problem of adsense, that is telling you advert is fluid and responsive, but actually require box to have minimum available height & width.
Anyway, we've added into theme option "Optimize banners for Adsense" that will remove default sizes of banners and keep it on 100% with height to auto.

This has been added to your site as well.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Smithtech

  • ****
  • 219 posts
Re: GOOGLE ADS NOT SHOWING ON DELTA THEME
« Reply #11 on: June 28, 2021, 04:27:20 PM »
Alright. Thank you