Update measurement source
curl --request PATCH \
--url https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/measurement-sources/{sourceId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"outcomeType": "<string>"
}
'import requests
url = "https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/measurement-sources/{sourceId}"
payload = { "outcomeType": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({outcomeType: '<string>'})
};
fetch('https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/measurement-sources/{sourceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Measurement
Update measurement source
Update a measurement source.
PATCH
/
advertisers
/
{advertiserId}
/
measurement-sources
/
{sourceId}
Update measurement source
curl --request PATCH \
--url https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/measurement-sources/{sourceId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"outcomeType": "<string>"
}
'import requests
url = "https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/measurement-sources/{sourceId}"
payload = { "outcomeType": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({outcomeType: '<string>'})
};
fetch('https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/measurement-sources/{sourceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Authorizations
API key or access token
Path Parameters
Unique identifier for the advertiser
Minimum string length:
1Example:
"12345"
Body
application/json
Minimum string length:
1Minimum string length:
1Minimum string length:
1Required range:
0 <= x <= 9007199254740991Available options:
continuous, daily, weekly, biweekly, monthly, quarterly Minimum string length:
1Show child attributes
Show child attributes
Required range:
0 <= x <= 1Available options:
pending, active, paused The measurement vendor as AdCP identifies it. Required before vendorMetrics can be set; send null on update to clear it.
Show child attributes
Show child attributes
The vendor metrics this source reports, each mapped to one of the source's outcome types. Records uploaded under that outcome type count as the vendor metric.
Maximum array length:
50Show child attributes
Show child attributes
Response
Update measurement source