Skip to end of metadata
Go to start of metadata

Adserver Category Mapping

The Adserver Category Mapping Service returns all or a specific adserver category mapping as well as enabling the creation, update and deletion of adserver category mappings. 

REST API

Get all adserver category mappings. 

Create a new adserver category mapping. 

Update an existing adserver category mapping. 

Delete an existing adserver category mapping. 

GET

Returns all adserver category mappings. To return a specific adserver category mapping append the adserver category mapping's id as the last path component of the URL. 

Example call using curl.

Example call using curl to return a specific adserver category mapping.

Response

A successful response will return a JSON object containing an array of adserver category mapping objects. 

PropertyTypeDescription
mappingsarrayAn array of adserver category mapping objects.
member_idintegerThe unique identifier of the caller's member.
 

Example response:

POST

Enables the creation of a new adserver category mapping object. 

Example call using curl: 


Parameters:

NameTypeScopeDescription
adserver_category_code
stringRequiredWhich adserver category that will be associated with the adserver category mapping.
iab_subcategory_codestringRequiredThe IAB subcategory code for the adserver category mapping.

Example JSON file: 

Response

On success, the created adserver category mapping object will be returned.

PUT

Enables the updating of an existing adserver category mapping object. Append the adserver category mapping id as the last path component of the URL. 

Example call using curl: 

Parameters:

NameTypeScopeDescription
name
stringRequiredThe name of the adserver category mapping.

Example JSON file: 

Response

On success, the updated adserver category mapping object will be returned. Append the adserver category mapping id as the last path component of the URL. 

DELETE

Enables the deletion of an existing adserver category mapping object. 

Example call using curl: 

Response:

A successful deletion notification object.

  • No labels