Method: accounts.adUnits.create

Creates an ad unit under the specified AdMob account.

HTTP request

POST https://admob.googleapis.com/v1beta/{parent=accounts/*}/adUnits

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Resource name of the account to create the specified ad unit for. Example: accounts/pub-9876543210987654

Request body

The request body contains an instance of AdUnit.

Response body

If successful, the response body contains a newly created instance of AdUnit.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/admob.monetization

For more information, see the OAuth 2.0 Overview.