Retrieving Details of an Ad Size

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

Overview

This API allows you to retrieve the details of a specific ad size from the PubMatic system.

Request

         

URI
http://{domainName}/common/adSize/{id}
HTTP Method
GET

Request Headers

                 

Header Name
Type
Value
Required
Description
Authorization
String
Bearer ${access_token}
Yes

Publisher Token to authenticate and authorize the user calling the Unified Ad Server API. Send the access token generated for authentication at the place of ${access_token} in the request.

 

For more information about access tokens, refer to Getting Started with PubMatic APIs.

Request Path Parameters

               

Parameter Name
Type
Required
Description
id
integer
yes
ID of the ad size.

Response

Response Headers

           

Response Header Name
Type
Content-type 
application-json

Response Body

                                      

Response Body Parameter
Type
Description
adSizeId
Integer
Unique identifier of the ad size.
name
String
Name of the ad size.
width
Integer
Width of the ad size.
height
Integer
Height of the ad size.
platforms.id
Integer
Unique identifier of the platform.
platforms.name
String
Name of the platform.

Sample Response JSON



{
    "adSizeId": 78,
    "name": "Mobile - 800x1280",
    "width": 800,
    "height": 1280,
    "platforms": [
        {
            "id": 2,
            "name": "Mobile Web"
        },
        {
            "id": 4,
            "name": "Mobile App IOS"
        },
        {
            "id": 5,
            "name": "Mobile App Android"
        }
}

Error Codes

Error codes specific to this API method.

           

Error Code
Error Description
CC03_004
Resource not found

Attachments

    Outcomes