AMP environment - Technical Requirements
Pubstack Node is compatible with AMP (Accelerated Mobile Pages) environments through the use of the AMP Real Time Config (RTC) protocol. This integration enables server-side header bidding on AMP page
1
2
Cookie Synchronization (User Sync)
<amp-iframe
width="1"
height="1"
title="User Sync"
sandbox="allow-scripts allow-same-origin"
frameborder="0"
src="https://acdn.adnxs.com/prebid/amp/user-sync/load-cookie-with-consent.html?endpoint=https%3A%2F%2Fprebid-server.pbstck.com%2Fcookie_sync&max_sync_count=8&source=amp&bidders=pubstack&args=account:00000000-0000-0000-0000-000000000000">
<amp-img
layout="fill"
src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="
placeholder
></amp-img>
</amp-iframe>3
Tag amp-ad Configuration
<amp-ad
width="300"
height="250"
type="doubleclick"
data-slot="/NETWORK_ID/ad-unit-path"
rtc-config='{
"urls": [
"https://prebid-server.pbstck.com/openrtb2/amp?tag_id=PUBSTACK_ADUNIT_NAME&w=ATTR(width)&h=ATTR(height)&slot=ATTR(data-slot)&curl=CANONICAL_URL&timeout=TIMEOUT&account_id=PUBSTACK_SITE_ID&gdpr_applies=CONSENT_METADATA(gdprApplies)&consent_type=CONSENT_METADATA(consentStringType)"
],
"timeoutMillis": 800
}'
></amp-ad>RTC-Config Parameters Reference
Query param
Designation
Description
Full Example
<amp-ad
width="300"
height="250"
type="doubleclick"
data-slot="/NETWORK_ID/ad-unit-path"
data-multi-size="320x100,320x50,300x600"
rtc-config='{
"urls": [
"https://prebid-server.pbstck.com/openrtb2/amp?tag_id=PUBSTACK_ADUNIT_NAME&account_id=PUBSTACK_SITE_ID&w=ATTR(width)&h=ATTR(height)&ms=ATTR(data-multi-size)&slot=ATTR(data-slot)&targeting=TGT&curl=CANONICAL_URL&timeout=TIMEOUT&adc=ADCID&purl=HREF&gdpr_consent=CONSENT_STRING&gdpr_applies=CONSENT_METADATA(gdprApplies)&consent_type=CONSENT_METADATA(consentStringType)"
],
"timeoutMillis": 800
}'
json='{
"targeting": {
"category": "sport",
"section": "homepage",
"subsection": "football",
"age": "25-34",
"gender": "M",
"region": "fr-ile-de-france",
"device": "mobile",
"user_id": "user_123456"
}
}'
></amp-ad>How it works
Test & Debug
Last updated
