Method: accounts.adUnits.create

  • This method creates an ad unit under a specified AdMob account.

  • The HTTP request uses a POST method to the specified URL.

  • The request requires a parent parameter in the path, which is the resource name of the account.

  • The request body contains an instance of AdUnit , and the successful response body contains a newly created AdUnit .

  • The method requires the https://www.googleapis.com/auth/admob.monetization authorization scope.

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 .

Design a Mobile Site
View Site in Mobile | Classic
Share by: