Configure InMobi CMP Tag

  1. Navigate to General Settings in the Create/edit a site page. Configure your site as an AMP Site.

  2. To configure a site with both regular HTML and AMP pages, you must create two sites in the portal, with the "AMP site" formed by adding an "/amp" path to the URL. For example: my-site.com (regular website) and my-site.com/amp (AMP-powered site).
  3. After you configure your AMP site, get the AMP tag by selecting the Get AMP Tag on the More Options menu of your site entry in the properties list:

    This will display "Your Choice AMP" modal from where you can copy the complete AMP tag (<amp-consent> tag, including the configuration JSON, and the <amp-geo> configuration, if applicable). You can paste this at the top of the &lt;body&gt; section of your AMP page.

    Note

    The entire configuration for the CMP is contained within this tag. If you update the configuration, you must update the tag on the AMP page. Future versions of the CMP will support portal configuration of AMP pages, eliminating this copy-paste operation.

<!-- INMOBI CMP -->
<amp-consent id="inmobi" layout="nodisplay">
  <script type="application/json">
    {
      "consentInstanceId": "inmobi",
      "checkConsentHref": "https://api.cmp.inmobi.com/amp/check-consent",
      "consentRequired": "remote",
      "promptUISrc": "https://cmp.inmobi.com/tcfv2/amp.html",
      "clientConfig": {
        "coreConfig": {
          "vendorPurposeLegitimateInterestIds": [
            2,
            7,
            8,
            10,
            9,
            11
          ],
          "publisherPurposeIds": [],
          "publisherSpecialPurposesIds": [],
          "publisherFeaturesIds": [],
          "stacks": [
            1,
            42
          ],
          "publisherLIRestrictionIds": [],
          "inmobiAccountId": "8F9Dnv0Zkrjf5",
          "vendorSpecialPurposesIds": [
            1,
            2
          ],
          "initScreenBodyTextOption": 1,
          "publisherConsentRestrictionIds": [],
          "vendorPurposeIds": [
            2,
            4,
            6,
            7,
            9,
            10,
            1,
            3,
            5,
            8,
            11
          ],
          "totalVendors": 1420,
          "lang_": "en",
          "privacyMode": ["GDPR"],
          "publisherPurposeLegitimateInterestIds": [],
          "hashCode": "SVn/kb0mxZsHKQ597ZCqoQ",
          "vendorSpecialFeaturesIds": [
            1,
            2
          ],
          "displayUi": "always",
          "publisherSpecialFeaturesIds": [],
          "googleEnabled": false,
          "vendorListUpdateFreq": 30,
          "publisherCountryCode": "GB",
          "vendorFeaturesIds": [
            1,
            2,
            3
          ],
          "gvlVersion": 3
        },
        "coreUiLabels": {},
        "theme": {},
        "tagVersion": "V3"
      }
    }
  </script>
</amp-consent>
<!--END INMOBI CMP -->  

On This Page

Last Updated on: 05 May, 2024