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

Skill · 已公开版本

google-mobile-ads-interstitial · Google 移动广告插页式广告接入

指导在 Android、iOS 或 Unity 应用中接入 Google Mobile Ads SDK 插页式广告,按平台参考文档完成加载、事件回调注册、展示与验证。

先看看示例

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

输入

在 Android 应用的关卡结束页接入插页式广告,先加载广告并注册回调,再在自然过渡点展示。

输出

预期交付:插页式广告的加载、回调注册与展示实现代码及验证结果。(编辑说明,非实际运行结果)

方法说明

---
name: google-mobile-ads-interstitial
description: >-
  Provides instructions for implementing, integrating, or configuring Google
  Mobile Ads (GMA) SDK interstitial ads in Android, iOS, or Unity mobile
  applications. Use when the task involves setting up interstitial ads. Don't
  use for "rewarded interstitial" ads.
metadata:
  version: "1.1.0"
  category: GoogleAds
---
# Google Mobile Ads SDK - Interstitial Ads

Interstitial ads show full-page ads for users on mobile apps. Interstitial ads
are designed to be placed between content and are best placed at natural app
transition points.

## 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-interstitial.md`
    -   iOS: `references/ios-interstitial.md`
    -   Unity: `references/unity-interstitial.md`

3.  **Follow these steps in order**:
    -   [ ] Load the ad
    -   [ ] Register for ad event callbacks
    -   [ ] Show the ad
    -   [ ] Verify the implementation