adsense multiplex ad showing only 1 ad - adsense

I add it like below:
(note that this is happens in React.js code so there is a style attribute there)
<ins className="adsbygoogle"
style={{display:"block",
"marginLeft": "auto", "marginRight": "auto"}}
data-ad-format="autorelaxed"
data-ad-client="ca-pub-xxxx"
data-matched-content-ui-type="image_stacked,image_stacked"
data-matched-content-rows-num="2,2"
data-matched-content-columns-num="2,2"
data-ad-slot="xxxx" >
</ins>
I see only 1 ad instead of 2x2. Same on both mobile and desktop, image below:
What am I doing wrong here? Any ideas why it never gives me the 4 ads like requested?

Related

Enable AdSense auto ads conditionnaly in code

Is it possible to configure AdSense auto ads in the snippet code instead of enabling that in the dashboard?
What I want to achieve is to choose what types of auto ads to show for each request according to some conditions:
Anchor Ads
Anchor Ads + Wide Screen
Vignette Ads
Vignette Ads + Wide Screen
Ad load
Can I specify additional parameters in this snippet code? Where can I find the full list of available properties?
<script async src="https://pagead2.googlesyndication.com/..." crossorigin="anonymous"></script>
<script>(adsbygoogle = window.adsbygoogle || []).push({});/script>

Hide Google Adsense banner when there's no advertisments on Website

I have some problems when trying to integrate Google Adsense to my Weather Website.
The google banner is running but not well. Sometimes, it doesn't show anything except for a blank banner. Like in this pic: Picture
The first problem leads me to think about hiding the banner when there's no ads loaded. I found a solution which is adding data-ad-format="auto" to the banner tag. But I need to customize the banner dimension for the mobile. If I use data-ad-format="auto", I will not be able to customize the dimensions of the banner.
Does anyone has a solution for this? Hiding the banner when there's no ads?
Thank you very much!
I have had this problem for quite a while, the first ad unit above the fold does not collapse (with collapse set within Adsense), yet the ads below the fold will collapse. I have read that it will work if you integrate it with Google Ad Manager though I haven't had time to test it yet
You can hide the element if no ads using this:
ins.adsbygoogle[data-ad-status="unfilled"] {
display: none !important;
}
or only show element if there is and ad using this:
ins.adsbygoogle a {
display: none !important;
}
ins.adsbygoogle[data-ad-status="unfilled"] a {
display: block;
}
source: https://support.google.com/adsense/answer/10762946?hl=en

Callback for Google Play Ads (android.googleAdUnitId or ios.googleAdUnitId build hints)

My CodenameOne app works perfectly when using the android.googleAdUnitId or ios.googleAdUnitId build hints in order to show the Admob Ads banner at the bottom. However, I would like to give some coins/diamonds as rewards when users click on the bottom Ads banner. How can I do this? Is it possible for the main class to handle this by implementing the AdsListener interface like the https://github.com/chen-fishbein/admobfullscreen-codenameone supports (or at least the main class should implement a special interface which has the onAdLeftApplication() function only?)
Shai, Chen, anyone, do you have any advice?
There is no way to adjust the banner behavior, if you want to reward the user use full screen ads, there are quite a few full screen ads providers with a CodenameOne integration see these:
https://github.com/chen-fishbein/flurry-codenameone , https://github.com/chen-fishbein/startapp-codenameone , https://github.com/amiga/aerserv-codenameone

navbar links dont appear iphone

so im in the process of developing my own website and understanding bootstrap. just recently uploaded the files to the free server and i see that everything that ive worked on its there and it looks just like i see it on my laptop, except of course for a few things that i cannot make work yet like : the position of logo on the navbar and links not being active when pressed. anyway when i checked on my phone to see how it looked like i couldnt see the links on the navbar, all i could see was a square with lines inside but when i touched it nothing appeared. so what should i do? am i missing a something?
Bootstrap has a mobile navigation built into it but it requires javascript. Ensure you have JS enabled and have included the collapse.js file:
http://getbootstrap.com/javascript/#collapse

facebook social plugin - not able to specify size

I'm running into this simple issue but not able to find any docs for this.
I was using the following facebook login button which was displaying a long/large facebook login button and this works perfectly fine
<fb:login-button length="long" size="large" perms="publish_stream,offline_access,email,user_events,rsvp_event,user_about_me,user_location,user_website,sms"></fb:login-button>
Now I wanted to use the social plugin and show the faces - so I saw the sample code here - http://developers.facebook.com/docs/reference/plugins/login
<fb:login-button show-faces="true">
But I'm not able to specify the attributes length and size here - even if I do add - the size does not change
<fb:login-button show-faces="true" length="long" size="large"></fb:login-button>
Any ideas on how to increase the size of the button.
Thanks
You cannot change the size of the button when using show-faces="true" at this time.