[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M698XF642BTZ5353G7AAQVEK":3,"skill-same:01M698XF642BTZ5353G7AAQVEK":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":50,"linkOnly":51,"markdownContent":52,"markdownBody":53,"frontMatter":54,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":61,"repositoryHtmlUrl":62,"repositoryHomepageUrl":17,"ownerHtmlUrl":63,"ownerBlogUrl":64,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M698XF642BTZ5353G7AAQVEK","google-mobile-ads-android-migrate-to-next-gen","Android GMA SDK 迁移","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.","将 Android 应用从旧版 Google Mobile Ads (GMA) SDK（com.google.android.gms:play-services-ads）迁移到新版 GMA Next-Gen SDK（com.google.android.libraries.ads.mobile.sdk:ads-mobile-sdk）。提供针对导入、类和方法签名的全面映射表，帮助确定迁移步骤。当需要将现有 Android 代码库从旧版 GMA SDK 迁移到 GMA Next-Gen SDK 时使用。","google\u002Fskills","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M698WR0H76ENHE587T9EJT89",24235,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fads\u002Fgoogle-mobile-ads-android-migrate-to-next-gen\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",[31,32,33,34,35,36,10,37,38,39,40,41,42,43,44,45,46,47,48,49],"android","next","mobile","ads","migrate","google mobile ads android migrate to next gen","help","play","services","applications","libraries","sdk","use","Legacy","signatures","for","Existing","imports","when","2026-11-10 10:12:30",false,"---\nname: google-mobile-ads-android-migrate-to-next-gen\ndescription: Migrates Android applications from the old, legacy Google Mobile\n  Ads (GMA) SDK (com.google.android.gms:play-services-ads) to the new GMA\n  Next-Gen SDK (com.google.android.libraries.ads.mobile.sdk:ads-mobile-sdk).\n  Provides comprehensive mapping tables for imports, classes, and method\n  signatures to help determine migration steps. Use when migrating an existing\n  Android codebase from the old, legacy GMA SDK to GMA Next-Gen SDK.\nmetadata:\n  version: \"1.1.0\"\n  category: GoogleAds\n---\n# AI Migration Agent Instructions for the Google Mobile Ads SDK\n\n## Migration Workflow\n\nUse this checklist to track your migration progress:\n\n*   **Configure Gradle**:\n    -   [ ] Replace `com.google.android.gms:play-services-ads` with the latest\n        stable version of\n        `com.google.android.libraries.ads.mobile.sdk:ads-mobile-sdk`. If you\n        cannot access Maven directly, run the following command to fetch the\n        latest version. The version returned in the `latest` tag is the latest\n        version of the GMA Next-Gen SDK:\n\n        ```bash\n        curl -sS https:\u002F\u002Fdl.google.com\u002Fdl\u002Fandroid\u002Fmaven2\u002Fcom\u002Fgoogle\u002Fandroid\u002Flibraries\u002Fads\u002Fmobile\u002Fsdk\u002Fads-mobile-sdk\u002Fmaven-metadata.xml | sed -n 's\u002F.*\u003Clatest>\\(.*\\)\u003C\\\u002Flatest>.*\u002F\\1\u002Fp'\n        ```\n\n    -   [ ] Update `minSdk` (24+) and `compileSdk` (34+).\n    -   [ ] Exclude `play-services-ads` and `play-services-ads-lite` from all\n        dependencies globally in the app-level build file to avoid duplicate\n        symbol errors.\n    -   [ ] Sync Gradle before moving on to the next step.\n*   **Per-File Migration**:\n    -   [ ] Refactor the codebase following the API Mapping and Method Mapping\n        tables to migrate imports, class names, and method signature to GMA\n        Next-Gen SDK.\n*   **Verify and Build**:\n    -   [ ] Run `gradle build -x test` to confirm a successful clean build.\n        Resolve any GMA SDK related compile errors.\n\n## Core Migration Rules\n\n*   **App ID Usage**: **Always** use the value of the\n    `com.google.android.gms.ads.APPLICATION_ID` meta-data tag from\n    `AndroidManifest.xml` for the `applicationId` in `InitializationConfig`.\n    *   *Constraint*: Preserve the `\u003Cmeta-data>` tag in the manifest; it is\n        still required for publishers using the User Messaging Platform SDK.\n*   **Initialization Sequence**:\n    1.  Call `MobileAds.initialize()` on a background thread.\n    2.  Ensure `initialize()` is called **before** any other SDK methods.\n    3.  If using `RequestConfiguration`, bundle it into\n        `InitializationConfig.Builder.setRequestConfiguration()`. **Do not**\n        call `MobileAds.setRequestConfiguration()` before initialization.\n*   **UI Threading**: **MANDATORY**: Callbacks in GMA-Next Gen SDK are invoked\n    on a background thread. **ALL UI-RELATED OPERATIONS** (e.g., Toasts, View\n    updates, Fragment transactions) **MUST** be wrapped in `runOnUiThread {}` or\n    `Dispatchers.Main.launch {}` within GMA SDK callbacks. SKIPPING THIS STEP\n    WILL CAUSE THE APPLICATION TO CRASH.\n*   **Mediation**: Classes implementing\n    `com.google.android.gms.ads.mediation.Adapter` MUST continue using\n    `com.google.android.gms.ads`.\n\n## Format Specifics\n\n### Banner Ads\n\n*   Use `com.google.android.libraries.ads.mobile.sdk.banner.AdView` for loading\n    GMA Next-Gen SDK banners.\n*   The following API checks if a banner is collapsible:\n    `adView.getBannerAd().isCollapsible()`.\n\n### Native Ads\n\n*   **NativeAdLoader**: `NativeAdLoader` is abstract and cannot be instantiated.\n    It is used statically (e.g., `NativeAdLoader.load(...)`).\n*   The following APIs are now set on the `NativeAdRequest.Builder`:\n    *   `.setCustomFormatIds(customFormatIds: List\u003CString>)`\n    *   `.disableImageDownloading()`\n    *   `.setMediaAspectRatio(mediaAspectRatio: NativeMediaAspectRatio)`\n    *   `.setAdChoicesPlacement(adChoicesPlacement: AdChoicesPlacement)`\n    *   `.setVideoOptions(videoOptions: VideoOptions)`\n*   **Removal**: Delete all \"Mute This Ad\" logic; it is unsupported in GMA\n    Next-Gen SDK.\n*   **MediaView**: `NativeAd` no longer has a direct `mediaView` variable; use\n    `registerNativeAd(nativeAd, mediaView)` to associate the ad with the view.\n\n### Ad preloading\n\n*   Unless specified in the mapping table, ad preloading methods in the GMA\n    Next-Gen SDK retain the same API signatures and parameters as the Old SDK.\n\n## API Mapping\n\nThis table covers the main classes and their GMA Next-Gen SDK equivalents.\n\n| Feature                    | Old SDK Import (`com.google.android.gms.ads...`)                                     | GMA Next-Gen SDK Import (`com.google.android.libraries.ads.mobile.sdk...` )                                                                                                           |\n|:---------------------------|:-------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Core**                   |                                                                                      |                                                                                                                                                                                       |\n| Initialization             | `MobileAds`                                                                          | `MobileAds`, `initialization.InitializationConfig`                                                                                                                                    |\n| Initialization Listener    | `initialization.OnInitializationCompleteListener`                                    | `initialization.OnAdapterInitializationCompleteListener`                                                                                                                              |\n| Ad Request                 | `AdRequest`                                                                          | *Format specific* (e.g. `common.AdRequest`, `banner.BannerAdRequest`, `nativead.NativeAdRequest`) (Ad Unit ID is declared in `Builder`. Load() no longer takes an activity)           |\n| Load Error                 | `LoadAdError`                                                                        | `common.LoadAdError` (`LoadAdError` no longer has a domain variable. REMOVE the domain variable if found.)                                                                            |\n| Full Screen Show Error     | `AdError` (within `FullScreenContentCallback`)                                       | `common.FullScreenContentError` (within format-specific `AdEventCallback`)                                                                                                            |\n| Request Configuration      | `RequestConfiguration`                                                               | `common.RequestConfiguration` (Nested Enums\u002FConstants for RequestConfiguration are now under common.RequestConfiguration.)                                                            |\n| Event Callbacks            | `FullScreenContentCallback` (for full screen formats), `AdListener` (Banner, Native) | *Format Specific* (e.g., `interstitial.InterstitialAdEventCallback`, `banner.BannerAdEventCallback`, `native.NativeAdEventCallback`). Variable on the ad format is `adEventCallback`. |\n| **Tools**                  |                                                                                      |                                                                                                                                                                                       |\n| Ad Inspector               | `MobileAds.openAdInspector()`                                                        | `MobileAds.openAdInspector()` (`openAdInspector` no longer takes an activity)                                                                                                         |\n| Ad Inspector Listener      | `OnAdInspectorClosedListener`                                                        | `common.OnAdInspectorClosedListener`                                                                                                                                                  |\n| **Formats**                |                                                                                      |                                                                                                                                                                                       |\n| App Open                   | `appopen.AppOpenAd`                                                                  | `appopen.AppOpenAd`                                                                                                                                                                   |\n| App Open Load              | `appopen.AppOpenAd.AppOpenAdLoadCallback`                                            | `common.AdLoadCallback\u003Cappopen.AppOpenAd>`                                                                                                                                            |\n| Banner                     | `AdView`, `AdSize`                                                                   | `banner.AdView`, `banner.AdSize` (`AdView` no longer has `pause()`, `resume()`, `setAdSize()`). `AdSize` is declared in `BannerAdRequest`.                                            |\n| Banner Load                | `AdListener`                                                                         | `common.AdLoadCallback\u003Cbanner.BannerAd>`                                                                                                                                              |\n| Banner Events              | `AdListener`                                                                         | `banner.BannerAdEventCallback`, `banner.BannerAdRefreshCallback`                                                                                                                      |\n| Interstitial               | `interstitial.InterstitialAd`                                                        | `interstitial.InterstitialAd`                                                                                                                                                         |\n| Interstitial Load          | `interstitial.InterstitialAd.InterstitialAdLoadCallback`                             | `common.AdLoadCallback\u003Cinterstitial.InterstitialAd>`                                                                                                                                  |\n| Ad Loader                  | `AdLoader`                                                                           | `nativead.NativeAdLoader`                                                                                                                                                             |\n| Native                     | `nativead.NativeAd`                                                                  | `nativead.NativeAd` (No longer has a `mediaView` variable)                                                                                                                            |\n| Native Custom Format Ad    | `nativead.NativeCustomFormatAd`                                                      | `nativead.CustomNativeAd`                                                                                                                                                             |\n| Native Custom Click        | `nativead.NativeCustomFormatAd.OnCustomClickListener`                                | `nativead.OnCustomClickListener` (set on the `CustomNativeAd` object (e.g., `.onCustomClickListener`)                                                                                 |\n| Native Load                | `nativead.NativeAd.OnNativeAdLoadedListener`                                         | `nativead.NativeAdLoaderCallback`                                                                                                                                                     |\n| Native Ad View             | `nativead.NativeAdView`                                                              | `nativead.NativeAdView`                                                                                                                                                               |\n| Media Content              | `MediaContent`                                                                       | `nativead.MediaContent` (hasVideoContent is declared as a `val`)                                                                                                                      |\n| Media Aspect Ratio         | `MediaAspectRatio`                                                                   | `nativead.MediaAspectRatio`                                                                                                                                                           |\n| Video Options              | `VideoOptions`                                                                       | `common.VideoOptions`                                                                                                                                                                 |\n| Video Controller           | `VideoController`                                                                    | `common.VideoController` (VideoLifecycleCallbacks is now an interface, so instantiate with `object : VideoController.VideoLifecycleCallbacks { ... }`)                                |\n| Rewarded                   | `rewarded.RewardedAd`                                                                | `rewarded.RewardedAd`                                                                                                                                                                 |\n| Rewarded Load              | `rewarded.RewardedAd.RewardedAdLoadCallback`                                         | `common.AdLoadCallback\u003Crewarded.RewardedAd>`                                                                                                                                          |\n| Rewarded Interstitial      | `rewardedinterstitial.RewardedInterstitialAd`                                        | `rewardedinterstitial.RewardedInterstitialAd`                                                                                                                                         |\n| Rewarded Interstitial Load | `rewardedinterstitial.RewardedInterstitialAd.RewardedInterstitialAdLoadCallback`     | `common.AdLoadCallback\u003Crewardedinterstitial.RewardedInterstitialAd>`                                                                                                                  |\n| Paid Event Listener        | `OnPaidEventListener`                                                                | `common.AdEventCallback`                                                                                                                                                              |\n| Response Info              | `ResponseInfo`                                                                       | `common.ResponseInfo`                                                                                                                                                                 |\n| Adapter Response Info      | `AdapterResponseInfo`                                                                | `common.AdSourceResponseInfo`                                                                                                                                                         |\n| **Rewards**                |                                                                                      |                                                                                                                                                                                       |\n| Reward Listener            | `OnUserEarnedRewardListener`                                                         | `rewarded.OnUserEarnedRewardListener`                                                                                                                                                 |\n| Reward Item                | `rewarded.RewardItem`                                                                | `rewarded.RewardItem` (property access on `RewardedAd` and `RewardedInterstitialAd` is now `getRewardItem()`)                                                                         |\n| Ad Value                   | `AdValue`                                                                            | `common.AdValue`                                                                                                                                                                      |\n| **Preloading**             |                                                                                      |                                                                                                                                                                                       |\n| Configuration              | `preload.PreloadConfiguration`                                                       | `common.PreloadConfiguration`                                                                                                                                                         |\n| Callback                   | `preload.PreloadCallbackV2`                                                          | `common.PreloadCallback` (Now an interface instead of an abstract class)                                                                                                              |\n| Interstitial Preloader     | `interstitial.InterstitialPreloader`                                                 | `interstitial.InterstitialAdPreloader`                                                                                                                                                |\n| **Ad Manager**             |                                                                                      |                                                                                                                                                                                       |\n| Ad Request                 | `admanager.AdManagerAdRequest`                                                       | `common.AdRequest` (Now directly implemented in the `AdRequest` class)                                                                                                                |\n| Ad View                    | `admanager.AdView`                                                                   | `banner.AdView` (No `AdManagerAdView` class)                                                                                                                                          |\n| App Event Listener         | `admanager.AppEventListener`                                                         | `common.OnAppEventListener`                                                                                                                                                           |\n\n## Method Mapping\n\nThis table covers the main methods and their GMA Next-Gen SDK equivalents.\n\n| Feature                                  | Old SDK Method Signature                                                                                                                     | GMA Next-Gen SDK Method Signature                                                                                                                                                                                                                                                          |\n|:-----------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Core**                                 |                                                                                                                                              |                                                                                                                                                                                                                                                                                            |\n| MobileAds Initialization                 | `MobileAds.initialize(Context context, OnInitializationCompleteListener listener)`                                                           | `MobileAds.initialize(Context context, InitializationConfig config, OnInitializationCompleteListener listener)`                                                                                                                                                                            |\n| InitializationConfig Builder             | N\u002FA                                                                                                                                          | `InitializationConfig.Builder(String applicationId)`                                                                                                                                                                                                                                       |\n| Ad Request Builder                       | `AdRequest.Builder().build()`                                                                                                                | `AdRequest.Builder(String adUnitId).build()` (for App Open, Interstitial, Rewarded, Rewarded Interstitial) **Banner:** `BannerAdRequest.Builder(String adUnitId, AdSize adSize).build()` **Native:** `NativeAdRequest.Builder(String adUnitId, nativeAdTypes: List\u003CNativeAdType>).build()` |\n| Add Network Extras (AdMobAdapter)        | `AdRequest.Builder().addNetworkExtrasBundle(Class\u003CMediationExtrasReceiver>, Bundle networkExtras)`                                           | `AdRequest.Builder(String adUnitId).setGoogleExtrasBundle(Bundle extraBundle)`                                                                                                                                                                                                             |\n| Add Network Extras (Ad Source Adapter)   | `AdRequest.Builder().addNetworkExtrasBundle(Class\u003CMediationExtrasReceiver>, Bundle networkExtras)`                                           | `AdRequest.Builder(String adUnitId).putAdSourceExtrasBundle(Class\u003CMediationExtrasReceiver> adapterClass, Bundle adSourceExtras)`                                                                                                                                                           |\n| Custom Targeting                         | `AdRequest.Builder().setCustomTargeting(String key, String value)`                                                                           | `AdRequest.Builder(String adUnitId).putCustomTargeting(String key, String value)`                                                                                                                                                                                                          |\n| **Formats**                              |                                                                                                                                              |                                                                                                                                                                                                                                                                                            |\n| App Open                                 | `AppOpenAd.load(Context context, String adUnitId, AdRequest request, AppOpenAdLoadCallback loadCallback)`                                    | `AppOpenAd.load(AdRequest request, AdLoadCallback\u003CAppOpenAd> loadCallback)`                                                                                                                                                                                                                |\n| Banner                                   | `AdView.loadAd(AdRequest request)`                                                                                                           | `AdView.loadAd(BannerAdRequest request, AdLoadCallback\u003CBannerAd> loadCallback)`                                                                                                                                                                                                            |\n| Interstitial                             | `InterstitialAd.load(Context context, String adUnitId, AdRequest request, InterstitialAdLoadCallback loadCallback)`                          | `InterstitialAd.load(AdRequest request, AdLoadCallback\u003CInterstitialAd> loadCallback)`                                                                                                                                                                                                      |\n| Rewarded                                 | `RewardedAd.load(Context context, String adUnitId, AdRequest request, RewardedAdLoadCallback loadCallback)`                                  | `RewardedAd.load(AdRequest request, AdLoadCallback\u003CRewardedAd> loadCallback)`                                                                                                                                                                                                              |\n| Rewarded Interstitial                    | `RewardedInterstitialAd.load(Context context, String adUnitId, AdRequest request, RewardedInterstitialAdLoadCallback loadCallback)`          | `RewardedInterstitialAd.load(AdRequest request, AdLoadCallback\u003CRewardedInterstitialAd> loadCallback)`                                                                                                                                                                                      |\n| Native Builder                           | `AdLoader.Builder(Context context, String adUnitId).forNativeAd(NativeAd.OnNativeAdLoadedListener onNativeAdLoadedListener)`                 | `NativeAdRequest.Builder(String adUnitId, nativeAdTypes: List\u003CNativeAdType>)` (Include `NativeAd.NativeAdType.NATIVE` in `nativeAdTypes`)                                                                                                                                                  |\n| Native Load                              | `AdLoader.Builder(...).build().loadAd(AdRequest request)`                                                                                    | `NativeAdLoader.load(NativeAdRequest request, NativeAdLoaderCallback callback)`                                                                                                                                                                                                            |\n| Native Ad Register                       | `NativeAdView.setNativeAd(NativeAd nativeAd)`                                                                                                | `NativeAdView.registerNativeAd(NativeAd nativeAd, mediaView: MediaView?)`                                                                                                                                                                                                                  |\n| Set an App Event Listener (Banner)       | `AdManagerAdView.appEventListener`                                                                                                           | `BannerAd.adEventCallback` (`onAppEvent(name: String, data: String?)` is now part of the `BannerAdEventCallback`)                                                                                                                                                                          |\n| Set an App Event Listener (Interstitial) | `AdManagerInterstitialAd.appEventListener`                                                                                                   | `InterstitialAd.adEventCallback` (`onAppEvent(name: String, data: String?)` is now part of the `InterstitialAdEventCallback`)                                                                                                                                                              |\n| **Callbacks**                            |                                                                                                                                              |                                                                                                                                                                                                                                                                                            |\n| onAdOpened                               | `AdListener.onAdOpened()`                                                                                                                    | `AdEventCallback.onAdShowedFullScreenContent()`                                                                                                                                                                                                                                            |\n| onAdClosed                               | `AdListener.onAdClosed()`                                                                                                                    | `AdEventCallback.onAdDismissedFullScreenContent()`                                                                                                                                                                                                                                         |\n| onFailedToShowFullScreenContent          | `onAdFailedToShowFullScreenContent(adError: AdError)`                                                                                        | `onAdFailedToShowFullScreenContent(fullScreenContentError: FullScreenContentError)`                                                                                                                                                                                                        |\n| onAdLoaded                               | **AdLoadCallback**: `onAdLoaded(ad: T)` (e.g., `InterstitialAdLoadCallback`, `RewardedAdLoadCallback`, `RewardedInterstitialAdLoadCallback`) | Parameter name is always `ad` **Format specific**: `onAdLoaded(ad: InterstitialAd)`, `onAdLoaded(ad: RewardedAd)`, `onAdLoaded(ad: RewardedInterstitialAd)`                                                                                                                                |\n| onAdFailedToLoad                         | `onAdFailedToLoad(loadAdError: LoadAdError)`                                                                                                 | `onAdFailedToLoad(adError: LoadAdError)`                                                                                                                                                                                                                                                   |\n| onCustomFormatAdLoaded                   | `OnCustomFormatAdLoadedListener.onCustomFormatAdLoaded(NativeCustomFormatAd ad)`                                                             | `NativeAdLoaderCallback.onCustomNativeAdLoaded(CustomNativeAd customNativeAd)`                                                                                                                                                                                                             |\n| onPaidEventListener                      | `OnPaidEventListener.onPaidEvent(AdValue value)`                                                                                             | `AdEventCallback.onAdPaid(value: AdValue)` (Format-specific e.g., `banner.BannerAdEventCallback.onAdPaid(value: AdValue)`)                                                                                                                                                                 |\n| onVideoMute                              | `onVideoMute(muted: Boolean)`                                                                                                                | `onVideoMute(isMuted: Boolean)`                                                                                                                                                                                                                                                            |\n| onAdPreloaded                            | `onAdPreloaded(preloadId: String, responseInfo: ResponseInfo?)`                                                                              | `onAdPreloaded(preloadId: String, responseInfo: ResponseInfo)`                                                                                                                                                                                                                             |\n| **Preloading**                           |                                                                                                                                              |                                                                                                                                                                                                                                                                                            |\n| Configuration                            | `PreloadConfiguration.Builder(String adUnitId).build()`                                                                                      | `PreloadConfiguration(AdRequest request)`                                                                                                                                                                                                                                                  |\n| **Response Info**                        |                                                                                                                                              |                                                                                                                                                                                                                                                                                            |\n| Get Response Info                        | `ad.responseInfo`                                                                                                                            | `ad.getResponseInfo()`                                                                                                                                                                                                                                                                     |\n| Loaded Adapter Responses Info            | `responseInfo.getLoadedAdapterResponseInfo()`                                                                                                | `responseInfo.loadedAdSourceResponseInfo`                                                                                                                                                                                                                                                  |\n| Get Adapter Responses                    | `responseInfo.getAdapterResponses()`                                                                                                         | `responseInfo.adSourceResponses`                                                                                                                                                                                                                                                           |\n| Get Mediation Adapter Class              | `responseInfo.getMediationAdapterClassName()`                                                                                                | `responseInfo.adapterClassName`                                                                                                                                                                                                                                                            |\n| **Adapter Response Info**                |                                                                                                                                              |                                                                                                                                                                                                                                                                                            |\n| Ad Source ID                             | `AdapterResponseInfo.getAdSourceId()`                                                                                                        | `AdSourceResponseInfo.id`                                                                                                                                                                                                                                                                  |\n| Ad Source Name                           | `AdapterResponseInfo.getAdSourceName()`                                                                                                      | `AdSourceResponseInfo.name`                                                                                                                                                                                                                                                                |\n| Ad Source Instance ID                    | `AdapterResponseInfo.getAdSourceInstanceId()`                                                                                                | `AdSourceResponseInfo.instanceId`                                                                                                                                                                                                                                                          |\n| Ad Source Instance Name                  | `AdapterResponseInfo.getAdSourceInstanceName()`                                                                                              | `AdSourceResponseInfo.instanceName`                                                                                                                                                                                                                                                        |\n\n","# AI Migration Agent Instructions for the Google Mobile Ads SDK\n\n## Migration Workflow\n\nUse this checklist to track your migration progress:\n\n*   **Configure Gradle**:\n    -   [ ] Replace `com.google.android.gms:play-services-ads` with the latest\n        stable version of\n        `com.google.android.libraries.ads.mobile.sdk:ads-mobile-sdk`. If you\n        cannot access Maven directly, run the following command to fetch the\n        latest version. The version returned in the `latest` tag is the latest\n        version of the GMA Next-Gen SDK:\n\n        ```bash\n        curl -sS https:\u002F\u002Fdl.google.com\u002Fdl\u002Fandroid\u002Fmaven2\u002Fcom\u002Fgoogle\u002Fandroid\u002Flibraries\u002Fads\u002Fmobile\u002Fsdk\u002Fads-mobile-sdk\u002Fmaven-metadata.xml | sed -n 's\u002F.*\u003Clatest>\\(.*\\)\u003C\\\u002Flatest>.*\u002F\\1\u002Fp'\n        ```\n\n    -   [ ] Update `minSdk` (24+) and `compileSdk` (34+).\n    -   [ ] Exclude `play-services-ads` and `play-services-ads-lite` from all\n        dependencies globally in the app-level build file to avoid duplicate\n        symbol errors.\n    -   [ ] Sync Gradle before moving on to the next step.\n*   **Per-File Migration**:\n    -   [ ] Refactor the codebase following the API Mapping and Method Mapping\n        tables to migrate imports, class names, and method signature to GMA\n        Next-Gen SDK.\n*   **Verify and Build**:\n    -   [ ] Run `gradle build -x test` to confirm a successful clean build.\n        Resolve any GMA SDK related compile errors.\n\n## Core Migration Rules\n\n*   **App ID Usage**: **Always** use the value of the\n    `com.google.android.gms.ads.APPLICATION_ID` meta-data tag from\n    `AndroidManifest.xml` for the `applicationId` in `InitializationConfig`.\n    *   *Constraint*: Preserve the `\u003Cmeta-data>` tag in the manifest; it is\n        still required for publishers using the User Messaging Platform SDK.\n*   **Initialization Sequence**:\n    1.  Call `MobileAds.initialize()` on a background thread.\n    2.  Ensure `initialize()` is called **before** any other SDK methods.\n    3.  If using `RequestConfiguration`, bundle it into\n        `InitializationConfig.Builder.setRequestConfiguration()`. **Do not**\n        call `MobileAds.setRequestConfiguration()` before initialization.\n*   **UI Threading**: **MANDATORY**: Callbacks in GMA-Next Gen SDK are invoked\n    on a background thread. **ALL UI-RELATED OPERATIONS** (e.g., Toasts, View\n    updates, Fragment transactions) **MUST** be wrapped in `runOnUiThread {}` or\n    `Dispatchers.Main.launch {}` within GMA SDK callbacks. SKIPPING THIS STEP\n    WILL CAUSE THE APPLICATION TO CRASH.\n*   **Mediation**: Classes implementing\n    `com.google.android.gms.ads.mediation.Adapter` MUST continue using\n    `com.google.android.gms.ads`.\n\n## Format Specifics\n\n### Banner Ads\n\n*   Use `com.google.android.libraries.ads.mobile.sdk.banner.AdView` for loading\n    GMA Next-Gen SDK banners.\n*   The following API checks if a banner is collapsible:\n    `adView.getBannerAd().isCollapsible()`.\n\n### Native Ads\n\n*   **NativeAdLoader**: `NativeAdLoader` is abstract and cannot be instantiated.\n    It is used statically (e.g., `NativeAdLoader.load(...)`).\n*   The following APIs are now set on the `NativeAdRequest.Builder`:\n    *   `.setCustomFormatIds(customFormatIds: List\u003CString>)`\n    *   `.disableImageDownloading()`\n    *   `.setMediaAspectRatio(mediaAspectRatio: NativeMediaAspectRatio)`\n    *   `.setAdChoicesPlacement(adChoicesPlacement: AdChoicesPlacement)`\n    *   `.setVideoOptions(videoOptions: VideoOptions)`\n*   **Removal**: Delete all \"Mute This Ad\" logic; it is unsupported in GMA\n    Next-Gen SDK.\n*   **MediaView**: `NativeAd` no longer has a direct `mediaView` variable; use\n    `registerNativeAd(nativeAd, mediaView)` to associate the ad with the view.\n\n### Ad preloading\n\n*   Unless specified in the mapping table, ad preloading methods in the GMA\n    Next-Gen SDK retain the same API signatures and parameters as the Old SDK.\n\n## API Mapping\n\nThis table covers the main classes and their GMA Next-Gen SDK equivalents.\n\n| Feature                    | Old SDK Import (`com.google.android.gms.ads...`)                                     | GMA Next-Gen SDK Import (`com.google.android.libraries.ads.mobile.sdk...` )                                                                                                           |\n|:---------------------------|:-------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Core**                   |                                                                                      |                                                                                                                                                                                       |\n| Initialization             | `MobileAds`                                                                          | `MobileAds`, `initialization.InitializationConfig`                                                                                                                                    |\n| Initialization Listener    | `initialization.OnInitializationCompleteListener`                                    | `initialization.OnAdapterInitializationCompleteListener`                                                                                                                              |\n| Ad Request                 | `AdRequest`                                                                          | *Format specific* (e.g. `common.AdRequest`, `banner.BannerAdRequest`, `nativead.NativeAdRequest`) (Ad Unit ID is declared in `Builder`. Load() no longer takes an activity)           |\n| Load Error                 | `LoadAdError`                                                                        | `common.LoadAdError` (`LoadAdError` no longer has a domain variable. REMOVE the domain variable if found.)                                                                            |\n| Full Screen Show Error     | `AdError` (within `FullScreenContentCallback`)                                       | `common.FullScreenContentError` (within format-specific `AdEventCallback`)                                                                                                            |\n| Request Configuration      | `RequestConfiguration`                                                               | `common.RequestConfiguration` (Nested Enums\u002FConstants for RequestConfiguration are now under common.RequestConfiguration.)                                                            |\n| Event Callbacks            | `FullScreenContentCallback` (for full screen formats), `AdListener` (Banner, Native) | *Format Specific* (e.g., `interstitial.InterstitialAdEventCallback`, `banner.BannerAdEventCallback`, `native.NativeAdEventCallback`). Variable on the ad format is `adEventCallback`. |\n| **Tools**                  |                                                                                      |                                                                                                                                                                                       |\n| Ad Inspector               | `MobileAds.openAdInspector()`                                                        | `MobileAds.openAdInspector()` (`openAdInspector` no longer takes an activity)                                                                                                         |\n| Ad Inspector Listener      | `OnAdInspectorClosedListener`                                                        | `common.OnAdInspectorClosedListener`                                                                                                                                                  |\n| **Formats**                |                                                                                      |                                                                                                                                                                                       |\n| App Open                   | `appopen.AppOpenAd`                                                                  | `appopen.AppOpenAd`                                                                                                                                                                   |\n| App Open Load              | `appopen.AppOpenAd.AppOpenAdLoadCallback`                                            | `common.AdLoadCallback\u003Cappopen.AppOpenAd>`                                                                                                                                            |\n| Banner                     | `AdView`, `AdSize`                                                                   | `banner.AdView`, `banner.AdSize` (`AdView` no longer has `pause()`, `resume()`, `setAdSize()`). `AdSize` is declared in `BannerAdRequest`.                                            |\n| Banner Load                | `AdListener`                                                                         | `common.AdLoadCallback\u003Cbanner.BannerAd>`                                                                                                                                              |\n| Banner Events              | `AdListener`                                                                         | `banner.BannerAdEventCallback`, `banner.BannerAdRefreshCallback`                                                                                                                      |\n| Interstitial               | `interstitial.InterstitialAd`                                                        | `interstitial.InterstitialAd`                                                                                                                                                         |\n| Interstitial Load          | `interstitial.InterstitialAd.InterstitialAdLoadCallback`                             | `common.AdLoadCallback\u003Cinterstitial.InterstitialAd>`                                                                                                                                  |\n| Ad Loader                  | `AdLoader`                                                                           | `nativead.NativeAdLoader`                                                                                                                                                             |\n| Native                     | `nativead.NativeAd`                                                                  | `nativead.NativeAd` (No longer has a `mediaView` variable)                                                                                                                            |\n| Native Custom Format Ad    | `nativead.NativeCustomFormatAd`                                                      | `nativead.CustomNativeAd`                                                                                                                                                             |\n| Native Custom Click        | `nativead.NativeCustomFormatAd.OnCustomClickListener`                                | `nativead.OnCustomClickListener` (set on the `CustomNativeAd` object (e.g., `.onCustomClickListener`)                                                                                 |\n| Native Load                | `nativead.NativeAd.OnNativeAdLoadedListener`                                         | `nativead.NativeAdLoaderCallback`                                                                                                                                                     |\n| Native Ad View             | `nativead.NativeAdView`                                                              | `nativead.NativeAdView`                                                                                                                                                               |\n| Media Content              | `MediaContent`                                                                       | `nativead.MediaContent` (hasVideoContent is declared as a `val`)                                                                                                                      |\n| Media Aspect Ratio         | `MediaAspectRatio`                                                                   | `nativead.MediaAspectRatio`                                                                                                                                                           |\n| Video Options              | `VideoOptions`                                                                       | `common.VideoOptions`                                                                                                                                                                 |\n| Video Controller           | `VideoController`                                                                    | `common.VideoController` (VideoLifecycleCallbacks is now an interface, so instantiate with `object : VideoController.VideoLifecycleCallbacks { ... }`)                                |\n| Rewarded                   | `rewarded.RewardedAd`                                                                | `rewarded.RewardedAd`                                                                                                                                                                 |\n| Rewarded Load              | `rewarded.RewardedAd.RewardedAdLoadCallback`                                         | `common.AdLoadCallback\u003Crewarded.RewardedAd>`                                                                                                                                          |\n| Rewarded Interstitial      | `rewardedinterstitial.RewardedInterstitialAd`                                        | `rewardedinterstitial.RewardedInterstitialAd`                                                                                                                                         |\n| Rewarded Interstitial Load | `rewardedinterstitial.RewardedInterstitialAd.RewardedInterstitialAdLoadCallback`     | `common.AdLoadCallback\u003Crewardedinterstitial.RewardedInterstitialAd>`                                                                                                                  |\n| Paid Event Listener        | `OnPaidEventListener`                                                                | `common.AdEventCallback`                                                                                                                                                              |\n| Response Info              | `ResponseInfo`                                                                       | `common.ResponseInfo`                                                                                                                                                                 |\n| Adapter Response Info      | `AdapterResponseInfo`                                                                | `common.AdSourceResponseInfo`                                                                                                                                                         |\n| **Rewards**                |                                                                                      |                                                                                                                                                                                       |\n| Reward Listener            | `OnUserEarnedRewardListener`                                                         | `rewarded.OnUserEarnedRewardListener`                                                                                                                                                 |\n| Reward Item                | `rewarded.RewardItem`                                                                | `rewarded.RewardItem` (property access on `RewardedAd` and `RewardedInterstitialAd` is now `getRewardItem()`)                                                                         |\n| Ad Value                   | `AdValue`                                                                            | `common.AdValue`                                                                                                                                                                      |\n| **Preloading**             |                                                                                      |                                                                                                                                                                                       |\n| Configuration              | `preload.PreloadConfiguration`                                                       | `common.PreloadConfiguration`                                                                                                                                                         |\n| Callback                   | `preload.PreloadCallbackV2`                                                          | `common.PreloadCallback` (Now an interface instead of an abstract class)                                                                                                              |\n| Interstitial Preloader     | `interstitial.InterstitialPreloader`                                                 | `interstitial.InterstitialAdPreloader`                                                                                                                                                |\n| **Ad Manager**             |                                                                                      |                                                                                                                                                                                       |\n| Ad Request                 | `admanager.AdManagerAdRequest`                                                       | `common.AdRequest` (Now directly implemented in the `AdRequest` class)                                                                                                                |\n| Ad View                    | `admanager.AdView`                                                                   | `banner.AdView` (No `AdManagerAdView` class)                                                                                                                                          |\n| App Event Listener         | `admanager.AppEventListener`                                                         | `common.OnAppEventListener`                                                                                                                                                           |\n\n## Method Mapping\n\nThis table covers the main methods and their GMA Next-Gen SDK equivalents.\n\n| Feature                                  | Old SDK Method Signature                                                                                                                     | GMA Next-Gen SDK Method Signature                                                                                                                                                                                                                                                          |\n|:-----------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Core**                                 |                                                                                                                                              |                                                                                                                                                                                                                                                                                            |\n| MobileAds Initialization                 | `MobileAds.initialize(Context context, OnInitializationCompleteListener listener)`                                                           | `MobileAds.initialize(Context context, InitializationConfig config, OnInitializationCompleteListener listener)`                                                                                                                                                                            |\n| InitializationConfig Builder             | N\u002FA                                                                                                                                          | `InitializationConfig.Builder(String applicationId)`                                                                                                                                                                                                                                       |\n| Ad Request Builder                       | `AdRequest.Builder().build()`                                                                                                                | `AdRequest.Builder(String adUnitId).build()` (for App Open, Interstitial, Rewarded, Rewarded Interstitial) **Banner:** `BannerAdRequest.Builder(String adUnitId, AdSize adSize).build()` **Native:** `NativeAdRequest.Builder(String adUnitId, nativeAdTypes: List\u003CNativeAdType>).build()` |\n| Add Network Extras (AdMobAdapter)        | `AdRequest.Builder().addNetworkExtrasBundle(Class\u003CMediationExtrasReceiver>, Bundle networkExtras)`                                           | `AdRequest.Builder(String adUnitId).setGoogleExtrasBundle(Bundle extraBundle)`                                                                                                                                                                                                             |\n| Add Network Extras (Ad Source Adapter)   | `AdRequest.Builder().addNetworkExtrasBundle(Class\u003CMediationExtrasReceiver>, Bundle networkExtras)`                                           | `AdRequest.Builder(String adUnitId).putAdSourceExtrasBundle(Class\u003CMediationExtrasReceiver> adapterClass, Bundle adSourceExtras)`                                                                                                                                                           |\n| Custom Targeting                         | `AdRequest.Builder().setCustomTargeting(String key, String value)`                                                                           | `AdRequest.Builder(String adUnitId).putCustomTargeting(String key, String value)`                                                                                                                                                                                                          |\n| **Formats**                              |                                                                                                                                              |                                                                                                                                                                                                                                                                                            |\n| App Open                                 | `AppOpenAd.load(Context context, String adUnitId, AdRequest request, AppOpenAdLoadCallback loadCallback)`                                    | `AppOpenAd.load(AdRequest request, AdLoadCallback\u003CAppOpenAd> loadCallback)`                                                                                                                                                                                                                |\n| Banner                                   | `AdView.loadAd(AdRequest request)`                                                                                                           | `AdView.loadAd(BannerAdRequest request, AdLoadCallback\u003CBannerAd> loadCallback)`                                                                                                                                                                                                            |\n| Interstitial                             | `InterstitialAd.load(Context context, String adUnitId, AdRequest request, InterstitialAdLoadCallback loadCallback)`                          | `InterstitialAd.load(AdRequest request, AdLoadCallback\u003CInterstitialAd> loadCallback)`                                                                                                                                                                                                      |\n| Rewarded                                 | `RewardedAd.load(Context context, String adUnitId, AdRequest request, RewardedAdLoadCallback loadCallback)`                                  | `RewardedAd.load(AdRequest request, AdLoadCallback\u003CRewardedAd> loadCallback)`                                                                                                                                                                                                              |\n| Rewarded Interstitial                    | `RewardedInterstitialAd.load(Context context, String adUnitId, AdRequest request, RewardedInterstitialAdLoadCallback loadCallback)`          | `RewardedInterstitialAd.load(AdRequest request, AdLoadCallback\u003CRewardedInterstitialAd> loadCallback)`                                                                                                                                                                                      |\n| Native Builder                           | `AdLoader.Builder(Context context, String adUnitId).forNativeAd(NativeAd.OnNativeAdLoadedListener onNativeAdLoadedListener)`                 | `NativeAdRequest.Builder(String adUnitId, nativeAdTypes: List\u003CNativeAdType>)` (Include `NativeAd.NativeAdType.NATIVE` in `nativeAdTypes`)                                                                                                                                                  |\n| Native Load                              | `AdLoader.Builder(...).build().loadAd(AdRequest request)`                                                                                    | `NativeAdLoader.load(NativeAdRequest request, NativeAdLoaderCallback callback)`                                                                                                                                                                                                            |\n| Native Ad Register                       | `NativeAdView.setNativeAd(NativeAd nativeAd)`                                                                                                | `NativeAdView.registerNativeAd(NativeAd nativeAd, mediaView: MediaView?)`                                                                                                                                                                                                                  |\n| Set an App Event Listener (Banner)       | `AdManagerAdView.appEventListener`                                                                                                           | `BannerAd.adEventCallback` (`onAppEvent(name: String, data: String?)` is now part of the `BannerAdEventCallback`)                                                                                                                                                                          |\n| Set an App Event Listener (Interstitial) | `AdManagerInterstitialAd.appEventListener`                                                                                                   | `InterstitialAd.adEventCallback` (`onAppEvent(name: String, data: String?)` is now part of the `InterstitialAdEventCallback`)                                                                                                                                                              |\n| **Callbacks**                            |                                                                                                                                              |                                                                                                                                                                                                                                                                                            |\n| onAdOpened                               | `AdListener.onAdOpened()`                                                                                                                    | `AdEventCallback.onAdShowedFullScreenContent()`                                                                                                                                                                                                                                            |\n| onAdClosed                               | `AdListener.onAdClosed()`                                                                                                                    | `AdEventCallback.onAdDismissedFullScreenContent()`                                                                                                                                                                                                                                         |\n| onFailedToShowFullScreenContent          | `onAdFailedToShowFullScreenContent(adError: AdError)`                                                                                        | `onAdFailedToShowFullScreenContent(fullScreenContentError: FullScreenContentError)`                                                                                                                                                                                                        |\n| onAdLoaded                               | **AdLoadCallback**: `onAdLoaded(ad: T)` (e.g., `InterstitialAdLoadCallback`, `RewardedAdLoadCallback`, `RewardedInterstitialAdLoadCallback`) | Parameter name is always `ad` **Format specific**: `onAdLoaded(ad: InterstitialAd)`, `onAdLoaded(ad: RewardedAd)`, `onAdLoaded(ad: RewardedInterstitialAd)`                                                                                                                                |\n| onAdFailedToLoad                         | `onAdFailedToLoad(loadAdError: LoadAdError)`                                                                                                 | `onAdFailedToLoad(adError: LoadAdError)`                                                                                                                                                                                                                                                   |\n| onCustomFormatAdLoaded                   | `OnCustomFormatAdLoadedListener.onCustomFormatAdLoaded(NativeCustomFormatAd ad)`                                                             | `NativeAdLoaderCallback.onCustomNativeAdLoaded(CustomNativeAd customNativeAd)`                                                                                                                                                                                                             |\n| onPaidEventListener                      | `OnPaidEventListener.onPaidEvent(AdValue value)`                                                                                             | `AdEventCallback.onAdPaid(value: AdValue)` (Format-specific e.g., `banner.BannerAdEventCallback.onAdPaid(value: AdValue)`)                                                                                                                                                                 |\n| onVideoMute                              | `onVideoMute(muted: Boolean)`                                                                                                                | `onVideoMute(isMuted: Boolean)`                                                                                                                                                                                                                                                            |\n| onAdPreloaded                            | `onAdPreloaded(preloadId: String, responseInfo: ResponseInfo?)`                                                                              | `onAdPreloaded(preloadId: String, responseInfo: ResponseInfo)`                                                                                                                                                                                                                             |\n| **Preloading**                           |                                                                                                                                              |                                                                                                                                                                                                                                                                                            |\n| Configuration                            | `PreloadConfiguration.Builder(String adUnitId).build()`                                                                                      | `PreloadConfiguration(AdRequest request)`                                                                                                                                                                                                                                                  |\n| **Response Info**                        |                                                                                                                                              |                                                                                                                                                                                                                                                                                            |\n| Get Response Info                        | `ad.responseInfo`                                                                                                                            | `ad.getResponseInfo()`                                                                                                                                                                                                                                                                     |\n| Loaded Adapter Responses Info            | `responseInfo.getLoadedAdapterResponseInfo()`                                                                                                | `responseInfo.loadedAdSourceResponseInfo`                                                                                                                                                                                                                                                  |\n| Get Adapter Responses                    | `responseInfo.getAdapterResponses()`                                                                                                         | `responseInfo.adSourceResponses`                                                                                                                                                                                                                                                           |\n| Get Mediation Adapter Class              | `responseInfo.getMediationAdapterClassName()`                                                                                                | `responseInfo.adapterClassName`                                                                                                                                                                                                                                                            |\n| **Adapter Response Info**                |                                                                                                                                              |                                                                                                                                                                                                                                                                                            |\n| Ad Source ID                             | `AdapterResponseInfo.getAdSourceId()`                                                                                                        | `AdSourceResponseInfo.id`                                                                                                                                                                                                                                                                  |\n| Ad Source Name                           | `AdapterResponseInfo.getAdSourceName()`                                                                                                      | `AdSourceResponseInfo.name`                                                                                                                                                                                                                                                                |\n| Ad Source Instance ID                    | `AdapterResponseInfo.getAdSourceInstanceId()`                                                                                                | `AdSourceResponseInfo.instanceId`                                                                                                                                                                                                                                                          |\n| Ad Source Instance Name                  | `AdapterResponseInfo.getAdSourceInstanceName()`                                                                                              | `AdSourceResponseInfo.instanceName`                                                                                                                                                                                                                                                        |\n\n",{"name":5,"metadata":55,"description":7},{"version":56,"category":57},"1.1.0","GoogleAds","main","bb9b3f464aae37af360d079c1d863524955b0363","skills\u002Fads\u002Fgoogle-mobile-ads-android-migrate-to-next-gen",2014,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 23:31:00",{"source":9,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add google\u002Fskills --skill google-mobile-ads-android-migrate-to-next-gen",{"tool":73,"command":74},"bunx","bunx skills add google\u002Fskills --skill google-mobile-ads-android-migrate-to-next-gen",{"tool":76,"command":77},"pnpm","pnpm dlx skills add google\u002Fskills --skill google-mobile-ads-android-migrate-to-next-gen","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fads\u002Fgoogle-mobile-ads-android-migrate-to-next-gen\u002FSKILL.md",true,[],[82,90,97,104,111,118],{"skillNo":83,"name":84,"nameZh":17,"description":85,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":89},"01M7DQ9K7JF4T7NJZ2K1MQZ44Q","cloud-operator-share-context","Shares Google Cloud operating context the user or their team already have — environments, projects, services and regions, product preferences, best practices, architecture guidance, runbooks — found in agent instruction files, local memory, skills and workflows, and the repository's GCP docs, with the operator agent's memory after the user reviews the list. Use when the user runs this skill, accepts the cloud-operator or cloud-operator-setup skill's offer to share their existing Google Cloud context, or asks to share, import or save that context or a GCP fact for the operator agent. Don't use for ordinary GCP requests, which go to the cloud-operator skill.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-share-context\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":91,"name":92,"nameZh":17,"description":93,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":89},"01M7DQ9ERFGGQCFAWQW0KRKYBY","cloud-operator-setup","Sets up the operator agent in a Google Cloud project via the autocloud MCP server: picks the operator project, creates or checks the user's operator agent, saves the project, and offers to share the user's existing Google Cloud operating context with the operator agent's memory. Use when the user runs this skill, asks to set up the operator or create their operator agent, or chooses setup when the cloud-operator skill asks. Don't use for ordinary GCP requests or installing gcloud.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-setup\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":17,"description":100,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":89},"01M7B4RHQCM0DK2XQ7S7ZXVN8D","developer-device-platform-device-run","Runs automated, non-interactive jobs on remote Android devices with Developer Device Platform (DDP) Device Run using `gcloud beta device-run sessions`: native Android executables or shell scripts (for example CLI tools, custom runners, test harnesses or benchmarks) and Android instrumentation tests, on one or many devices, then waits for completion and collects per-device outputs and logs. Use when running a binary or test suite on remote devices without an interactive connection. Don't use it for interactive device reservations, adb tunnels or screen streaming (use developer-device-platform-basics), or for local devices.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fdeveloper-device-platform-device-run\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":17,"description":107,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":89},"01M7B4R9YXMRW7RZP9Q9FMZJ2P","compute-vm-creation","Guides the planning, configuration, and provisioning of standalone Google Compute Engine virtual machines (VMs) and bare metal (-metal) instances using gcloud CLI commands or direct MCP tool execution. Use ONLY when the user wants to create, configure, or provision a new standalone Compute Engine VM or bare metal instance from conversational intents (hardware sizing, region selection, OS image, networking, security defaults). DO NOT read or use for Google Kubernetes Engine (GKE) Autopilot or Standard clusters, Kubernetes node pools or Pods, container orchestration, managing existing VMs, Managed Instance Groups (MIGs), or Instance Templates.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcompute-vm-creation\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":17,"description":114,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":89},"01M7B4QD02N0YBVT0838Z5K5VC","agent-platform-autorater-customization","Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when a user wants a metric tailored to their agent, wants to turn failing trajectories into rubrics, says an existing autorater grades their agent wrong, or wants an autorater to agree with human labels (autorater hillclimbing, judge calibration). Don't use for quick evals with built-in metrics or for improving the agent itself (use agent-platform-eval-flywheel).","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fagent-platform-autorater-customization\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":17,"description":121,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":89},"01M78JP22K73KK96JH0JNDT5C4","iap-agent-platform-troubleshooting","Diagnoses Identity-Aware Proxy (IAP) denials of outbound requests from Gemini Enterprise Agent Platform agents that run on Agent Runtime and send traffic through Agent Gateway. Use when an agent request fails with \"Egress request is not authorized\", when Cloud Audit Logs show an IAP egressViaIAP decision with granted false, when IAP audit entries are missing while debugging agent egress, or when Access policies, IAP allow policies, policy bindings, or Agent Registry entries might block agent egress. Don't use for Gemini model IAM permission errors (such as aiplatform.endpoints.predict), Agent Platform API errors, or Agent Runtime deployment or 500 errors (use agent-platform-troubleshooting instead). Don't use for setting up, creating, or connecting an Agent Gateway, or for IAP web apps, IAP TCP forwarding, or SSH.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002FSKILL.md",[],[]]