Class AccountsResource.AdclientsResource.CustomchannelsResource.CreateRequest
Creates a custom channel. 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.
Inheritance
AccountsResource.AdclientsResource.CustomchannelsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.Adsense.v2
Assembly: Google.Apis.Adsense.v2.dll
Syntax
public class AccountsResource.AdclientsResource.CustomchannelsResource.CreateRequest : AdsenseBaseServiceRequest<CustomChannel>, IClientServiceRequest<CustomChannel>, IClientServiceRequest
Constructors
CreateRequest(IClientService, CustomChannel, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, CustomChannel body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
CustomChannel | body | |
string | parent |
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.CustomChannel>.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.CustomChannel>.MethodName
Parent
Required. The ad client to create a custom channel under. Format: accounts/{account}/adclients/{adclient}
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { 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.CustomChannel>.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.Adsense.v2.Data.CustomChannel>.GetBody()
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()