AMP components can block their loading until consent is accepted, until any consent choice is made (if required), or if consent is required but unknown. In addition, you can configure timeout with fallback behaviors
The following table indicates what InMobi CMP sends for consent required and the consent states, based on InMobi CMP configuration, location, and user behavior.
Certain ad vendors support real-time configuration (for the full list of supported vendors, see Supported Vendors. If you’re using amp-ad
and your vendor is one of these listed vendors, you can use the CONSENT_STRING
and CONSENT_STATE
macros to add that information to the request URL. For more information on how to do that, see AMP Consent Integration.
If your vendor needs access to the consent string but doesn’t support real-time configuration, you can check the window.context.initialConsentValue
key that stores the full TCString
, or check the window.context.initialConsentState
which stores the AMP consent state value (either 1 or 0) within your JavaScript code.
To block components, either add the data-block-on-consent
attribute to the AMP component or add the amp-consent-blocking
meta tag with the list of extensions to block.
Blocking the analytics until user accepts consent
<amp-analytics data-block-on-consent type="googleanalytics"> </amp-analytics>
<meta name="amp-consent-blocking" content="amp-analytics,amp-ad" />
By installing this SDK update, you agree that your Children Privacy Compliance setting remains accurate or that you will update that setting, whenever there is a change in your app's audience. You may update the app's Children Privacy Compliance settings at https://publisher.inmobi.com/my-inventory/app-and-placements.