跳到主要内容
哒哒星球DADA PLANET

Skill · 已公开版本

google-mobile-ads-validate · Google Mobile Ads 集成校验

校验 iOS、Android 或 Unity 项目的 Google Mobile Ads SDK 集成,可做完整上线前审计,也可只检查广告单元、SKAdNetwork、中介适配器等单项。

先看看示例

作者提供的示例,实际效果取决于你的输入和使用工具。

输入

对准备上线的 Android 项目做完整审计,检查是否残留测试应用 ID 与测试广告单元,并核对 SKAdNetwork ID。

输出

预期交付:Markdown 校验报告表格,逐项列出检查项、状态(Pass、Warning、Fail、N/A)、发现与后续步骤。(编辑说明,非实际运行结果)

方法说明

---
name: google-mobile-ads-validate
description: >-
  Validates a project's Google Mobile Ads (GMA) SDK integration for iOS,
  Android, or Unity projects. Use when conducting a full pre-launch audit of an
  app that integrates GMA SDK or when validating any individual GMA SDK
  integration checks, such as when validating ad unit IDs and ad formats,
  SKAdNetwork IDs, mediation adapter SDK version compatibility, or ad
  preloading.
metadata:
  version: "1.0.0"
  category: GoogleAds
---

# Validate Google Mobile Ads SDK Integration

Validate a project's Google Mobile Ads (GMA) SDK integration either as a
complete audit or for specific requested checks.

-   **Full Audit**: If the user requests a general validation or full audit,
    evaluate all checklist items.
-   **Specific Checks**: If the user asks to validate only a specific area
    (e.g., ad preloading), evaluate only the relevant check(s) without running
    the entire checklist.

## Scoring Rules

For each check, apply one of the following statuses:

-   **Pass**: None of the Warning, Fail, or N/A criteria are met.
-   **Warning**, **Fail**, or **N/A**: The conditions described under each
    respective status are met.

## Validation Checklist

Read the reference guide for each check to be performed:

-   No test application ID is in the project, format correct:
    `references/application-id.md`
-   No test ad units are in the project, format correct:
    `references/ad-units.md`
-   Implemented all Google SKAdNetwork IDs:
    `references/google-skadnetwork-ids.md`
-   Mediation adapter compatibility:
    `references/mediation-adapter-compatibility.md`
-   Ad preloading validation checks: `references/ad-preloading.md`

## Final Output

Generate a Markdown report following the format below. **ONLY** include the
findings for items that were actually checked.

| Check | Status | Findings | Next Steps |
| :--- | :---: | :--- | :--- |
| No test application ID is in the project, format correct | {{status_1}} | {{findings_1}} | {{next_steps_1}} |
| No test ad units are in the project, format correct | {{status_2}} | {{findings_2}} | {{next_steps_2}} |
| Implemented all Google SKAdNetwork IDs | {{status_3}} | {{findings_3}} | {{next_steps_3}} |
| Mediation adapter compatibility | {{status_4}} | {{findings_4}} | {{next_steps_4}} |
| Ad preloading validation checks | {{status_5}} | {{findings_5}} | {{next_steps_5}} |