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.gradlefile (usually underapp/build.gradle), then search for the dependency line starting withcom.google.android.gms:play-services-ads. The version number is right after the colon, like this:
Here,implementation 'com.google.android.gms:play-services-ads:22.6.0'22.6.0is your current SDK version. - Version Catalog (libs.versions.toml): If you're using a version catalog, open
gradle/libs.versions.tomland look for an entry likeplayServicesAds = "22.6.0". This is the version your project is pulling in. - Android Studio Project Structure: Go to
File > Project Structure, navigate toDependencies > 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.lockfile in your project root, then search forGoogle-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.0is your current version here. - Terminal Command: Open your terminal, navigate to your project root, and run:
This will output the version of the SDK installed locally for your project.pod list | grep Google-Mobile-Ads-SDK
Flutter Projects
- pubspec.yaml: Open your project's
pubspec.yamlfile, search forgoogle_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:
Look for theflutter pub depsgoogle_mobile_adsentry to find your current version.
Unity Projects
- Package Manager: Open Unity Editor, go to
Window > Package Manager. In the packages list, findGoogle Mobile Ads—the version number is displayed in the right-hand details panel. - manifest.json: Open
Packages/manifest.jsonin your project root, search forcom.google.mobile.ads, and check theversionfield:"dependencies": { "com.google.mobile.ads": "8.6.0", ... }
内容的提问来源于stack exchange,提问作者Huy Nguyen
相关产品推荐
相关产品推荐

