Contextual Targeting Queries
Operations related to Contextual Targeting Queries for defining and managing contextual targeting rules based on keywords, entities, and IAB categories. Supports flexible keyword matching (comma-separated, case-insensitive, accent-sensitive) with up to 2,000 keywords per targeting list for precise content-based audience identification.
Get a semantic contextual targeting query
get/organisations/{organisation_id}/contextual/queries/{query_id}
Path parameters
organisation_idinteger · int64Required
query_idinteger · int64Required
Responses
200
Success !
application/json
statusstring · enumRequiredPossible values:
400
Error response
application/json
401
Error response
application/json
403
Error response
application/json
404
Error response
application/json
500
Error response
application/json
503
Error response
application/json
get/organisations/{organisation_id}/contextual/queries/{query_id}
GET /v1/organisations/{organisation_id}/contextual/queries/{query_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"last_modified_ts": 0,
"last_modified_by": "text",
"created_ts": 0,
"organisation_id": "text",
"id": "text",
"created_by": "text",
"query_data": {
"language_name": "JSON_SEMANTIC",
"language_version": "V1",
"query": {}
}
}
}Update a semantic contextual targeting query
put/organisations/{organisation_id}/contextual/queries/{query_id}
Path parameters
organisation_idinteger · int64Required
query_idinteger · int64Required
Body
last_modified_tsinteger · int64Read-onlyOptionalDefault:
0last_modified_bystringRead-onlyOptional
created_tsinteger · int64Read-onlyRequiredDefault:
0organisation_idstringRead-onlyRequired
idstringRead-onlyRequired
created_bystringRead-onlyRequired
Responses
200
Success !
application/json
statusstring · enumRequiredPossible values:
400
Error response
application/json
401
Error response
application/json
403
Error response
application/json
404
Error response
application/json
500
Error response
application/json
503
Error response
application/json
put/organisations/{organisation_id}/contextual/queries/{query_id}
PUT /v1/organisations/{organisation_id}/contextual/queries/{query_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 83
{
"query_data": {
"language_name": "JSON_SEMANTIC",
"language_version": "V1",
"query": {}
}
}{
"status": "ok",
"data": {
"last_modified_ts": 0,
"last_modified_by": "text",
"created_ts": 0,
"organisation_id": "text",
"id": "text",
"created_by": "text",
"query_data": {
"language_name": "JSON_SEMANTIC",
"language_version": "V1",
"query": {}
}
}
}Path parameters
organisation_idinteger · int64Required
Body
last_modified_tsinteger · int64Read-onlyOptionalDefault:
0last_modified_bystringRead-onlyOptional
created_tsinteger · int64Read-onlyRequiredDefault:
0organisation_idstringRead-onlyRequired
idstringRead-onlyRequired
created_bystringRead-onlyRequired
Responses
200
Success !
application/json
statusstring · enumRequiredPossible values:
400
Error response
application/json
401
Error response
application/json
403
Error response
application/json
404
Error response
application/json
500
Error response
application/json
503
Error response
application/json
post/organisations/{organisation_id}/contextual/queries
POST /v1/organisations/{organisation_id}/contextual/queries HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 83
{
"query_data": {
"language_name": "JSON_SEMANTIC",
"language_version": "V1",
"query": {}
}
}{
"status": "ok",
"data": {
"last_modified_ts": 0,
"last_modified_by": "text",
"created_ts": 0,
"organisation_id": "text",
"id": "text",
"created_by": "text",
"query_data": {
"language_name": "JSON_SEMANTIC",
"language_version": "V1",
"query": {}
}
}
}Last updated
Was this helpful?