---
title: "Update AdSense configuration"
method: PUT
path: "/settings/adsense"
tags: ["Settings"]
---

# Update AdSense configuration

`PUT /settings/adsense`

## Request

- Base URL: `https://api.cavuno.com/v1`
- URL: `https://api.cavuno.com/v1/settings/adsense`
- Auth: HTTP bearer

Replaces the AdSense configuration for your board with the supplied values.

## Request body

- SettingsAdsenseBody
  - `adsenseEnabled` boolean: Whether AdSense placements are rendered on the public board.
  - `adsenseClientId` union: AdSense publisher ID in `ca-pub-XXXXXXXXXXXXXXXX` format. Pass an empty string or `null` to clear.
    - string
    - ''
    - unknown
  - `adsenseSlots` object: Map of placement key to slot configuration. Placement keys are lowercase alphanumeric with `-`, `_`, `.`, or `:`.
  - `adsenseGoogleConsentMessage` boolean: Use Google's consent message (AdSense → Privacy & messaging) for visitors in the EEA, UK and Switzerland while AdSense is on. Defaults to `true`. Set `false` to show the board's own cookie banner to everyone instead; also turn off "Maximize message coverage" in AdSense, or European visitors may see two consent messages.
  - `adsTxt` union: Contents to serve from `/ads.txt`. Up to 2,000 characters. Pass an empty string or `null` to clear.
    - string
    - ''
    - unknown

## Response `200`

Successful response.

## Other responses

- `400`: The supplied AdSense client ID is not in the required `ca-pub-XXXXXXXXXXXXXXXX` format.

## Changes

- **2026-10-19** `c34152c38176`: 1 info
  - added the optional property `error/upgrade` to the response with the `400` status

[Operation history](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api/changes/settings/adsense/put.md)

---

[API](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api.md) · [All operations](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api/revisions/d5974dabff14?raw)
