Method: networks.adUnits.get

  • This API retrieves a specific AdUnit object using an HTTP GET request.

  • The request requires a path parameter to identify the AdUnit by network code and ad unit ID.

  • An empty request body is necessary, and a successful response returns an AdUnit object.

  • Authorization is required using the https://www.googleapis.com/auth/admanager OAuth scope.

API to retrieve an AdUnit object.

HTTP request

GET https://admanager.googleapis.com/v1/{name}

Path parameters

Parameters
name

string

Required. The resource name of the AdUnit. Format: networks/{networkCode}/adUnits/{adUnitId}

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of AdUnit.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/admanager

For more information, see the OAuth 2.0 Overview.