Skip to content
Francisco Dias edited this page Jul 29, 2026 · 15 revisions

AdMob

Extension's Features

  • Initialize the Google Mobile Ads SDK
  • Show banner, interstitial, rewarded video, rewarded interstitial, and app open ads
  • Request and read the user's consent status (GDPR/CCPA) via Google's User Messaging Platform
  • Target ads by COPPA/under-age/max content rating
  • Track ad revenue via a shared paid-event stream
  • Configure server-side reward verification and app-wide ad volume

Introduction

This extension wraps Google's Mobile Ads SDK for Android and iOS. Call admob_initialize once, before any other function (other than the targeting functions and admob_set_test_device_id, which must be called before initialization). Every function that talks to Google's servers reports its outcome asynchronously through a callback carrying a AdMobResult - check result.success before trusting the rest of the payload.

Interstitial, rewarded video, and rewarded interstitial ads share the same load/show shape: loading produces a handle you hold onto, then showing consumes that handle. Multiple ads can be pre-loaded at once by holding several handles. Banner and app open ads work differently - there is only ever one instance of each, so no handles are involved.

Guides

Guides for the AdMob extension.

Modules

The following are the available modules for the AdMob extension:



Clone this wiki locally