This API exposes operations to allow management of AdSpaces within the Cxense Advertising platform.
This API can be accessed by users with the appropriate permissions to manage AdSpaces and supports the following combination of operations on AdSpace domain objects:
|
Object |
Supported operations |
|---|---|
|
AdSpace |
POST, GET, PUT and DELETE |
|
AdSpace list |
GET |
Retrieving the list of AdSpaces within a Publishing Folder
The GET operation is supported for listing AdSpaces stored in a folder.
GET
Retrieve all of the AdSpaces contained within the Folder with the given folderId.
|
Parameters:
-
cxadbaseurl the base URL of the Cxense Advertising system
-
folderId the id of the Folder for which the AdSpaces are to be retrieved (can be determined as detailed in Folder REST API - GET operation)
Example commands:
|
This XML example shows the contents returned from a typical GET call:
|
Individual AdSpaces
The POST, GET, PUT and DELETE operations are supported for management of individual AdSpaces.
POST
In order to be able to create a AdSpace the user must first decide in what location (or Folder) the AdSpace is to be created.
A list of Folders at any given point in the tree of publishing folders can be retrieved, starting from the top-level Publishing Folder and working down the tree. Please refer to Folder REST API for details on how to discover Folders in Cxense Advertising.
Perform a POST operation with the following URL to create a new AdSpace under the Folder with the given folderId
|
Parameters:
-
cxadbaseurl the base URL of the Cxense Advertising system
-
folderId the id of the Folder under which the new AdSpace is to be created (can be determined as detailed in Folder REST API - GET operation)
This XML example shows the contents required to be supplied for a POST call:
Click to view XML example
|
Example commands:
|
|
GET
Retrieve the AdSpace with the given adSpaceId
|
Parameters:
-
cxadbaseurl the base URL of the Cxense Advertising system
-
adSpaceId the id of the AdSpace to be retrieved
Example command:
|
This XML example shows the contents returned from a typical GET call:
|
PUT
Update the AdSpace with the given adSpaceId
|
Parameters:
-
cxadbaseurl the base URL of the Cxense Advertising system
-
adSpaceId the id of the AdSpace to be updated
Example command:
|
DELETE
Delete the AdSpace with the given adSpaceId
|
Parameters:
-
cxadbaseurl the base URL of the Cxense Advertising system
-
adSpaceId the id of the AdSpace to be deleted
Example command:
|