Type Function Return value none Revision Release 2024.3703 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.
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"} } })