Apply mapping values across integrations
Checks mapping records that each name their own integration, as POST /v1/mapping/validate does, and stores the valid ones. A record’s integration is accepted when it’s available to your organisation (its own, a parent organisation’s or a platform-wide one) or to the organisation of the record’s entity, so a parent organisation or a platform admin can map a publisher’s own integrations. Valid records are written even when others fail; the refused ones are returned in failed and not written. Records are written one at a time, not in a transaction, so if one write fails, those before it stay. With mode overwrite (the default) each value is inserted or replaced; with append, a field that already has a stored value for the entity, even an empty or will-not-map one, is left alone and counted in skipped. wnm stores a will-not-map marker instead of a value. An empty value is stored as empty, which the tag skips; to remove a value, delete it. Queues tag rebuilds for the publishers the changed values reach that use the integration: every one for an integration-level value, those with a config (ad unit) on the ad stack, those in the organisation or an organisation below it, or the one publisher. Only publishers whose built config changes are rebuilt; when more than 25 publishers are reached, the check runs in background tasks. With report_redundant, also returns the lower-level values the saved ones have made redundant, ready to send to DELETE /v1/mapping if you choose.
Authorizations
Query Parameters
Publisher ID. Accepts the integrations available to this publisher's organisation for every record, in place of your own organisation's. Unless you're a platform admin, the publisher must be in your own organisation. Rarely needed, as a record's integration is accepted anyway when it's available to the organisation of the record's own entity.
Body
How to treat a field that already has a stored value for the entity, including an empty or will-not-map one. Any other value returns a 400. Values: overwrite = Replace it (default), append = Leave it and count the record as skipped.
overwrite, append