Correctly disable AdMob ads

前端 未结 9 1648
感情败类
感情败类 2020-12-02 05:13

I am integrating AdMob into my app and I wonder how to disable Ads correctly. I want to give the user the ability to disable them. I don\'t want to get any problems with AdM

9条回答
  •  时光说笑
    2020-12-02 05:55

    I'm not sure if the layout reflows after you remove the adview; if it doesn't you can create an identical (except for the missing ad) layout. In your OnCreate, select the proper layout. Then, you just need to ensure that a configuration change is triggered after the user makes the selection (may already happen depending on how you let them select - e.g. returning from a preference screen).

提交回复
热议问题