Import the Collection

To import a collection into Postman, click the Import button.

If you cloned the repository using Git, choose "Import Folder" and select the folder that you cloned. Or drag and drop, if you prefer.

This will import both the environment and the collection at the same time.

If you chose not to install Git or clone the repository, you will need to select "Paste Raw Text" and copy/paste both the collection and environment JSON separately.

Checking the Environment

At this point, you should have both the collection and environment loaded into Postman. To check the environment, click the gear then click "Manage Environments" in the upper-right of Postman.

Here, you should see the newly imported "Advertising API" environment.

Click it to expand its properties and update the CLIENT_ID, CLIENT_SECRET, PROFILE_ID and REFRESH_TOKEN fields with your own.

Click "Update" when you are fnished. Before continuing, make sure the Advertising API is the active environment.

Checking the Collection

You should see the newly imported Advertising API collection. Not all API calls have been implemented.

Refresh the Access Token

Prior to making any API call, you must have a valid access token. Access tokens are only valid for one hour. After which, you must generate a new one. Click "getAccessToken" in the collections window.

On the right-hand side of Postman, feel free to look at the headers and other properties that make up the getAccessToken call.

You will also notice on the "Tests" tab there is some code that will automatically set the access and refresh token environment variables. This is for convenience. Code here is invoked after the call is made. You can find more details in the Postman documentation.

Click "Send".