Skip to main content
PUT /api/v2/storefront/esa/{esaId}/execution-currency Sets the execution currency for an existing FreeWheel source without replacing its stored credentials. Use the ad-server connection id as esaId, as returned in the managedSa.connectionId field of the inventory source read; this is not the inventory source’s sourceId. The currency must match the currency FreeWheel will assign to insertion orders and must be one your storefront settles. Apostra does not choose a default currency for you.

Request

Parameters

Response

200 OK with the updated EsaConnection. The non-secret FreeWheel config shows the saved value in adServer.executionCurrency:
For a network with existing insertion orders, FreeWheel must report the same currency before the change is accepted. A network with no priced orders has no currency to report yet. In that case, Apostra carries the declared currency to the first booking and refuses the buy if FreeWheel reports a different one. See Ad-server execution currency is not ready for the full readiness path.

Errors

  • 400 VALIDATION_ERROR means the value is not a three-letter currency code, the storefront does not settle it, the source is not active and provisioned, the source is not FreeWheel, or FreeWheel cannot verify the network currency. The previous execution currency remains active.
  • 401 UNAUTHORIZED means the API key is missing or invalid.
  • 404 NOT_FOUND means no ad-server source has this esaId on your storefront.
  • 409 CONFLICT means another ad-server configuration change is awaiting reconciliation. Retry after that change completes.
See Errors for the full error contract.

Connect an ad server

Replace the full adapter configuration

Troubleshoot source problems

Resolve execution-currency readiness blocks