Class AccountsResource.AdclientsResource.AdunitsResource.GetAdcodeRequest
Gets the ad unit code for a given ad unit. For more information, see About the AdSense code and Where to place the ad code in your HTML.
Inheritance
AccountsResource.AdclientsResource.AdunitsResource.GetAdcodeRequest
Inherited Members
Namespace: Google.Apis.Adsense.v2
Assembly: Google.Apis.Adsense.v2.dll
Syntax
public class AccountsResource.AdclientsResource.AdunitsResource.GetAdcodeRequest : AdsenseBaseServiceRequest<AdUnitAdCode>, IClientServiceRequest<AdUnitAdCode>, IClientServiceRequest
Constructors
GetAdcodeRequest(IClientService, string)
Constructs a new GetAdcode request.
Declaration
public GetAdcodeRequest(IClientService service, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
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.AdUnitAdCode>.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.AdUnitAdCode>.MethodName
Name
Required. Name of the adunit for which to get the adcode. 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.AdUnitAdCode>.RestPath
Methods
InitParameters()
Initializes GetAdcode parameter list.
Declaration
protected override void InitParameters()