google-mobile-ads-android-migrate-to-next-gen
详尽的映射表和迁移清单,适合批量升级大型 Android 项目。
迁移会修改代码与构建文件,建议备份并在 CI 中逐步验证。
将旧版 Google Mobile Ads Android SDK 迁移到 Next‑Gen SDK,并提供导入/类/方法映射表。
把旧版 Google Mobile Ads Android SDK(com.google.android.gms:play-services-ads)迁移到 GMA Next‑Gen(com.google.android.libraries.ads.mobile.sdk:ads-mobile-sdk),提供导入、类和方法签名的详尽对照表,帮你逐项替换代码。适合手头有现成 Android 项目需要升级 SDK 时使用,能大幅减少查找映射、手动改代码的工作量,不涉及 CI/build 的深层流程。
▸ 展开 SKILL.md 英文原文
Migrates Android applications from the old, legacy Google Mobile Ads (GMA) SDK (com.google.android.gms:play-services-ads) to the new GMA Next-Gen SDK (com.google.android.libraries.ads.mobile.sdk:ads-mobile-sdk). Provides comprehensive mapping tables for imports, classes, and method signatures to help determine migration steps. Use when migrating an existing Android codebase from the old, legacy GMA SDK to GMA Next-Gen SDK.
帮我安装这个 skill:https://raw.githubusercontent.com/google/skills/main/skills/ads/google-mobile-ads-android-migrate-to-next-gen/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/google/skills/main/skills/ads/google-mobile-ads-android-migrate-to-next-gen/SKILL.md"# AI Migration Agent Instructions for the Google Mobile Ads SDK
## Migration Workflow
Use this checklist to track your migration progress:
* **Configure Gradle**:
- [ ] Replace `com.google.android.gms:play-services-ads` with the latest
stable version of
`com.google.android.libraries.ads.mobile.sdk:ads-mobile-sdk`. If you
cannot access Maven directly, run the following command to fetch the
latest version. The version returned in the `latest` tag is the latest
version of the GMA Next-Gen SDK:
```bash
curl -sS https://dl.google.com/dl/android/maven2/com/google/android/libraries/ads/mobile/sdk/ads-mobile-sdk/maven-metadata.xml |