Supported macros - o
Publica Macros
See table below for supported macros in VAST tags for Direct Campaigns, Brand Safety tracking URLs, and for Bidders using a VAST tag ('Other (Vast tag)' bidder type):
Macros can be encoded by wrapping in %MACRO%
to avoid breakage in the URL. For example, APP_NAME
macro value may contain spaces such as “My Awesome App”, so encoding the value would ensure url is valid with value “My%20Awesome%20App”
Macro | Description | Value example |
---|---|---|
| Ad duration, in seconds Note: This macro is currently only supported for Direct Campaigns and Brand Safety Event Trackers. |
|
| App bundle |
|
| App domain |
|
| App name |
|
| Encoded app name |
|
| App store URL |
|
| Encoded app store URL |
|
| Buyer UID |
|
| Random number |
|
| GDPR Consent string | BOQ7WlgOQ7WlgABABwAAABJOACgACAAQABA |
| IAB category |
|
| Content Channel |
|
| Content Context |
|
| Content Distribution ID |
|
| Content Distribution Name |
|
| Content Episode Number |
|
| Encoded content genre |
|
| Content ID |
|
| Comma separated list of keywords describing the content |
|
| Content language using ISO-639-1-alpha-2 |
|
| Length of content in seconds |
|
| Content Network |
|
| Production quality |
|
| Content producer or originator ID |
|
| Content producer or originator name |
|
| Content Rating |
|
| Content Season |
|
| Encoded content series |
|
| Encoded content title |
|
| COPPA compliance |
|
| 3-letter country code |
|
| Custom 4 value | User defined |
| Custom 5 value | User defined |
| Custom 6 value | User defined |
| Custom 7 value | User defined |
| Custom 8 value | User defined |
| Return the value in the |
|
| User device ID. In Publica, DID is synonymous with IDFA, IFA, TIFA, etc. |
|
| Post-auction value to identify demand partner of won impression |
|
| Device Language |
|
| Device make |
|
| Encoded device make |
|
| Device model |
|
| Encoded device model |
|
| Device Operating System |
|
| Device Operating System version |
|
| Device type |
|
| Device type (encoded version) |
|
| Device ID type |
|
| Nielsen DMAs |
|
| Same value as |
|
| Request subject to GDPR regulation |
|
| Gender |
|
| Genre ID |
|
| Device’s screen height (in px) |
|
| Return the value in the |
|
| User IP |
|
| Encoded user IP | 1111%3Afcc8%3Aa012%3A1111%3A1111%3Ac896%3Ab7d5%3A6ca6 |
| Request subject to limited ad tracking regulation |
|
| Is livestream enabled |
|
| Maximum duration of an ad in seconds. Should be smaller than the pod duration. |
|
| Maximum accepted bitrate in kbps | 8000 |
| Minimum duration of an ad in seconds |
|
| Minimum bit rate in Kbps |
|
| Encoded Page URL | https%3A%2F%2Fwww.samsung.com |
| Duration of the ad pod in seconds | 60 |
| Position |
|
| Preferred Language |
|
| Rights Holder |
|
| SCHAIN string value |
|
| Session ID |
|
| Channel ID |
|
| Return the value in the |
|
| Return the page url value in the site page param. |
|
| Number of ad slots to fill for a pod |
|
| SSAI Enabled |
|
| SSAI Vendor |
|
| Targeted Device |
|
| Unix Timestamp | 126345 |
| Post-auction value of impression ID for tracking. |
|
| Encoded user agent | |
| US Privacy string (CCPA Compliance) |
|
| Device’s screen width (in px) |
|
| User’s year of birth |
|
Passthrough Macros
Publica supports the pass through of user defined query parameters and their values via our custom pass through macros. These macros are reserved for the query parameter values that Publica does not currently support. A common use case would be if you need to pass many different custom values to Publica in which our existing custom_n
macros cannot fully cover.
https://pbs.getpublica.com/v1/s2s-hb?site_id=channel_id&app_bundle=your_app_bundle&app_name=your_app_name&did=device_idfa&cb=cachebuster&pod_duration=ad_break_length&customQueryParam=123&customQueryParam=456,789&customQueryParam2=abc,def&customQueryParam2=qrs,xyz
In this example above, there are two sets of query parameters that are unsupported Publica parameters:
customQueryParam
customQueryParam2
Our passthrough macro will let you pass those values to your downstream partner. The macros will have a prefix of PT_
. Please see below for an illustration:
[PT_1_customQueryParam]
= 123[PT_2_customQueryParam]
= 456,789[PT_customQueryParam]
= 123[PT_1_customQueryParam2]
= abc,def[PT_2_customQueryParam2]
= qrs,xyz[PT_customQueryParam2]
= abc,def
Note: The n
value that comes after PT_
is the index value if there are more than 1 repeating query parameters. Leaving out the index value will return the first key value pair present.
Publica also supports the passthrough of the individual comma delimited values present in a list. The macros will have a prefix of PTC_
. Please see below for an illustration:
[PTC_2_customQueryParam]
= 456[PTC_3_customQueryParam]
= 789[PTC_1_customQueryParam2]
= abc[PTC_4_customQueryParam2]
= xyz
Note: The n
value that comes after PTC_
is the index value of the list of values present against a unique query parameter.
© 2022 Publica LLC ®, All Rights Reserved.
76 Roosevelt Circle • Palo Alto, CA 94306 USA
Contact Us • Terms of Use • Privacy Policy