Where should i call MobileAds.initialize()?

后端 未结 3 1798
失恋的感觉
失恋的感觉 2021-02-20 02:49

I have read https://developers.google.com/admob/android/quick-start?hl=en-US#import_the_mobile_ads_sdk

I need to initialize MobileAds using Code A in order to display Ad

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-20 03:21

    Initializing MobileAds in Aplication context will cause error with InMobi mediation adapter

    "Adapter Initialization status: Not Ready"
    

    Tested with AdMob Test Suite.

    Solution is to initialize MobileAds in Activity context.

提交回复
热议问题