Security, Privacy, AI and CSR information for all Piano products now lives in one place. Explore our Compliance Center.
Audience
English French
English French

How to pull Audience segments and send them to an Ad Manager for AMP pages

In order to achieve this, the AMP tag needs to be modified like this:

XML
<amp-ad
    width=<WIDTH>
    height=<HEIGHT>
    type="<AD_PARTNER>"
    data-slot="<AD_SLOT>"
    rtc-config='{
        "urls": [
            "https://api.cxense.com/persisted/execute?persisted=<PERSISTED_REQUEST_ID>&json=%7B%22identities%22%3A%5B%7B%22id%22%3A%22CLIENT_ID(cX_P)%22%2C%22type%22%3A%22cx%22%7D%5D%7D"
        ],
        "timeoutMillis": 999
    }'
></amp-ad>

​Where the PERSISTED_REQUEST_ID is replaced with a dedicated persisted request for AMP, similar to the one used on the web, but with a difference: the added format parameter:

query1.png

Last updated: