In order to access Vistar’s Ad Serving API, a unique Network ID and API key are required as credentials in order to authenticate. You can retrieve your unique Network ID and API key from the ad platform. After you retrieve your credentials, you must then use the Network ID and API key when making API calls to request for ads.
Note that your staging and production credentials are separate and can only be used for the corresponding staging and production endpoint URLs. For example, you cannot use your staging credentials for the production endpoint.
To retrieve the Network ID and API key
- Log in to the ad platform using one of the following URLs, depending on which environment you need to access:
- Click Networks in the side navigation bar. The Networks view appears.
- Click the name of the network. The network details view appears. The summary bar in this view includes the Network ID and API Key. You can use these unique credentials to authenticate and make ad requests to Vistar’s Ad Serving API.
To authenticate using your credentials
Depending on the environment, use the following endpoint URL to authenticate (using the
api_key parameters) and make an ad request.
Note: See Ad Serving API for more information about the body parameters of the sample JSON request.
Sample JSON request