Difference between revisions of "Ads:checkConsent"

From GiderosMobile
 
Line 9: Line 9:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
The '''parameters''' table is mandatory and can contain the following fields:<br/>
+
The '''parameters''' table is mandatory and can contain the following fields:
- '''reset''': (boolean) Reset saved consent information, for testing purposes<br/>
+
*'''reset''': (boolean) reset saved consent information, for testing purposes
- '''underAge''': (boolean) Tells if the user is under age as per the Ad engine guidelines<br/>
+
*'''underAge''': (boolean) tells if the user is under age as per the Ad engine guidelines
  
 
=== Parameters ===
 
=== Parameters ===
Line 17: Line 17:
  
 
=== Return values ===
 
=== Return values ===
'''Returns''' (boolean) ''true'' if consent flow is supported and if an [[Event.AD_CONSENT]] event will be triggered, ''false'' otherwise.
+
'''Returns''' (boolean) ''true'' if consent flow is supported and if an [[Event.AD_CONSENT]] event will be triggered, ''false'' otherwise<br/>
  
 
{{Ads}}
 
{{Ads}}

Latest revision as of 03:44, 16 February 2025

Available since: Gideros 2023.8
Class: Ads

Description

Triggers consent check and flow, if any supported by the Ad engine.

Ads:checkConsent(parameters)

The parameters table is mandatory and can contain the following fields:

  • reset: (boolean) reset saved consent information, for testing purposes
  • underAge: (boolean) tells if the user is under age as per the Ad engine guidelines

Parameters

parameters: (table) consent options

Return values

Returns (boolean) true if consent flow is supported and if an Event.AD_CONSENT event will be triggered, false otherwise