Multiple banner ad units in single activity

2,284 views
Skip to first unread message

Mike Brewer

unread,
Aug 30, 2018, 3:44:06 AM8/30/18
to Google Mobile Ads SDK Developers
I have a scrolling activity in which I want to place multiple ads (of banner type, so that they are wide and not tall), spaced apart so that you can only see one at any one time.  I prefer that to a single static banner e.g. at the bottom of the activity.  

First, does this violate the admob policy?  There is some suggestion that you can only have a single banner ad on any activity, but other suggestions that having multiple is OK so long as you can only see one at a time?

Second, is there any way to ensure that different ads are server to the different ad units on the same activity?  My initialisation code is currently something like:

AdView mAdView1 = findViewById(R.id.adView1);
AdView mAdView2 = findViewById(R.id.adView2);
MobileAds.initialize(this, "ca-app-pub-xxxxxxxxxxxxxxx~xxxxxxxxxx");
AdRequest adRequest = new AdRequest.Builder().build();
mAdView1.loadAd(adRequest);
mAdView2.loadAd(adRequest);

And my layout has:

<com.google.android.gms.ads.AdView
style="@style/MyAdView"
android:id="@+id/adView1"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-xxxxxxxxxxxxxxxx/xxxxxxxxxxx">
</com.google.android.gms.ads.AdView>

(and another for adView2)

mobileadssdk-a...@google.com

unread,
Aug 30, 2018, 7:24:59 AM8/30/18
to Mike Brewer, Google Mobile Ads SDK Developers
Hi Mike,

Below are my responses to your concerns.

First, does this violate the admob policy?  There is some suggestion that you can only have a single banner ad on any activity, but other suggestions that having multiple is OK so long as you can only see one at a time?
As you can see in this BannerRecyclerViewExample app, you should be able to load multiple Banner Ads in a single activity. However, for concerns specific to permissible implementations when using the AdMob and the Mobile Ads SDK, it's best to raise this over to the Product Support Team or the AdMob Help forum. Additionally, you may refer to this article for more relevant information.

Second, is there any way to ensure that different ads are server to the different ad units on the same activity?
The ads that are being served to your app is dependent on your Ad sources and is not controlled by the Mobile Ads SDK so there is a possibility that all your Ad Unit Ids might display the same Ad creative. I'm afraid there is no way to ensure that you will display different Ads for your Ad units.

Regards,
Ivan Bautista
Mobile Ads SDK Team




--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/1d37b4a7-0401-4936-9fa1-bdc2ec3606de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages