audienceUsage
get
/ccadmin/v1/audienceUsage/{id}
Audience Usage. Retrieve the list of Audience consumers. The items in the response will have the following fields: id, displayName, assetType, assetTypeDisplayName, description. Items may also have an optional additionalMetaData property.
Request
Supported Media Types
- application/json
Query Parameters
- fields
-
Type:
stringThis controls which fields are returned in the response body. The default is to include the top-level response fields and the Audience id, displayName, description, and enabled fields.- limit
Type:integerThis is the field to specify the number of records to be fetched per REST call.- offset
Type:integerThis field specifies the offset/starting index from which data is to be fetched.- q
Type:stringThis field allows you to filter the results using SCIM filtering syntax. For example, q=displayName co "aud" or description co "aud"- sort
Type:stringThis field specifies the sort order of the list to be fetched. You can sort on id, displayName, assetType, assetTypeDisplayName or description. The secondary sort field will always be assetTypeDisplayName except when sorting by that property. In that case, the secondary sort will be by displayName. The default value is displayName:asc- totalResults
Type:booleanIndicates if the total results should be included in the response. Defaults to trueResponse
Supported Media Types- application/json
200 ResponseFollowing model is returned when operation succeeds.BodyRoot Schema : audienceUsage_response- items
-
Type:
arrayitemsAdditional Properties Allowed:The returned list of audience consumers. - limit
-
Type:
integerMaximum number of audience consumers to be fetched. - offset
-
Type:
integerThe starting index of the returned audience consumers. - sort
-
Type:
objectsortAdditional Properties Allowed:The sort used for the returned audience consumers. - totalResults
-
Type:
integerThe total number of audience consumers that match the supplied filter.
Nested Schema : itemsNested Schema : sortType:objectThe sort used for the returned audience consumers.- order
-
Type:
stringThe sort order: either asc or desc. - property
-
Type:
stringThe property sorted on. Can be id, displayName, assetType, assetTypeDisplayName or description.
Nested Schema : itemsType:object- assetType
-
Type:
stringIndicates the type of consumer. I.e. audience, experiment, slot, etc. - assetTypeDisplayName
-
Type:
stringThe user-friendly display name of the assetType. - description
-
Type:
stringThe audience consumer description. - displayName
-
Type:
stringThe audience consumer display name. - id
-
Type:
stringThe audience consumer ID.
Example application/json
{ "totalResults":2, "offset":0, "limit":40, "items":[ { "assetTypeDisplayName":"Audience", "displayName":"Audience 2", "description":"audience2 audience2 audience2", "id":"audience2", "assetType":"audience" }, { "assetTypeDisplayName":"Slot", "displayName":"Slot 1", "description":"slot1 slot1 slot1", "id":"slot1", "additionalMetadata":{ "layoutID":"layout1" }, "assetType":"slot" } ] }Default ResponseThe error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------|BodyRoot Schema : errorModelType:object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errorsNested Schema : itemsType:object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
{ "totalResults": 2, "offset": 0, "limit": 40, "items": [ { "assetTypeDisplayName": "Audience", "displayName": "Audience 2", "description": "audience2 audience2 audience2", "id": "audience2", "assetType": "audience" }, { "assetTypeDisplayName": "Slot", "displayName": "Slot 1", "description": "slot1 slot1 slot1", "id": "slot1", "additionalMetadata": {"layoutID": "layout1"}, "assetType": "slot" } ] }