# setNewVendorConsents

## setNewVendorConsents

**Description:**\
Set the current consent status for one or more vendors.

**Syntax:**

<pre class="language-javascript"><code class="lang-javascript"><strong>var sConsentId = jentis.consent.engine.setNewVendorConsents({
</strong>  "ga": true,
  "adw": false,
  "fb": "ncm"
});
</code></pre>

**Parameters:**

* `object` *(required)* — Key-value pairs of vendor IDs and their consent status.
  * `true` – Consent granted
  * `false` – Consent denied
  * `"ncm"` – No consent mode

**Notes:**

* Vendor IDs must match the IDs in your **JENTIS Data Capture Platform** exactly (case sensitive).
* Vendor IDs are available under **Legal Hub → Vendors**.

**Returns:**

* `string` — The new **Consent ID**.


---

# 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.jentis.com/developer-guide/consent-javascript-sdk/sdk-functions/setnewvendorconsents.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.
