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

    MegGriffin

    Joined:
    Oct 22, 2022
    Posts:
    20
    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.

    upload_2024-3-8_20-41-41.png
    this is the error message

    upload_2024-3-8_20-42-36.png
    and this is the code with the errors


    Thank you all