The ad size and ad unit ID must be set before loadAd when set programmatically

前端 未结 7 1689
有刺的猬
有刺的猬 2020-12-14 00:01

I have no idea what is going on here but I am trying to set my ad unit ID dynamically through code like below and removing it from the XML but still get the error:

相关标签:
7条回答
  • 2020-12-14 00:51

    add this to your layout

    xmlns:ads="http://schemas.android.com/apk/res-auto" 
    
    0 讨论(0)
提交回复
热议问题