You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Unity中如何查看项目内Google Mobile Ads的版本?

Got it, let's break down how to check your Google Mobile Ads SDK version across different project types—super straightforward once you know where to look!

Android Projects (Gradle)
  • Check module-level build.gradle: Open your app's build.gradle file (usually under app/build.gradle), then search for the dependency line starting with com.google.android.gms:play-services-ads. The version number is right after the colon, like this:
    implementation 'com.google.android.gms:play-services-ads:22.6.0'
    
    Here, 22.6.0 is your current SDK version.
  • Version Catalog (libs.versions.toml): If you're using a version catalog, open gradle/libs.versions.toml and look for an entry like playServicesAds = "22.6.0". This is the version your project is pulling in.
  • Android Studio Project Structure: Go to File > Project Structure, navigate to Dependencies > App Module, and find the Google Mobile Ads dependency. The version will be listed next to it.
iOS Projects (CocoaPods)
  • Podfile.lock: Open the Podfile.lock file in your project root, then search for Google-Mobile-Ads-SDK. The version is shown in the entry, like:
    - Google-Mobile-Ads-SDK (10.14.0):
      - GoogleAppMeasurement (<= 10.14.0, >= 10.13.0)
      - GoogleUserMessagingPlatform (<= 2.2.0, >= 2.0.0)
    
    10.14.0 is your current version here.
  • Terminal Command: Open your terminal, navigate to your project root, and run:
    pod list | grep Google-Mobile-Ads-SDK
    
    This will output the version of the SDK installed locally for your project.
Flutter Projects
  • pubspec.yaml: Open your project's pubspec.yaml file, search for google_mobile_ads, and check the version number next to it, e.g.:
    dependencies:
      flutter:
        sdk: flutter
      google_mobile_ads: ^2.4.0
    
  • Flutter Pub Command: Run this in your terminal to list all dependencies and their versions:
    flutter pub deps
    
    Look for the google_mobile_ads entry to find your current version.
Unity Projects
  • Package Manager: Open Unity Editor, go to Window > Package Manager. In the packages list, find Google Mobile Ads—the version number is displayed in the right-hand details panel.
  • manifest.json: Open Packages/manifest.json in your project root, search for com.google.mobile.ads, and check the version field:
    "dependencies": {
      "com.google.mobile.ads": "8.6.0",
      ...
    }
    

内容的提问来源于stack exchange,提问作者Huy Nguyen

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 07:46:05