Question by
andreimitrica4 · Jul 16, 2019 at 06:37 AM ·
nullreferenceexceptionadsadmob
Unity admob ads null reference
07-15 11:01:04.191 26475-26487/? E/Unity: NullReferenceException: Object reference not set to an instance of an object. at AdManager.ShowAdmobBanner () [0x00000] in :0 at GameManager.CallAdmobAds () [0x00000] in :0 at GameManager.Start () [0x00000] in :0
Same error at interstitial too, ads worked but now idk why i have this error. What i can do?
public void ShowAdmobInterstitial()
{
if (admanagerInstance.interstitialView.IsLoaded())
admanagerInstance.interstitialView.Show();
RequestInterstitial();
}
public void ShowAdmobBanner()
{
bannerView.Show();
}
Comment
Your answer

Follow this Question
Related Questions
Which ad provider you are using? 1 Answer
set custom position admob with device resolution 1 Answer
Admob & Chartboost ads suddenly not working. 1 Answer
Is ad platform CPIMobi good or bad? 5 Answers
disable ads admob with iap 0 Answers