AdMob won't show the banner until refresh or sign in to google plus

后端 未结 5 1901
别那么骄傲
别那么骄傲 2020-12-28 18:50

I\'ve got a problem. My AdMob has been set up for some time now without any problem, but I noticed something wrong. Ad gets successfully loaded (i see message from ddms), bu

5条回答
  •  悲哀的现实
    2020-12-28 19:39

    banner.setBackgroundColor(Color.TRANSPARENT);
    

    This seems to fix the issue for me. Also be sure to run the banner creation code from within the UI thread.

    activity.runOnUiThread(new Runnable()
    {
        @Override
        public void run()
        {
            // all your banner creation code is here
            banner.setBackgroundColor(Color.TRANSPARENT);
        }
    });
    

提交回复
热议问题