Hello there,
Thanks for reaching out to us. When it is an Adaptive Banner, you would have to add the AdView programmatically. We have a sample app that demonstrates this. You can add the AdView on a Container
via XML and then add the
AdView through your class. The AdSize is determined dynamically and you can go through our
guideline that will help you get the AdSize.
You can go through our
AdaptiveBanner Sample app to go through further implementation. Let us know if you need anything else.
Regards,
Deepika Uragayala
Mobile Ads SDK Team

ref:_00D1U1174p._5001UJaajH:ref