I would like set Ad Unit ID and size from a response of my server (without Firebase) because, i realized after few days revenue becomes lower and also i would like make some tests between size "BANNER" and "SMART_BANNER".
After checking, admob policy, i dint see anything relevant about this topic, just want be sure it's allowed by admob or not ? (support doesn't answer...)
Thanks
Yes, you can use that!
Simply request you server for the Ad type (BANNER/SMART_BANNER) before requesting an Ad and add adView.adSize = sizeFromServer
Additionally, you’ll have to create the AdView
object programmatically and add it to your ViewGroup
because AdView
parameters/arguments like adSize, adUnits, defined in xml cannot be changed.
Tip: SMART_BANNER
is more effective than BANNER
.