# Configure IAB GPP fields based on user consent

Some GPP signals depend on the user’s consent status. In the Didomi Console, you can map purposes to these GPP signals, enabling the SDK to calculate and share the necessary consent status in the GPP string for each configured region.

When GPP integration is enabled, each regulation in your notice configuration must have at least one GPP signal mapped to all applicable purposes.

#### Mapping purposes to GPP signals

You can map purposes to GPP signals in two ways:

* **Per regulation in your notices**
* **In a template applied to multiple regulations**

#### Mapping purposes to GPP signals within a regulation

To map purposes to GPP signals within a regulation:

1. Go to **Didomi Console → Consent Notices**.
2. Open the consent notice.
3. Select the regulation you want to edit and click **Edit Vendors & Purposes**.
4. In the **Vendors** section, add vendors to include their associated purposes in the notice.
5. Open **GPP Settings** by clicking the arrow button.
6. Click the pencil icon next to a GPP signal to select purposes for mapping.
7. Choose the purposes to map to the GPP signal.
8. Click **Save** to confirm your mapping.

![mapping-gpp](/files/t3DnRbM2DiwZhTJdL0G3)

#### Mapping purposes to GPP signals in a template

To map purposes to GPP signals in a template:

1. Go to **Didomi Console → Consent Notices**.
2. Click **Manage vendor lists**.
3. Open your vendor list.
4. In the **Vendors** section, add vendors to include their associated purposes in the notice.
5. Open **GPP Settings** by clicking the arrow button.
6. Click the pencil icon next to a GPP signal to select purposes for mapping.
7. Choose the purposes to map to the GPP signal.
8. Click **Save** to confirm your mapping.

<img src="/files/thTQhCTYB5i5JJ0NhX1Q" alt="" width="563">

Mappings between purposes and GPP signals configured in the template apply to all regulations where the GPP signal is available, including state-specific and U.S. national strings, and any instance where the template is used.

#### Common use cases for templates

#### **Use one template for all U.S. regulations**

For example, create a single template to address all U.S. regulations.

* Map all purposes in the template to at least one GPP signal for each regulation it covers.
* Apply this template to all relevant regulations directly from the template or when configuring a notice for U.S. regulations.

#### **Use multiple templates to group U.S. regulations**

For example, create one template for CPRA and another for CPA, CTDPA, and VCDPA.

* Map all purposes in each template to at least one GPP signal for the regulations it covers. For example:
  * **Template 1**: Map purposes to one GPP signal for CPRA.
  * **Template 2**: Map purposes to one GPP signal each for CPA, CTDPA, and VCDPA.
* Apply these templates to the corresponding regulations directly from the templates or when configuring a notice for CPRA, CPA, CTDPA, or VCDPA regulations.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.didomi.io/consent-management-platform-cmp/frameworks-regulations/iab-global-privacy-protocol-gpp/configure-iab-gpp-fields-based-on-user-consent.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
