In order to achieve this, the AMP tag needs to be modified like this:
<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 in web, but with a difference, the added format parameter: