v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13253679.9 KB
accounts

Updates an ad unit. This method can be called only by a restricted set of projects, which are usually owned by AdSense for Platforms publishers. Contact your account manager if you need to use this method. For now, this method can only be used to update DISPLAY ad units. See: https://support.google.com/adsense/answer/9183566

patch/v2/{+name}

Path parameters

namestring required

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

Query parameters

updateMaskstring

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

Request body

reportingDimensionIdstring

Output only. Unique ID of the ad unit as used in the AD_UNIT_ID reporting dimension.

displayNamestring

Required. Display name of the ad unit, as provided when the ad unit was created.

state'STATE_UNSPECIFIED' | 'ACTIVE' | 'ARCHIVED'

Required. State of the ad unit.

namestring

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

Response

Successful response