I am currently using adView inside a layout include tag which uses the android data binding. I think it clashes with the namespace of the data binding and not setting preferences. So it gives me the error mentioned in the title.
Setting adSize and adUnitId programatically also doesn't work. If you don't set adUnitId and set it with data-binding or BindingAdapter it gives you the error mentioned here (
http://stackoverflow.com/q/40374013/1820644)
If i check the values just before loadAd call, it gives me the values of adUnitId and adSize. But it doesn't load the ad and shows adUnitId was missing.
What's going on?
Thanks,
Kirtan