Sign up for Microsoft Advertising and use the same credentials get a developer token . The developer token will be inserted as the DEVELOPER_TOKEN in the code example below.

Register a native app via the Application Registration Portal . Be sure to take note of the Application Id that will be used as the CLIENT_ID in the code example below.

You will need to install either Python 2.7 or 3.4 in your development environment.

For more information about Python virtual environments, see PEP 405 - Python Virtual Environments .

Create a new python file e.g., get-started.py and add the following code. Edit the CLIENT_ID and DEVELOPER_TOKEN with the values provisioned above, and then save the file.