Not enough space to show ad (AdMob)

后端 未结 5 2082
挽巷
挽巷 2020-11-30 13:45

I am trying to show AdMob ads in my activity, but it is always giving error that \"not enough space to show ad\".

My XML file is:



        
5条回答
  •  半阙折子戏
    2020-11-30 14:28

    The left and right padding of your RelativeLayout is consuming space required by your AdView.

    Change RelativeLayout config to :

    
    

    You probably also want to change your AdView config to:

    
    

    as you don't really want your AdView to consume the entire screen.

提交回复
热议问题