Skip to content

Commit

Permalink
add docs on consent metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
decaffeinatedio committed Feb 9, 2022
1 parent 25232ee commit 01b17c4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions dev-docs/publisher-api-reference/getConsentMetadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
layout: api_prebidjs
title: pbjs.getConsentMetadata()
description:
---


The `getConsentMetadata()` function will return basic information about the status of supported (and configured!) consent content within Prebid.

```
pbjs.getConsentMetadata() // returns e.g.
{
"coppa": false,
"gdpr": {
"apiVersion": 2,
"consentStringExists": true,
"gdprApplies": true,
"timestamp": 1644358143306
},
"usp": {
"timestamp": 1644358143306,
"usp": "1YYY"
}
}
```

0 comments on commit 01b17c4

Please sign in to comment.