google-mobile-ads-get-started
Provides instructions for integrating the Google Mobile Ads (GMA) SDK. Use this skill when the user wants to get started with, install, integrate, set up, or configure the SDK for AdMob or Ad Manager, GMA Next-Gen SDK or mobile ads framework in an Android, iOS, or Unity application.
摘要
- 用途
- 引导开发者依平台设置 Google Mobile Ads SDK,从加入 SDK 到确认集成完成。
- 使用时机
- 在已确认 Android、iOS 或 Unity 项目的平台,且需要依序完成 SDK 安装时使用。
- 输出结果
- 完成并验证 SDK 相依套件、应用程序识别码与初始化设置,接着请用户选择广告格式。
上游变更(6 条,最新收录 2026-09-22)
f36c9eb Inline SKAdNetworkIDs to google-mobile-ads-get-started skill 将技能描述改为折叠式 YAML 区块,并将中继数据版本从 1.1.0 更新为 1.2.0。 703f8d2 Move ads skills from per-product subdirectories to top-level skills/ads/ directory. 将内容未变的技能文件从嵌套的 google-mobile-ads 目录移至顶层 ads 技能目录。 c75b500 Restructure the YAML frontmatter in all SKILL.md files to nest the 'category' field under the 'metadata:' block. The 'category' field is used to organize the skills in the README.md 在前置数据的 metadata 区块中添加 GoogleAds 类别,并移除标题前的空白行。 c768bfa Add Unity support to the google-mobile-ads-get-started skill 此技能现在支持 Unity、在工作流程中加入 Unity 入门指南,并将中继数据版本更新为 1.1.0。 b13a5a1 Add new skills for Google Advertising and Measurement. 添加初版 Google Mobile Ads 设置技能,提供 Android 与 iOS 指引及有顺序的 SDK 集成工作流程。 npx skills add "lettucebo/Skills#v2.2.0@google-mobile-ads-get-started" --full-depth ⚠ v2.2.0 发布后即可使用
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.md - iOS:
references/ios-get-started.md - Unity:
references/unity-get-started.md
- Android:
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.