Page tree


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

Overview

This API allows you to retrieve the list of all the ad networks present in the PubMatic system.

Request

         

URIhttp://{domainName}/common/adNetwork?pageSize=20&pageNumber=1
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.

Request Query Parameters

                     

Parameter NameTypeRequiredDescription
pageNumberIntegerOptional

Page number to be fetched in case of multiple pages.
Its default value is 1.

pageSizeIntegerOptional

Maximum number of rows to be included in the response.
Its default value is 100.

Response

Response Headers

           

Response Header NameType
Content-type application-json

Response Body

                            

Response Body ParameterTypeDescription
metaDataObjectPagination details
adNetworkIdIntegerUnique identifier of the ad network.
nameStringName of the ad network.
networkTypeStringType of ad network. Possible values are NON_INTEGRATED and INTEGRATED.

Sample Response JSON

{
     "metaData": {
     "startIndex": 1,
     "request": {
       "pageSize": 3,
       "pageNumber": 1
     },
     "totalRecords": 1534,
     "endIndex": 3
   },
   "items": [
     {
       "adNetworkId": 11,
       "name": "121Media",
       "networkType": "NON_INTEGRATED"
     },
     {
       "adNetworkId": 1439,
       "name": "152Media 100% Fill",
       "networkType": "NON_INTEGRATED"
     },
     {
       "adNetworkId": 1487,
       "name": "152Media CA 100% Fill",
       "networkType": "NON_INTEGRATED"
     }
   ]
  }‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍