Class AccountsResource.AdclientsResource.GetAdcodeRequest
Gets the AdSense code for a given ad client. This returns what was previously known as the 'auto ad code'. This is only supported for ad clients with a product_code of AFC. For more information, see About the AdSense code.
Inheritance
AccountsResource.AdclientsResource.GetAdcodeRequest
Inherited Members
Namespace: Google.Apis.Adsense.v2
Assembly: Google.Apis.Adsense.v2.dll
Syntax
public class AccountsResource.AdclientsResource.GetAdcodeRequest : AdsenseBaseServiceRequest<AdClientAdCode>, IClientServiceRequest<AdClientAdCode>, 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.AdClientAdCode>.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.AdClientAdCode>.MethodName
Name
Required. Name of the ad client for which to get the adcode. Format: accounts/{account}/adclients/{adclient}
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.AdClientAdCode>.RestPath
Methods
InitParameters()
Initializes GetAdcode parameter list.
Declaration
protected override void InitParameters()