Method: accounts.adUnits.adUnitMappings.create

  • This method allows you to create an ad unit mapping under a specific AdMob account and ad unit.

  • The method requires specific authorization scopes and may have limited access.

  • The request uses a POST HTTP method and specifies required path parameters including the parent ad unit.

  • The request and response bodies contain instances of AdUnitMapping.

Create an ad unit mapping under the specific AdMob account and ad unit.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent which owns the ad unit mapping. Format: accounts/{publisherId}/adUnits/{adUnitId}

Request body

The request body contains an instance of AdUnitMapping.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.