admob.getConsentFormStatus()

Type Function
Return value none
Revision Release 2024.3703
Keywords ads, advertising, AdMob, hide
See also admob.loadConsentForm()
admob.*

Overview

Returns two Strings formStatus and consentStatus

formStatus can be "available", "unavailable", or "unknown"

consentStatus can be "obtained", "required", "notRequired", or "unknown"

Syntax

admob.getConsentFormStatus()

Example

local admob = require( "plugin.admob" )


-- Initialize the AdMob plugin

local function adListener( event )

end

admob.init( adListener, { appId="YOUR_ADMOB_APP_ID" } )

local formStatus, consentStatus = admob.getConsentFormStatus()
print("Form Status:".. formStatus .."  Consent Status: "..consentStatus)