Download tools and client libraries

Download the following tools to complete the remaining steps of this tutorial.


The Google Ads API uses OAuth 2.0 as the authorization mechanism. This tutorial uses oauth2l, a command-line tool for working with Google OAuth 2.0 to fetch and print the access and refresh tokens. You can download and install the pre-compiled binaries from the GitHub repository.

The instructions for the rest of this guide were verified to work with version v1.3.0 of the oauth2l tool and might not work with previous versions due to differences in application behavior or command line options.

Client library or HTTP client

You can choose to either download a client library or an HTTP client depending on how you'd like to make API calls.

Use a client library

Download and install a client library of your choice.

Use HTTP client (REST)

Download and install curl, the command line tool for transferring data through a URL.