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

前端 未结 7 1741
有刺的猬
有刺的猬 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:30

    xmlns:ads="http://schemas.android.com/apk/res-auto" 
    

    This solved my problem.

    do not use this

    xmlns:ads="http://schemas.android.com/tools" 
    

提交回复
热议问题