Class AccountsResource.AdunitsResource.GetAdCodeRequest
Get ad code for the specified ad unit, attaching the specified host custom channels.
Inheritance
AccountsResource.AdunitsResource.GetAdCodeRequest
Inherited Members
Namespace: Google.Apis.AdSenseHost.v4_1
Assembly: Google.Apis.AdSenseHost.v4_1.dll
Syntax
public class AccountsResource.AdunitsResource.GetAdCodeRequest : AdSenseHostBaseServiceRequest<AdCode>, IClientServiceRequest<AdCode>, IClientServiceRequest
Constructors
GetAdCodeRequest(IClientService, string, string, string)
Constructs a new GetAdCode request.
Declaration
public GetAdCodeRequest(IClientService service, string accountId, string adClientId, string adUnitId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
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 with contains the ad unit.
Declaration
[RequestParameter("adClientId", RequestParameterType.Path)]
public virtual string AdClientId { get; }
Property Value
Type | Description |
---|---|
string |
AdUnitId
Ad unit to get the code for.
Declaration
[RequestParameter("adUnitId", RequestParameterType.Path)]
public virtual string AdUnitId { get; }
Property Value
Type | Description |
---|---|
string |
HostCustomChannelId
Host custom channel to attach to the ad code.
Declaration
[RequestParameter("hostCustomChannelId", RequestParameterType.Query)]
public virtual Repeatable<string> HostCustomChannelId { get; set; }
Property Value
Type | Description |
---|---|
Repeatable<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.AdCode>.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.AdCode>.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.AdCode>.RestPath
Methods
InitParameters()
Initializes GetAdCode parameter list.
Declaration
protected override void InitParameters()