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://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/ios-get-started.md
AI Integration Agent Instructions for the iOS Google Mobile Ads SDK
Gotchas
Use Swift Package Manager to install the Google Mobile Ads SDK.
Google Mobile Ads SDK uses
NS_SWIFT_NAMEmacros to provide idiomatic Swift names.
SDK Integration Workflow
Add the SDK dependency:
[ ] [ ] Run the following command to fetch the latest version. The tag returned is the latest version of the Google Mobile Ads SDK:
curl -sS https://api.github.com/repos/googleads/swift-package-manager-google-mobile-ads/releases/latest | jq -r '.tag_name'[ ] [ ] Check if Ruby is installed and the
xcodeprojRuby gem is available by runningruby -e "require 'xcodeproj'".If Ruby and
xcodeprojare available: Locate the.xcodeprojdirectory and primary app target, then write a temporary Ruby script to programmatically add theGoogleMobileAdsSwift Package (https://github.com/googleads/swift-package-manager-google-mobile-ads.git) using the Up to Next Major Version dependency rule starting with the fetched version as a target dependency.Fallback / Manual Installation: If Ruby or
xcodeprojis not available, or if the script execution fails, do NOT attempt to troubleshoot, retry, install Ruby orxcodeproj, or suggest CocoaPods. You MUST default to outputting instructions directing the user to manually add theGoogleMobileAdsSwift package in Xcode.
Set the application identifier:
[ ] [ ] If there is no
GADApplicationIdentifieralready present, add theGADApplicationIdentifierto theInfo.plistfile with a sample AdMob App ID ofca-app-pub-3940256099942544~1458002511. Remind the user to replace it with their actual AdMob App ID before publishing.[ ] [ ] Add the following
SKAdNetworkidentifiers to theInfo.plistfile:<key>SKAdNetworkItems</key> <array> <dict> <key>SKAdNetworkIdentifier</key> <string>cstr6suwn9.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>4fzdc2evr5.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>2fnua5tdw4.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>ydx93a7ass.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>p78axxw29g.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>v72qych5uu.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>ludvb6z3bs.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>cp8zw746q7.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>3sh42y64q3.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>c6k4g5qg8m.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>s39g8k73mm.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>wg4vff78zm.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>3qy4746246.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>f38h382jlk.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>hs6bdukanm.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>mlmmfzh3r3.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>v4nxqhlyqp.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>wzmmz9fp6w.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>su67r6k2v3.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>yclnxrl5pm.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>t38b2kh725.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>7ug5zh24hu.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>gta9lk7p23.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>vutu7akeur.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>y5ghdn5j9k.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>v9wttpbfk9.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>n38lu8286q.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>47vhws6wlr.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>kbd757ywx3.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>9t245vhmpl.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>a2p9lx4jpn.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>22mmun2rn5.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>44jx6755aq.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>k674qkevps.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>4468km3ulz.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>2u9pt9hc89.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>8s468mfl3y.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>klf5c3l5u5.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>ppxm28t8ap.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>kbmxgpxpgc.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>uw77j35x4d.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>578prtvx9j.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>4dzt52r2t5.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>tl55sbb4fm.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>c3frkrj4fj.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>e5fvkxwrpn.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>8c4e2ghe7u.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>3rd42ekr43.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>97r2b46745.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>3qcr597p9d.skadnetwork</string> </dict> </array>
Initialize the SDK:
[ ] [ ] Initialize the SDK in the appropriate entry point of the application. You MUST use the following code snippet when working with Swift:
MobileAds.shared.start { status in print("SDK initialized.") }
Verify the integration:
[ ] Verify the build to ensure there are no compile errors:
When
xcodebuildis available: Runxcodebuildto programmatically verify that the iOS project compiles properly with the GMA SDK. Resolve any GMA SDK related compile errors.When
xcodebuildis NOT available: Output instructions directing the user to build the project in Xcode and manually verify there are no compile errors.
Links
Additional documentation:
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 or Google.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download google-mobile-ads-get-started.zip