Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question 'GoogleMobileAdsSettings' does not contain a definition for 'Instance'

Discussion in 'Android' started by MegGriffin, Mar 8, 2024.

  1. MegGriffin


    Oct 22, 2022
    Hello everyone. 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 searched Google for the solution but only thing I found is that Instance method was removed in the latest updates of GoogleMobileAds. So I am helpless.

    this is the error message

    and this is the code with the errors

    Thank you all