...
AdConsent can be shown to the users in four main presentations for the GDPR CMP: popup, banner, full-screen (desktop devices), and AMP (full-screen for mobile AMP devices). While popup is the default presentation for the CMP, a full-screen presentation may be better for, e.g., mobile devices, or a banner mode for a different kind of visual integration with the page. These kind kinds of changes in the CMP GUI can be made by using the setUiMode
function which is available under the GDPR adconsent.gdpr()
API.
...
A banner mode appearance (mode 1) is shown below. To accomplish such a presentation, one needs to configure AdConsent using setUiMode
function with value 1
.
...
The image below shows the full-screen mode appearance (mode 2). For this mode to be shown, setUiMode
configuration should be set with value 2
in AdConsent.
...
This last image shows the full-screen mode appearance in AMP mobile devices (mode 3). This mode is the default one in AMP pages.
...