Return to the article: Advertiser HTML-Code| Insert and test placeholder
These macros specify where in the URL to insert and forward the TC string, and allow you to determine which providers are present.
IAB TCF Macro (Platzhalter) | Entsprechung in AdSpirit | Beschreibung |
${GDPR} | %gdpr% | DSGVO / GDPR be applied to the user (1) or not (0) |
${GDPR_CONSENT_NUMMER} | %gdpr_consent% | Consent string of IAB CMP Framework |
You can leave the macro (placeholder) ${GDPR} unchanged in your codes, as AdSpirit performs the replacement here in the background.
For the macro (placeholder) ${GDPR_CONSENT_NUMMER} iit is necessary to make an adjustment manually.
Anbieter | IAB TCF Macro |
Criteo SA | ${GDPR_CONSENT_91} |
Xandr | ${GDPR_CONSENT_32} |
Smart Adserver | ${GDPR_CONSENT_45} |
etc.
Example:
NUMBER we replaced for our example with ID 91 (Criteo SA).
The macro will look like this ${GDPR_CONSENT_91} ,when you receive the code from your customer.
<ins class='dcmads' style='display:inline-block;width:300px;height:250px'
data-dcm-placement='N1275360.133426BEISPIEL.DE/B26182772.308414046'
data-dcm-rendering-mode='iframe'
data-dcm-https-only
data-dcm-gdpr-applies='gdpr=${GDPR}'
data-dcm-gdpr-consent='gdpr_consent=${GDPR_CONSENT_91}'
data-dcm-addtl-consent='addtl_consent=${ADDTL_CONSENT}'
data-dcm-ltd='false'
data-dcm-resettable-device-id=''
data-dcm-app-id=''>
<script src='https://www.googletagservices.com/dcm/dcmads.js'></script>
</ins>
Adjustment variant 1
Here you adjust the placeholder by taking away the _NUMBER and leaving only ${GDPR_CONSENT}. Now your AdServer will automatically replace the macro (placeholder) with the information available in your AdServer, if it is available:
<ins class='dcmads' style='display:inline-block;width:300px;height:250px'
data-dcm-placement='N1275360.133426BEISPIEL.DE/B26182772.308414046'
data-dcm-rendering-mode='iframe'
data-dcm-https-only
data-dcm-gdpr-applies='gdpr=${GDPR}'
data-dcm-gdpr-consent='gdpr_consent=${GDPR_CONSENT}>'
data-dcm-addtl-consent='addtl_consent=${ADDTL_CONSENT}'
data-dcm-ltd='false'
data-dcm-resettable-device-id=''
data-dcm-app-id=''>
<script src='https://www.googletagservices.com/dcm/dcmads.js'></script>
</ins>
Adjustment variant 2
AdSpirit's own placeholder is used here %gdpr_consent%:
<ins class='dcmads' style='display:inline-block;width:300px;height:250px'
data-dcm-placement='N1275360.133426BEISPIEL.DE/B26182772.308414046'
data-dcm-rendering-mode='iframe'
data-dcm-https-only
data-dcm-gdpr-applies='gdpr=${GDPR}'
data-dcm-gdpr-consent='gdpr_consent=%gdpr_consent%'
data-dcm-addtl-consent='addtl_consent=${ADDTL_CONSENT}'
data-dcm-ltd='false'
data-dcm-resettable-device-id=''
data-dcm-app-id=''>
<script src='https://www.googletagservices.com/dcm/dcmads.js'></script>
</ins>
Here you don't need to do any customization, because this particular macro is automatically replaced by your AdServer in the background with %gdpr_consent%