GPP String Format and Section IDs
How a GPP string is built, the full list of section IDs including the newest US states, and what gpp_sid means in OpenRTB.
A GPP string is a header followed by one or more sections, joined with a tilde: header~section~section. The header lists which section IDs follow, in order. Each section carries one privacy framework’s signals.
The header
The header is required and always comes first. It has three fields:
- Type, 6 bits, always 3
- Version, 6 bits, currently 1
- Sections, a Fibonacci-coded range listing the section IDs in the order they appear
That is why GPP strings start with D: the first 6 bits hold 3. A TCF v2 string starts with C for the same reason, because its first 6 bits hold version 2.
How the section range works
The range starts with a 12-bit count. Each item is a flag for single ID or group, followed by a Fibonacci-coded offset from the last ID. Groups add a length. The spec’s example turns IDs 3, 5, 6, 7 and 8 into two items: a single 3, then a group starting at 5.
Bits are padded with zeros to a multiple of 6, then mapped through the URL-safe Base64 alphabet. Sub-sections inside a section are separated with a dot, such as a core part followed by a Global Privacy Control part.
Section IDs
| ID | Prefix | Section |
|---|---|---|
| 1 | tcfeuv1 | EU TCF v1 (deprecated) |
| 2 | tcfeuv2 | EU TCF v2 |
| 3 | GPP header (required) | |
| 4 | GPP signal integrity | |
| 5 | tcfcav1 | Canadian TCF |
| 6 | uspv1 | USPrivacy string (deprecated) |
| 7 | usnat | MSPA US National |
| 8 | usca | California |
| 9 | usva | Virginia |
| 10 | usco | Colorado |
| 11 | usut | Utah |
| 12 | usct | Connecticut |
| 13 | usfl | Florida |
| 14 | usmt | Montana |
| 15 | usor | Oregon |
| 16 | ustx | Texas |
| 17 | usde | Delaware |
| 18 | usia | Iowa |
| 19 | usne | Nebraska |
| 20 | usnh | New Hampshire |
| 21 | usnj | New Jersey |
| 22 | ustn | Tennessee |
| 23 | usmn | Minnesota |
| 24 | usmd | Maryland |
| 25 | usin | Indiana |
| 26 | usky | Kentucky |
| 27 | usri | Rhode Island |
What gpp_sid means
A string can hold several sections, and gpp_sid says which apply to this transaction. In OpenRTB, regs.gpp holds the string and regs.gpp_sid is an array of section IDs. The spec says it will generally hold one value, with edge cases where more apply. Sections 3 and 4 don’t need listing.
In URLs the macros are gpp=${GPP_STRING_XXXXX} and gpp_sid=${GPP_SID}, where XXXXX is the vendor’s numeric ID.
Changes in November 2026
The US National spec moved to version 3.0 for the Fifth Amended and Restated MSPA. Its core is now only MspaVersion, MspaNotice, MspaOptOut and MspaId, plus a GPC subsection. State sections keep their layout, but MspaCoveredTransaction must now be 2, and the two MSPA mode fields must be 0.
Try it
Paste a string into the GPP Decoder to see each section in plain English, and check it against gpp_sid.
Try it
Sources
- IAB Tech Lab: GPP Consent String Specification
- IAB Tech Lab: GPP Section Information
- IAB Privacy: MSPA US National section
- IAB Tech Lab: OpenRTB 2.6
Last checked 2026-11-07.