先看看示例
作者提供的示例,实际效果取决于你的输入和使用工具。
输入
在 Android 项目中接入 GMA SDK:先添加依赖并设置应用 ID,再完成初始化,最后按检查清单验证集成是否成功。
输出
预期交付:按顺序完成的 SDK 依赖添加、应用标识设置、SDK 初始化与集成验证结果,随后进入广告格式选择。(编辑说明,非实际运行结果)
方法说明
---
name: google-mobile-ads-get-started
description: >-
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.
metadata:
version: "1.2.0"
category: GoogleAds
---
# Google Mobile Ads SDK - Install
## Workflow
1. **Determine the user's platform**: Identify if the project is Android, iOS,
or Unity. If unclear, ask before proceeding.
2. **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`
3. **Follow these steps in order**:
- [ ] Add the SDK dependency
- [ ] Set the application identifier
- [ ] Initialize the SDK
- [ ] Verify the integration
4. After the SDK is successfully installed, ask the user to select an ad format
to continue the integration.