Class AccountsResource.AdclientsResource.AdunitsResource.PatchRequest
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
Inheritance
AccountsResource.AdclientsResource.AdunitsResource.PatchRequest
Inherited Members
Namespace: Google.Apis.Adsense.v2
Assembly: Google.Apis.Adsense.v2.dll
Syntax
public class AccountsResource.AdclientsResource.AdunitsResource.PatchRequest : AdsenseBaseServiceRequest<AdUnit>, IClientServiceRequest<AdUnit>, IClientServiceRequest
Constructors
PatchRequest(IClientService, AdUnit, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, AdUnit body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
AdUnit | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Adsense.v2.Data.AdUnit>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Adsense.v2.Data.AdUnit>.MethodName
Name
Output only. Resource name of the ad unit. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit}
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Adsense.v2.Data.AdUnit>.RestPath
UpdateMask
The list of fields to update. If empty, a full update is performed.
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type | Description |
---|---|
object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Adsense.v2.Data.AdUnit>.GetBody()
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()