Skip to content
FizzKit

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

IDPrefixSection
1tcfeuv1EU TCF v1 (deprecated)
2tcfeuv2EU TCF v2
3GPP header (required)
4GPP signal integrity
5tcfcav1Canadian TCF
6uspv1USPrivacy string (deprecated)
7usnatMSPA US National
8uscaCalifornia
9usvaVirginia
10uscoColorado
11usutUtah
12usctConnecticut
13usflFlorida
14usmtMontana
15usorOregon
16ustxTexas
17usdeDelaware
18usiaIowa
19usneNebraska
20usnhNew Hampshire
21usnjNew Jersey
22ustnTennessee
23usmnMinnesota
24usmdMaryland
25usinIndiana
26uskyKentucky
27usriRhode 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

Last checked 2026-11-07.