I am working on an old Unity Project. I just imported the GoogleMobileAds but I got an exception:
Assets\GoogleMobileAds\Editor\AndroidBuildPostProcessor.cs(14,38): error CS0117: 'GoogleMobileAdsSettings' does not contain a definition for 'Instance'
I guess it is because of GoogleMobileAdsSettings.Instance method is deleted in the new versions of the plugin. What can I do to fix that?
Relevant Code:
if (!GoogleMobileAdsSettings.Instance.IsAdManagerEnabled && !GoogleMobileAdsSettings.Instance.IsAdMobEnabled)
{
NotifyBuildFailure("Neither Ad Manager nor AdMob is enabled yet.");
}
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 2: Describe the problem
Steps to reproduce:
I am working on an old Unity Project. I just imported the GoogleMobileAds but I got an exception:
Assets\GoogleMobileAds\Editor\AndroidBuildPostProcessor.cs(14,38): error CS0117: 'GoogleMobileAdsSettings' does not contain a definition for 'Instance'
I guess it is because of GoogleMobileAdsSettings.Instance method is deleted in the new versions of the plugin. What can I do to fix that?
Relevant Code: