🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@iabgpp/cmpapi

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iabgpp/cmpapi

Encode/decode consent information with the IAB GPP Framework

3.1.7
latest
npm
Version published
Weekly downloads
10K
230.26%
Maintainers
3
Weekly downloads
 
Created
Source

iabgpp-es

Encode/decode consent information with the IAB GPP Framework

(https://iabtechlab.com/gpp/)

Methods available to CMPs

constructor(cmpId: number, cmpVersion: number, customCommands?: CustomCommands)
fireEvent(eventName: string, value: any)
fireErrorEvent(value: string)
fireSectionChange(value: string)
getEventStatus()
setEventStatus(eventStatus: EventStatus)
getCmpStatus()
setCmpStatus(cmpStatus: CmpStatus)
getCmpDisplayStatus(): CmpDisplayStatus
setCmpDisplayStatus(cmpDisplayStatus: CmpDisplayStatus)
getApplicableSections(): number[]
setApplicableSections(applicableSections: number[]): void
getSignalStatus(): SignalStatus
setSignalStatus(signalStatus: SignalStatus): void
setGppString(encodedGppString: string): void
getGppString(): string
setSectionString(sectionName: string, encodedSectionString: string): void
setSectionStringById(sectionId: number, encodedSectionString: string): void
getSectionString(sectionName: string): string
getSectionStringById(sectionId: number): string
setFieldValue(sectionName: string, fieldName: string, value: any): void
setFieldValueBySectionId(sectionId: number, fieldName: string, value: any)
getFieldValue(sectionName: string, fieldName: string): any
getFieldValueBySectionId(sectionId: number, fieldName: string)
getSection(sectionName: string): any
getSectionById(sectionId: number): any
hasSection(sectionName: string): any
hasSectionId(sectionId: number): any
deleteSection(sectionName: string)
deleteSectionById(sectionId: number)
clear()
getObject()
getGvlFromVendorList(vendorList: VendorList): GVL
async getGvlFromUrl(gvlUrlConfig: GVLUrlConfig): Promise<GVL>

Commands available to consumers

__gpp("addEventListener", callback?, parameter?)
__gpp("getField", callback?, parameter?)
__gpp("getSection", callback?, parameter?)
__gpp("hasSection", callback?, parameter?)
__gpp("ping", callback?, parameter?)
__gpp("removeEventListener", callback?, parameter?)

CMP usage Example

<script>
  import {CmpApi} from '@iabgpp/cmpapi'; const cmpApi = new CmpApi(1, 3); cmpApi.setGppString(gppString);
  cmpApi.setFieldValue("uspv1", "OptOutSale", 0); cmpApi.fireUpdate("uspv1"); console.log(cmpApi.getGppString());
</script>

Consumer usage example

<script src="/js/stub/stub.js"></script>
<script>
  console.log(__gpp("ping"));

  __gpp("addEventListener", function (evt) {
    console.log("Received uspv1 event: " + evt);
    console.log(__gpp("getGPPString"));
  }, "uspv1");

  if(__gpp("hasSection", null, "tcfeuv2")) {
    console.log(__gpp("getSection", null, "tcfeuv2"));
  }

  if(__gpp("hasSection", null, "uspv1")) {
    console.log(__gpp("getField", null, "uspv1.OptOutSale"));
  }
</script>

Fields

Section NameSection IDFieldData Type/Value
tcfeuv22Version6 bit int. Value is 2.
tcfeuv22CreatedDatetime. Updated when fields are set
tcfeuv22LastUpdatedDatetime. Updated when fields are set
tcfeuv22CmpId12 bit int
tcfeuv22CmpVersion12 bit int
tcfeuv22ConsentScreen6 bit int
tcfeuv22ConsentLanguage2 character country code
tcfeuv22VendorListVersion12 bit int
tcfeuv22PolicyVersion6 bit int. Value is 2
tcfeuv22IsServiceSpecificBoolean
tcfeuv22UseNonStandardStacksBoolean
tcfeuv22SpecialFeatureOptinsBoolean array of size 12
tcfeuv22PurposeConsentsBoolean array of size 24
tcfeuv22PurposeLegitimateInterestsBoolean array of size 24
tcfeuv22PurposeOneTreatmentBoolean
tcfeuv22PublisherCountryCode2 character country code
tcfeuv22VendorConsentsInteger array of variable size
tcfeuv22VendorLegitimateInterestsInteger array of variable size
tcfeuv22PublisherRestrictionsInteger array of variable size
tcfeuv22PublisherPurposesSegmentType3 bit int. Value is 3
tcfeuv22PublisherConsentsBoolean array of size 24
tcfeuv22PublisherLegitimateInterestsBoolean array of size 24
tcfeuv22NumCustomPurposes6 bit int
tcfeuv22PublisherCustomConsentsBoolean array where size is set by the NumCustomPurposes field
tcfeuv22PublisherCustomLegitimateInterestsBoolean array where size is set by the NumCustomPurposes field
tcfeuv22VendorsAllowedSegmentType3 bit int. Value is 2
tcfeuv22VendorsAllowedInteger array of variable size
tcfeuv22VendorsDisclosedSegmentType3 bit int. Value is 1
tcfeuv22VendorsDisclosedInteger array of variable size
tcfcav15Version6 bit int. Value is 2.
tcfcav15CreatedDatetime. Updated when any fields are set
tcfcav15LastUpdatedDatetime. Updated when any fields are set
tcfcav15CmpId12 bit int
tcfcav15CmpVersion12 bit int
tcfcav15ConsentScreen6 bit int
tcfcav15ConsentLanguage2 character country code
tcfcav15VendorListVersion12 bit int
tcfcav15TcfPolicyVersion6 bit int. Value is 2.
tcfcav15UseNonStandardStacksBoolean
tcfcav15SpecialFeatureExpressConsentBoolean array of size 12
tcfcav15PurposesExpressConsentBoolean array of size 24
tcfcav15PurposesImpliedConsentBoolean array of size 24
tcfcav15VendorExpressConsentInteger array of variable size
tcfcav15VendorImpliedConsentInteger array of variable size
tcfcav15PubRestrictionsRangeEntry list of variable size
tcfcav15PubPurposesSegmentType3 bit int. Value is 3
tcfcav15PubPurposesExpressConsentBoolean array of size 24
tcfcav15PubPurposesImpliedConsentBoolean array of size 24
tcfcav15NumCustomPurposes6 bit int
tcfcav15CustomPurposesExpressConsentBoolean array where size is set by the NumCustomPurposes field
tcfcav15CustomPurposesImpliedConsentBoolean array where size is set by the NumCustomPurposes field
tcfcav15DisclosedVendorsSegmentType3 bit int. Value is 1
tcfcav15DisclosedVendorsInteger list of variable size
uspv16Version6 bit int. Value is 1
uspv16Notice2 bit int
uspv16OptOutSale2 bit int
uspv16LspaCovered2 bit int
usnat7Version6 bit int. Value is 1
usnat7SharingNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usnat7SaleOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usnat7SharingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usnat7TargetedAdvertisingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usnat7SensitiveDataProcessingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usnat7SensitiveDataLimitUseNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usnat7SaleOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usnat7SharingOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usnat7TargetedAdvertisingOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usnat7SensitiveDataProcessing2 bit int array of size 16. 0=Not applicable, 1=Yes, 2=No
usnat7KnownChildSensitiveDataConsents2 bit int array of size 3. 0=Not applicable, 1=Yes, 2=No
usnat7PersonalDataConsents2 bit int. 0=Not applicable, 1=Yes, 2=No
usnat7MspaCoveredTransaction2 bit int. 0=Not applicable, 1=Yes, 2=No
usnat7MspaOptOutOptionMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usnat7MspaServiceProviderMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usnat7GpcSegmentType2 bit int. Value is 1
usnat7GpcSegmentIncludedBoolean. Default is true
usnat7GpcBoolean
usca8Version6 bit int. Value is 1
usca8SaleOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usca8SharingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usca8SensitiveDataLimitUseNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usca8SaleOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usca8SharingOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usca8SensitiveDataProcessing2 bit int array of size 9. 0=Not applicable, 1=Yes, 2=No
usca8KnownChildSensitiveDataConsents2 bit int array of size 2. 0=Not applicable, 1=Yes, 2=No
usca8PersonalDataConsents2 bit int. 0=Not applicable, 1=Yes, 2=No
usca8MspaCoveredTransaction2 bit int. 0=Not applicable, 1=Yes, 2=No
usca8MspaOptOutOptionMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usca8MspaServiceProviderMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usca8GpcSegmentType2 bit int. Value is 1
usca8GpcSegmentIncludedBoolean. Default is true
usca8GpcBoolean
usva9Version6 bit int. Value is 1
usva9SharingNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usva9SaleOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usva9TargetedAdvertisingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usva9SaleOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usva9TargetedAdvertisingOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usva9SensitiveDataProcessing2 bit int array of size 8. 0=Not applicable, 1=Yes, 2=No
usva9KnownChildSensitiveDataConsents2 bit int. 0=Not applicable, 1=Yes, 2=No
usva9MspaCoveredTransaction2 bit int. 0=Not applicable, 1=Yes, 2=No
usva9MspaOptOutOptionMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usva9MspaServiceProviderMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usco10Version6 bit int. Value is 1
usco10SharingNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usco10SaleOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usco10TargetedAdvertisingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usco10SaleOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usco10TargetedAdvertisingOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usco10SensitiveDataProcessing2 bit int array of size 7. 0=Not applicable, 1=Yes, 2=No
usco10KnownChildSensitiveDataConsents2 bit int. 0=Not applicable, 1=Yes, 2=No
usco10MspaCoveredTransaction2 bit int. 0=Not applicable, 1=Yes, 2=No
usco10MspaOptOutOptionMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usco10MspaServiceProviderMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usco10GpcSegmentType2 bit int. Value is 1
usco10GpcSegmentIncludedBoolean. Deafult is true
usco10GpcBoolean
usut11Version6 bit int. Value is 1
usut11SharingNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usut11SaleOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usut11TargetedAdvertisingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usut11SensitiveDataProcessingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usut11SaleOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usut11TargetedAdvertisingOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usut11SensitiveDataProcessing2 bit int array of size 8. 0=Not applicable, 1=Yes, 2=No
usut11KnownChildSensitiveDataConsents2 bit int. 0=Not applicable, 1=Yes, 2=No
usut11MspaCoveredTransaction2 bit int. 0=Not applicable, 1=Yes, 2=No
usut11MspaOptOutOptionMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usut11MspaServiceProviderMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usct12Version6 bit int. Value is 1
usct12SharingNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usct12SaleOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usct12TargetedAdvertisingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usct12SaleOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usct12TargetedAdvertisingOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usct12SensitiveDataProcessing2 bit int array of size 8. 0=Not applicable, 1=Yes, 2=No
usct12KnownChildSensitiveDataConsents2 bit int array of size 3. 0=Not applicable, 1=Yes, 2=No
usct12MspaCoveredTransaction2 bit int. 0=Not applicable, 1=Yes, 2=No
usct12MspaOptOutOptionMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usct12MspaServiceProviderMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usct12GpcSegmentType2 bit int. Value is 1
usct12GpcSegmentIncludedBoolean. Default is true
usct12GpcBoolean
usfl13Version6 bit int. Value is 1
usfl13ProcessingNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usfl13SaleOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usfl13TargetedAdvertisingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usfl13SaleOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usfl13TargetedAdvertisingOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usfl13SensitiveDataProcessing2 bit int array of size 8. 0=Not applicable, 1=Yes, 2=No
usfl13KnownChildSensitiveDataConsents2 bit int array of size 3. 0=Not applicable, 1=Yes, 2=No
usfl13AdditionalDataProcessingConsent2 bit int. 0=Not applicable, 1=Yes, 2=No
usfl13MspaCoveredTransaction2 bit int. 0=Not applicable, 1=Yes, 2=No
usfl13MspaOptOutOptionMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usfl13MspaServiceProviderMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usmt14Version6 bit int. Value is 1
usmt14SharingNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usmt14SaleOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usmt14TargetedAdvertisingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usmt14SaleOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usmt14TargetedAdvertisingOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usmt14SensitiveDataProcessing2 bit int array of size 8. 0=Not applicable, 1=Yes, 2=No
usmt14KnownChildSensitiveDataConsents2 bit int array of size 3. 0=Not applicable, 1=Yes, 2=No
usmt14AdditionalDataProcessingConsent2 bit int. 0=Not applicable, 1=Yes, 2=No
usmt14MspaCoveredTransaction2 bit int. 0=Not applicable, 1=Yes, 2=No
usmt14MspaOptOutOptionMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usmt14MspaServiceProviderMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usmt14GpcSegmentType2 bit int. Value is 1
usmt14GpcSegmentIncludedBoolean. Default is true
usmt14GpcBoolean
usor15Version6 bit int. Value is 1
usor15ProcessingNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usor15SaleOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usor15TargetedAdvertisingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usor15SaleOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usor15TargetedAdvertisingOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usor15SensitiveDataProcessing2 bit int array of size 11. 0=Not applicable, 1=Yes, 2=No
usor15KnownChildSensitiveDataConsents2 bit int array of size 3. 0=Not applicable, 1=Yes, 2=No
usor15AdditionalDataProcessingConsent2 bit int. 0=Not applicable, 1=Yes, 2=No
usor15MspaCoveredTransaction2 bit int. 0=Not applicable, 1=Yes, 2=No
usor15MspaOptOutOptionMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usor15MspaServiceProviderMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usor15GpcSegmentType2 bit int. Value is 1
usor15GpcSegmentIncludedBoolean. Default is true
usor15GpcBoolean
ustx16Version6 bit int. Value is 1
ustx16ProcessingNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
ustx16SaleOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
ustx16TargetedAdvertisingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
ustx16SaleOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
ustx16TargetedAdvertisingOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
ustx16SensitiveDataProcessing2 bit int array of size 8. 0=Not applicable, 1=Yes, 2=No
ustx16KnownChildSensitiveDataConsents2 bit int. 0=Not applicable, 1=Yes, 2=No
ustx16AdditionalDataProcessingConsent2 bit int. 0=Not applicable, 1=Yes, 2=No
ustx16MspaCoveredTransaction2 bit int. 0=Not applicable, 1=Yes, 2=No
ustx16MspaOptOutOptionMode2 bit int. 0=Not applicable, 1=Yes, 2=No
ustx16MspaServiceProviderMode2 bit int. 0=Not applicable, 1=Yes, 2=No
ustx16GpcSegmentType2 bit int. Value is 1
ustx16GpcSegmentIncludedBoolean. Default is true
ustx16GpcBoolean
usde17Version6 bit int. Value is 1
usde17ProcessingNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usde17SaleOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usde17TargetedAdvertisingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usde17SaleOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usde17TargetedAdvertisingOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usde17SensitiveDataProcessing2 bit int array of size 9. 0=Not applicable, 1=Yes, 2=No
usde17KnownChildSensitiveDataConsents2 bit int array of size 5. 0=Not applicable, 1=Yes, 2=No
usde17AdditionalDataProcessingConsent2 bit int. 0=Not applicable, 1=Yes, 2=No
usde17MspaCoveredTransaction2 bit int. 0=Not applicable, 1=Yes, 2=No
usde17MspaOptOutOptionMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usde17MspaServiceProviderMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usde17GpcSegmentType2 bit int. Value is 1
usde17GpcSegmentIncludedBoolean. Default is true
usde17GpcBoolean
usia18Version6 bit int. Value is 1
usia18ProcessingNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usia18SaleOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usia18TargetedAdvertisingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usia18SensitiveDataOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usia18SaleOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usia18TargetedAdvertisingOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usia18SensitiveDataProcessing2 bit int array of size 8. 0=Not applicable, 1=Yes, 2=No
usia18KnownChildSensitiveDataConsents2 bit int. 0=Not applicable, 1=Yes, 2=No
usia18MspaCoveredTransaction2 bit int. 0=Not applicable, 1=Yes, 2=No
usia18MspaOptOutOptionMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usia18MspaServiceProviderMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usia18GpcSegmentType2 bit int. Value is 1
usia18GpcSegmentIncludedBoolean. Default is true
usia18GpcBoolean
usne19Version6 bit int. Value is 1
usne19ProcessingNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usne19SaleOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usne19TargetedAdvertisingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usne19SaleOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usne19TargetedAdvertisingOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usne19SensitiveDataProcessing2 bit int array of size 8. 0=Not applicable, 1=Yes, 2=No
usne19KnownChildSensitiveDataConsents2 bit int. 0=Not applicable, 1=Yes, 2=No
usne19AdditionalDataProcessingConsent2 bit int. 0=Not applicable, 1=Yes, 2=No
usne19MspaCoveredTransaction2 bit int. 0=Not applicable, 1=Yes, 2=No
usne19MspaOptOutOptionMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usne19MspaServiceProviderMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usne19GpcSegmentType2 bit int. Value is 1
usne19GpcSegmentIncludedBoolean. Default is true
usne19GpcBoolean
usnh20Version6 bit int. Value is 1
usnh20ProcessingNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usnh20SaleOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usnh20TargetedAdvertisingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usnh20SaleOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usnh20TargetedAdvertisingOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usnh20SensitiveDataProcessing2 bit int array of size 8. 0=Not applicable, 1=Yes, 2=No
usnh20KnownChildSensitiveDataConsents2 bit int array of size 3. 0=Not applicable, 1=Yes, 2=No
usnh20AdditionalDataProcessingConsent2 bit int. 0=Not applicable, 1=Yes, 2=No
usnh20MspaCoveredTransaction2 bit int. 0=Not applicable, 1=Yes, 2=No
usnh20MspaOptOutOptionMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usnh20MspaServiceProviderMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usnh20GpcSegmentType2 bit int. Value is 1
usnh20GpcSegmentIncludedBoolean. Default is true
usnh20GpcBoolean
usnj21Version6 bit int. Value is 1
usnj21ProcessingNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usnj21SaleOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usnj21TargetedAdvertisingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
usnj21SaleOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usnj21TargetedAdvertisingOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
usnj21SensitiveDataProcessing2 bit int array of size 10. 0=Not applicable, 1=Yes, 2=No
usnj21KnownChildSensitiveDataConsents2 bit int array of size 5. 0=Not applicable, 1=Yes, 2=No
usnj21AdditionalDataProcessingConsent2 bit int. 0=Not applicable, 1=Yes, 2=No
usnj21MspaCoveredTransaction2 bit int. 0=Not applicable, 1=Yes, 2=No
usnj21MspaOptOutOptionMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usnj21MspaServiceProviderMode2 bit int. 0=Not applicable, 1=Yes, 2=No
usnj21GpcSegmentType2 bit int. Value is 1
usnj21GpcSegmentIncludedBoolean. Default is true
usnj21GpcBoolean
ustn22Version6 bit int. Value is 1
ustn22ProcessingNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
ustn22SaleOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
ustn22TargetedAdvertisingOptOutNotice2 bit int. 0=Not applicable, 1=Yes, 2=No
ustn22SaleOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
ustn22TargetedAdvertisingOptOut2 bit int. 0=Not applicable, 1=Yes, 2=No
ustn22SensitiveDataProcessing2 bit int array of size 8. 0=Not applicable, 1=Yes, 2=No
ustn22KnownChildSensitiveDataConsents2 bit int. 0=Not applicable, 1=Yes, 2=No
ustn22AdditionalDataProcessingConsent2 bit int. 0=Not applicable, 1=Yes, 2=No
ustn22MspaCoveredTransaction2 bit int. 0=Not applicable, 1=Yes, 2=No
ustn22MspaOptOutOptionMode2 bit int. 0=Not applicable, 1=Yes, 2=No
ustn22MspaServiceProviderMode2 bit int. 0=Not applicable, 1=Yes, 2=No
ustn22GpcSegmentType2 bit int. Value is 1
ustn22GpcSegmentIncludedBoolean. Default is true
ustn22GpcBoolean

Example Usage / Encoder / Decoder

https://iabgpp.com

FAQs

Package last updated on 09 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts