Retrieve a List of Device Capabilities

Document created by pubmatic-archivist on Mar 27, 2017Last modified by catherine.racette on Nov 14, 2017
Version 4Show Document
  • View in full screen mode

Before using PubMatic APIs, first generate the API Token. For more information, refer to Getting Started with PubMatic APIs

Overview

This API enables you to retrieve a list of all device capabilities supported by PubMatic for targeting.

Request

         

URIhttp://{domainName}/common/devicecapability?dimensions=name,id&sort=id
HTTP MethodGET

Request Headers

                 

Header NameTypeValueRequiredDescription
AuthorizationStringBearer ${access_token}YesNeed to send the access token generating for authentication at the place of ${access_token}.
For more information about access tokens, refer to Getting Started with PubMatic APIs.

Response

Response Body

                  

Response Body ParameterTypeDescription
idIntegerUnique identifier for device capability
nameStringName of the device capability

Sample Response JSON

 

{
                "metaData": {
                       "startIndex": 1,
                       "totalRecords": 6,

                       "endIndex": 6

                },

                "items": [{

                       "id": 1,

                       "name": "Phone calls"

                }, {

                       "id": 2,

                       "name": "Ringtone download support"

                }, {

                       "id": 3,

                       "name": "Video download support"

                }, {



                        "id": 4,

                        "name": "Video streaming support"

                }, {

                        "id": 5,

                        "name": "Touchscreen support"

                }, {

                        "id": 6,

                        "name": "NFC support"

                }]

}

Error Codes

    

[
{
   "errorCode": "CC03_0004",
   "error": "Resource not found"
}
]

Attachments

    Outcomes