A discovery document is a machine-readable specification for describing and consuming the Google Ads API's REST interface. It provides metadata that describes the services and resources of the API and can be helpful for generating client libraries, IDE plugins, and other tools that interact with the API. You can retrieve the discovery document for specific versions of the API at the following URL:
Filter to a specific version of the API (for example, v6) by
version parameter in the URL:
Google Ads API design
Generally, the Google Ads API follows a resource-oriented design, modeled as collections of individually-addressable resources (the nouns of the API). Resources are referenced with their resource names and manipulated using a small set of methods (also known as verbs or operations).
These resource names and methods, combined with a specific API version prefix, comprise the URLs of the REST interface. For example, the URL below can be broken down into these individual components according to the following table:
|API Version Prefix||Resource Name (relative)||Method|
All REST URLs for a particular version of the API (e.g.,
share a common API version prefix. The resource name and method together
identifies which API service is being called.
The Google Ads API makes heavy use of custom methods, as opposed to most
traditional REST APIs that use standard REST methods such as
delete. Examples of custom methods in the Google Ads API
The following pages go into more details about the Google Ads API's resource names, service methods, and JSON naming conventions to illustrate how they're used together to define REST interface endpoints.