Method: accounts.adclients.adunits.patch

Updates an ad unit.

This method can only be used by projects enabled for the AdSense for Platforms product.

For now, this method can only be used to update DISPLAY ad units. See:

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Output only. Resource name of the ad unit. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit}

Query parameters


string (FieldMask format)

The list of fields to update. If empty, a full update is performed.

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Request body

The request body contains an instance of AdUnit.

Response body

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

Authorization scopes

Requires the following OAuth scope: