0

I'm running the example app for native advanced ads from the official repo.

https://github.com/googleads/googleads-mobile-android-examples/tree/master/kotlin/admob/NativeAdvancedExample

When I run it I see ads:

enter image description here

but as you can see it does not show the adchoices icon in the corner.

I have the same problem in my project.

The rules says that the icon is mandatory and that it will be automatically added, but as we see it is not added and it violates the rules.

Is there a way to force it to be shown?

TpoM6oH
  • 8,385
  • 3
  • 40
  • 72

2 Answers2

1

Late answer but it turns out that the AdChoices icon does not show for test ads: https://github.com/googleads/googleads-mobile-android-examples/issues/136

You need to test it with a real ad unit ID.

Jérémy Reynaud
  • 3,020
  • 1
  • 24
  • 36
0

You can enable it like this,

.withNativeAdOptions(new NativeAdOptions.Builder()
                .setRequestCustomMuteThisAd(true)
                .setAdChoicesPlacement(ADCHOICES_TOP_RIGHT)
                .build())

Thats it! And also you can position it in four ways Like ADCHOICES_TOP_LEFT or ADCHOICES_TOP_RIGHT or ADCHOICES_BOTTOM_RIGHT or ADCHOICES_BOTTOM_LEFT

Harsh Kothari
  • 439
  • 4
  • 8
  • What object is withNativeAdOptions a function of? – JCutting8 Jun 24 '22 at 11:48
  • @JCutting8 withNativeAdOptions is just a setting function in the AdLoader Builder class, which is just used to load a NativeAd, check the native ad guide or documentation on google – Diljeet Aug 01 '22 at 16:14
  • After doing this,do you still need to provide a view for this in the layout? – HasIEluS Jun 09 '23 at 22:24