Skip to main content
PUT /api/v2/storefront/inventory-sources/{sourceId}/ad-server Sets the ad-server configuration on an ad-server-backed source. The body fully replaces the config (PUT semantics). PATCH /api/v2/storefront/inventory-sources/{sourceId}/ad-server is accepted as an alias with the same body and response, for clients migrating from the legacy /esa/ad-server route.

Request

Parameters

google_ad_manager freewheel springserve
FreeWheel and SpringServe credentials are forwarded to the managed ad-server source at provision time and never persisted by Scope3 — only non-secret display fields (client ID/login, environment, default advertiser/demand-partner id) are stored on the connection row. For FreeWheel production setup, prefer client ID/client secret (the upstream source mints and auto-refreshes short-lived tokens); reserve pre-minted apiToken for testing.

Response

200 OK with the updated EsaConnection (see Get ad-server connection for the full shape):
For Google Ad Manager, serviceAccountEmail is the address the publisher must grant access to in their GAM admin console before provisioning succeeds.

Errors

  • 400 VALIDATION_ERROR — unknown type, missing credentials for the chosen adapter, or malformed networkCode.
  • 401 UNAUTHORIZED — missing or invalid API key.
  • 404 NOT_FOUND — no ad-server-backed source with this sourceId.
See Errors for the full error contract.

Inventory source tasks

All operations

Rotate credentials

In-place credential rotation

Test connection

Probe upstream reachability

Get ad-server connection

Connection state