Class AccountsResource.AdunitsResource.PatchRequest
Update the supplied ad unit in the specified publisher AdSense account. This method supports patch semantics.
Inheritance
AccountsResource.AdunitsResource.PatchRequest
Inherited Members
Namespace: Google.Apis.AdSenseHost.v4_1
Assembly: Google.Apis.AdSenseHost.v4_1.dll
Syntax
public class AccountsResource.AdunitsResource.PatchRequest : AdSenseHostBaseServiceRequest<AdUnit>, IClientServiceRequest<AdUnit>, IClientServiceRequest
Constructors
PatchRequest(IClientService, AdUnit, string, string, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, AdUnit body, string accountId, string adClientId, string adUnitId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
AdUnit | body | |
string | accountId | |
string | adClientId | |
string | adUnitId |
Properties
AccountId
Account which contains the ad client.
Declaration
[RequestParameter("accountId", RequestParameterType.Path)]
public virtual string AccountId { get; }
Property Value
Type | Description |
---|---|
string |
AdClientId
Ad client which contains the ad unit.
Declaration
[RequestParameter("adClientId", RequestParameterType.Path)]
public virtual string AdClientId { get; }
Property Value
Type | Description |
---|---|
string |
AdUnitId
Ad unit to get.
Declaration
[RequestParameter("adUnitId", RequestParameterType.Query)]
public virtual string AdUnitId { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.AdSenseHost.v4_1.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.AdSenseHost.v4_1.Data.AdUnit>.MethodName
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.AdSenseHost.v4_1.Data.AdUnit>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.AdSenseHost.v4_1.Data.AdUnit>.GetBody()
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()