curl --request PUT \
--url https://app.tryordinal.com/api/v1/analytics/cpm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"linkedIn": 35
}'{
"linkedIn": 35,
"x": 12,
"instagram": 15,
"facebook": 10,
"threads": 10
}{
"code": "BAD_REQUEST",
"message": "Bad Request",
"data": {
"errors": {
"publishAt": [
"Invalid date format"
],
"status": [
"Invalid enum value"
]
}
}
}{
"code": "UNAUTHORIZED",
"message": "Invalid or unauthorized API key"
}{
"code": "FORBIDDEN",
"message": "Engagement profiles cannot be used for analytics"
}Analytics
Update CPM Values
Update the CPM (Cost Per Mille) values used for EMV (Earned Media Value) calculations. You can update one or more platform CPM values in a single request. Only provide the platforms you want to update.
PUT
/
analytics
/
cpm
curl --request PUT \
--url https://app.tryordinal.com/api/v1/analytics/cpm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"linkedIn": 35
}'{
"linkedIn": 35,
"x": 12,
"instagram": 15,
"facebook": 10,
"threads": 10
}{
"code": "BAD_REQUEST",
"message": "Bad Request",
"data": {
"errors": {
"publishAt": [
"Invalid date format"
],
"status": [
"Invalid enum value"
]
}
}
}{
"code": "UNAUTHORIZED",
"message": "Invalid or unauthorized API key"
}{
"code": "FORBIDDEN",
"message": "Engagement profiles cannot be used for analytics"
}Authorizations
API key authentication. Generate an API key from your workspace settings.
Body
application/json
Input for updating CPM values. All fields are optional - only provide the platforms you want to update.
Response
Updated CPM values for all platforms
CPM (Cost Per Mille) values for EMV calculations across all platforms
Was this page helpful?