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
Response
200 OK with the updated EsaConnection (see Get ad-server connection for the full shape):
serviceAccountEmail is the address the publisher must grant access to in their GAM admin console before provisioning succeeds.
Errors
400 VALIDATION_ERROR— unknowntype, missing credentials for the chosen adapter, or malformednetworkCode.401 UNAUTHORIZED— missing or invalid API key.404 NOT_FOUND— no ad-server-backed source with thissourceId.
Related
Inventory source tasks
All operations
Rotate credentials
In-place credential rotation
Test connection
Probe upstream reachability
Get ad-server connection
Connection state