# 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**.
