Google Mobile Ads Get Started
GoogleOfficialPublished by Google
- Skill
- Tool integration
- Software development
- Apache-2.0
- Low risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured workflow for installing and configuring the Google Mobile Ads (GMA) SDK. It guides developers through platform-specific setup requirements for Android, iOS, and Unity, ensuring the SDK is correctly initialized and integrated for AdMob or Ad Manager services.
What it does
- Identifies the target mobile platform (Android, iOS, or Unity).
- Provides instructions to fetch the latest SDK version for the chosen platform.
- Guides the configuration of application identifiers and project settings.
- Outlines the initialization process for the GMA SDK.
- Includes steps to verify the integration through build checks.
- Prompts the user to select an ad format once installation is complete.
When to use it
- When you need to integrate mobile advertising into a new or existing mobile application.
- When setting up AdMob or Ad Manager for the first time.
- When you need to configure the GMA Next-Gen SDK for Android.
- When you need to add the Google Mobile Ads Swift package to an iOS project.
Advantages
- Provides platform-specific guidance for Android, iOS, and Unity.
- Ensures consistent setup by following a defined sequence of steps.
- Includes automated checks for fetching the latest SDK versions.
- Helps avoid common integration pitfalls like duplicate dependencies.
Usage examples
- “How do I get started with Google Mobile Ads in my Android app?”
- The agent will guide you through adding the SDK dependency, configuring minSdk/compileSdk, setting the application ID, and initializing the SDK on a background thread.
- “Help me set up the Google Mobile Ads SDK for my iOS project.”
- The agent will check for Ruby/xcodeproj availability to automate the Swift Package Manager installation or provide manual instructions if necessary.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/google/google-mobile-ads-get-started/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip google-mobile-ads-get-started.zip -d .agents/skills
Documentation by Google
Google Mobile Ads SDK - Install
Workflow
Determine the user's platform: Identify if the project is Android, iOS, or Unity. If unclear, ask before proceeding.
Read the platform guide for implementation details:
Android:
references/android-get-started.mdiOS:
references/ios-get-started.mdUnity:
references/unity-get-started.md
Follow these steps in order:
[ ] Add the SDK dependency
[ ] Set the application identifier
[ ] Initialize the SDK
[ ] Verify the integration
After the SDK is successfully installed, ask the user to select an ad format to continue the integration.
Files
- ATTRIBUTION.mdAdded by AutoGineer874 B
- LICENSELicence file added by AutoGineer11.1 KiB
- SKILL.md1.0 KiB
- references/android-get-started.md2.8 KiB
- references/ios-get-started.md9.5 KiB
- references/unity-get-started.md2.8 KiB
references/unity-get-started.md
AI Integration Agent Instructions for the Unity Google Mobile Ads Plugin
SDK Integration Workflow
Add the SDK dependency:
Install via
Packages/manifest.json:Run the following command to fetch the latest version. The tag returned (excluding the 'v' prefix) is the latest version of the Google Mobile Ads SDK:
curl -sS https://api.github.com/repos/googleads/googleads-mobile-unity/releases/latest | jq -r '.tag_name'Modify
Packages/manifest.jsonwith the "OpenUPM" scoped registry, using the latest version.{ "scopedRegistries": [ { "name": "OpenUPM", "url": "https://package.openupm.com", "scopes": [ "com.google" ] } ], "dependencies": { // Replace 11.2.0 with the latest stable version. "com.google.ads.mobile": "11.2.0" } }
Set the application identifier:
Modify
Assets/GoogleMobileAds/Resources/GoogleMobileAdsSettings.asset. SetadMobAndroidAppIdandadMobIOSAppIdto the sample App IDs:Android:
ca-app-pub-3940256099942544~3347511713iOS:
ca-app-pub-3940256099942544~1458002511
Remind the user to replace it with their actual AdMob App ID before publishing.
Initialize the SDK:
Write a script to handle initialization. Ensure background ad callbacks interacting with Unity objects (
UnityEngine) are explicitly scheduled on the main thread usingExecuteInUpdate().Do not set
MobileAds.RaiseAdEventsOnUnityMainThreadtotrue, it is obsolete.using GoogleMobileAds.Api; using GoogleMobileAds.Common; using UnityEngine; public class GoogleMobileAdsController : MonoBehaviour { public void Start() { // Initialize the Google Mobile Ads SDK exactly once. MobileAds.Initialize((InitializationStatus initStatus) => { Debug.Log("Google Mobile Ads SDK initialized."); MobileAdsEventExecutor.ExecuteInUpdate(() => { // Interact with UnityEngine objects on the main thread here. }); }); } }Verify the integration:
Compile the Unity csproj file by running
dotnet build. Resolve any GMA SDK related compile errors.
Links
Additional documentation and guides:
Quick Start Guide: https://developers.google.com/admob/unity/quick-start.md.txt
Global Settings Guide: https://developers.google.com/admob/unity/global-settings.md.txt
OpenUPM Package: https://openupm.com/packages/com.google.ads.mobile/
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
What our scanner noticed· Low risk
- Instructions that use the network
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- Publisher
- Google (Official)
- Source
- google/skills · skills/ads/google-mobile-ads-get-started · commit 2194d3b
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Google.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download google-mobile-ads-get-started.zip