Type Function Return value none Revision Release 2025.3714 Keywords ads, advertising, AdMob, hide See also admob.loadConsentForm() admob.*
This function updates Consent Manager with information that helps determine if a message needs to be displayed.
admob.updateConsentForm( [options] )
Table. Table containing additional parameters for the specified ad type — see the next section for details.
The options
table includes parameters
boolean, set tag for under the age of consent. True means users are underage.
Table, accepts geography
and testDeviceIdentifiers
fields. The geography
valid types are "EEA"
, "notEEA"
, "disabled"
. The testDeviceIdentifiers
takes an Array of Strings of the Test Devices Hash Id.
local admob = require( "plugin.admob" ) local function adListener( event ) end -- Initialize the AdMob plugin admob.init( adListener, { appId="YOUR_ADMOB_APP_ID" } ) admob.updateConsentForm({ underage=true, debug={ geography = "EEA", testDeviceIdentifiers={"Your-Device-Hash"} } })