Location Selections
Operations related to Location Selections that define the geographical targeting of a Display Campaign or one of its Ad Groups. Support inclusion and exclusion of locations to restrict ad delivery to the relevant areas.
Path parameters
campaign_idinteger · int64Required
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/display_campaigns/{campaign_id}/locations/{id}
GET /v1/display_campaigns/{campaign_id}/locations/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"postal_code": "text",
"geoname_id": "text",
"type": "POSTAL_CODE",
"country": "text",
"geozone_id": "text",
"exclude": false,
"admin1": "text",
"admin2": "text",
"city": "text",
"id": "text"
}
}Path parameters
campaign_idinteger · int64Required
idinteger · int64Required
Body
postal_codestringOptional
geoname_idstringOptional
typestring · enumRequiredPossible values:
countrystringOptional
geozone_idstringOptional
excludebooleanRequiredDefault:
falseadmin1stringOptional
admin2stringOptional
citystringOptional
idstringRequired
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/display_campaigns/{campaign_id}/locations/{id}
PUT /v1/display_campaigns/{campaign_id}/locations/{id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 174
{
"postal_code": "text",
"geoname_id": "text",
"type": "POSTAL_CODE",
"country": "text",
"geozone_id": "text",
"exclude": false,
"admin1": "text",
"admin2": "text",
"city": "text",
"id": "text"
}{
"status": "ok",
"data": {
"postal_code": "text",
"geoname_id": "text",
"type": "POSTAL_CODE",
"country": "text",
"geozone_id": "text",
"exclude": false,
"admin1": "text",
"admin2": "text",
"city": "text",
"id": "text"
}
}Path parameters
campaign_idinteger · int64Required
idinteger · int64Required
Responses
200
Success response
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
delete/display_campaigns/{campaign_id}/locations/{id}
DELETE /v1/display_campaigns/{campaign_id}/locations/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Path parameters
campaign_idinteger · int64Required
Responses
200
Success !
application/json
max_resultsintegerRequired
first_resultintegerRequired
countintegerRequired
statusstring · enumRequiredPossible values:
totalintegerRequired
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/display_campaigns/{campaign_id}/locations
GET /v1/display_campaigns/{campaign_id}/locations HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"max_results": 1,
"first_result": 1,
"count": 1,
"status": "ok",
"total": 1,
"data": [
{
"postal_code": "text",
"geoname_id": "text",
"type": "POSTAL_CODE",
"country": "text",
"geozone_id": "text",
"exclude": false,
"admin1": "text",
"admin2": "text",
"city": "text",
"id": "text"
}
]
}Path parameters
campaign_idinteger · int64Required
Body
postal_codestringOptional
geoname_idstringOptional
typestring · enumRequiredPossible values:
countrystringOptional
geozone_idstringOptional
excludebooleanRequiredDefault:
falseadmin1stringOptional
admin2stringOptional
citystringOptional
idstringRequired
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/display_campaigns/{campaign_id}/locations
POST /v1/display_campaigns/{campaign_id}/locations HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 174
{
"postal_code": "text",
"geoname_id": "text",
"type": "POSTAL_CODE",
"country": "text",
"geozone_id": "text",
"exclude": false,
"admin1": "text",
"admin2": "text",
"city": "text",
"id": "text"
}{
"status": "ok",
"data": {
"postal_code": "text",
"geoname_id": "text",
"type": "POSTAL_CODE",
"country": "text",
"geozone_id": "text",
"exclude": false,
"admin1": "text",
"admin2": "text",
"city": "text",
"id": "text"
}
}Last updated
Was this helpful?