google-mobile-ads-android-migrate-to-next-gen

google-mobile-ads-android-migrate-to-next-gen is a skill for Claude Code, Codex from hamzabellouch/agent-skills. It costs 105 tokens per session (4,307 once invoked), scanned A, a copy of google-mobile-ads-android-migrate-to-next-gen, MIT.

A migration guide for replacing the older Google Mobile Ads library in an Android app with Google's newer advertising library. Migration means changing project dependencies and source code to use the newer interface.

In plain words
What is it for?
Updating Gradle dependencies, raising Android SDK requirements, excluding old libraries, refactoring imports and method calls, and checking the result with a build.
Why use it?
It maps old package names, classes, and methods to their replacements and lists build changes that help avoid compatibility and duplicate-code errors.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Updating Gradle dependencies, raising Android SDK requirements, excluding old libraries, refactoring imports and method calls, and checking the result with a build.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzabellouch/agent-skills/google-mobile-ads-android-migrate-to-next-gen
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hamzabellouch/agent-skills --skill google-mobile-ads-android-migrate-to-next-gen
Clone the repo
git clone --depth 1 https://github.com/hamzabellouch/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for google-mobile-ads-android-migrate-to-next-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/google-mobile-ads-android-migrate-to-next-gen/github.svg)](https://agentmods.dev/skills/hamzabellouch/agent-skills/google-mobile-ads-android-migrate-to-next-gen)
Your own site
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/google-mobile-ads-android-migrate-to-next-gen"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/google-mobile-ads-android-migrate-to-next-gen/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for google-mobile-ads-android-migrate-to-next-gen

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/google-mobile-ads-android-migrate-to-next-gen"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/google-mobile-ads-android-migrate-to-next-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,307 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.04307
Opus 5 $0.00053 $0.02153
Sonnet 5 $0.00021 $0.00861
Haiku 4.5 $0.00011 $0.00431

Measured 12d ago against content hash e8a1e910b87e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

google-mobile-ads-android-migrate-to-next-gen scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sS https://dl.google.com/dl/android/maven2/com/google/android/libraries/ads/mobile/sdk/ads-mobile-sdk/maven-metadata.xml | sed -n 's/.*<latest>\(.*\)<\/latest>.*/\1/p'
Origin

This is a copy

100% identical to google-mobile-ads-android-migrate-to-next-gen — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

AI API and Agent Platform/google-mobile-ads-android-migrate-to-next-gen/SKILL.md · 197 lines

How it starts

The opening of the file, as written. The whole thing — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

      curl -sS https://dl.google.com/dl/android/maven2/com/google/android/libraries/ads/mobile/sdk/ads-mobile-sdk/maven-metadata.xml | sed -n 's/.*<latest>\(.*\)<\/latest>.*/\1/p'
      
    • Update minSdk (24+) and compileSdk (34+).

    • Exclude play-services-ads and play-services-ads-lite from all dependencies globally in the app-level build file to avoid duplicate symbol errors.

    • Sync Gradle before moving on to the next step.

  • Per-File Migration:
    • Refactor the codebase following the API Mapping and Method Mapping tables to migrate imports, class names, and method signature to GMA Next-Gen SDK.
  • Verify and Build:
    • Run gradle build -x test to confirm a successful clean build. Resolve any GMA SDK related compile errors.

Core Migration Rules

  • App ID Usage: Always use the value of the com.google.android.gms.ads.APPLICATION_ID meta-data tag from AndroidManifest.xml for the applicationId in InitializationConfig.
    • Constraint: Preserve the <meta-data> tag in the manifest; it is still required for publishers using the User Messaging Platform SDK.
  • Initialization Sequence:
    1. Call MobileAds.initialize() on a background thread.
    2. Ensure initialize() is called before any other SDK methods.
    3. If using RequestConfiguration, bundle it into InitializationConfig.Builder.setRequestConfiguration(). Do not call MobileAds.setRequestConfiguration() before initialization.
  • UI Threading: MANDATORY: Callbacks in GMA-Next Gen SDK are invoked on a background thread. ALL UI-RELATED OPERATIONS (e.g., Toasts, View updates, Fragment transactions) MUST be wrapped in runOnUiThread {} or Dispatchers.Main.launch {} within GMA SDK callbacks. SKIPPING THIS STEP WILL CAUSE THE APPLICATION TO CRASH.
  • Mediation: Classes implementing com.google.android.gms.ads.mediation.Adapter MUST continue using com.google.android.gms.ads.

Read the full file on GitHub · 197 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 197 lines · 105 tokens per session scan A e8a1e910b87e

Subscribe to this mod's changes

google-mobile-ads-android-migrate-to-next-gen is a skill published in the GitHub repository hamzabellouch/agent-skills (4 stars, last pushed 1mo ago), licensed MIT. It adds 105 tokens to every session and 4,307 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to google-mobile-ads-android-migrate-to-next-gen, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

flutter-codestyle

Custom Instructions: Senior Flutter & Dart Engineer.

GulajavaMinistudio/awesome-copilot-id · 13 tokens

android-jetpack-compose-expert

Expert guidance for building modern Android UIs with Jetpack Compose, covering state management, navigation, performance, and Material Design 3.

sickn33/agentic-awesome-skills · 35 tokens

cometchat-android-v6-kotlin-placement

Where the CometChat Android v6 chat UI goes in a Kotlin XML Views app — the default conversations→message Activity flow, growing to the tab-based app (chats/users/groups/calls + detail, thread and search screens + incoming calls), a single one-to-one screen, or chat embedded in an existing Activity/Fragment, with a…

cometchat/cometchat-skills · 127 tokens

swiftui-view-architect

Refactor oversized SwiftUI view files into stable, dedicated subviews with MV-first data flow, explicit dependencies, extracted actions, and correct Observation usage.

Xopoko/build-swift-apps · 36 tokens

tauri-expert

Expert skill for Tauri (v2) development, Rust backend, IPC, and security / Panduan ahli untuk pengembangan Tauri v2, Rust backend, IPC, dan keamanan.

roedyrustam/vibes-plug · 43 tokens

bootstrap-ios

Bootstrap agents for iOS, iPadOS, macOS, Swift, SwiftUI, SwiftData/Core Data, Swift Testing, Xcode build/test/debug, Simulator, App Intents, or XcodeBuildMCP work. Use before building, fixing, refactoring, QAing, or setting up Apple-platform repos, and when asked to load/install Ray's iOS skills or bootstrap iOS.

RayFernando1337/rayfernando-skills · 84 tokens