Show / Hide Table of Contents

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
System.Object
ClientServiceRequest
ClientServiceRequest<AdClientAdCode>
AdsenseBaseServiceRequest<AdClientAdCode>
AccountsResource.AdclientsResource.GetAdcodeRequest
Implements
IClientServiceRequest<AdClientAdCode>
IClientServiceRequest
Inherited Members
AdsenseBaseServiceRequest<AdClientAdCode>.Xgafv
AdsenseBaseServiceRequest<AdClientAdCode>.AccessToken
AdsenseBaseServiceRequest<AdClientAdCode>.Alt
AdsenseBaseServiceRequest<AdClientAdCode>.Callback
AdsenseBaseServiceRequest<AdClientAdCode>.Fields
AdsenseBaseServiceRequest<AdClientAdCode>.Key
AdsenseBaseServiceRequest<AdClientAdCode>.OauthToken
AdsenseBaseServiceRequest<AdClientAdCode>.PrettyPrint
AdsenseBaseServiceRequest<AdClientAdCode>.QuotaUser
AdsenseBaseServiceRequest<AdClientAdCode>.UploadType
AdsenseBaseServiceRequest<AdClientAdCode>.UploadProtocol
ClientServiceRequest<AdClientAdCode>.Execute()
ClientServiceRequest<AdClientAdCode>.ExecuteAsStream()
ClientServiceRequest<AdClientAdCode>.ExecuteAsync()
ClientServiceRequest<AdClientAdCode>.ExecuteAsync(CancellationToken)
ClientServiceRequest<AdClientAdCode>.ExecuteAsStreamAsync()
ClientServiceRequest<AdClientAdCode>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<AdClientAdCode>.CreateRequest(Nullable<Boolean>)
ClientServiceRequest<AdClientAdCode>.GenerateRequestUri()
ClientServiceRequest<AdClientAdCode>.GetBody()
ClientServiceRequest<AdClientAdCode>.GetDefaultETagAction(String)
ClientServiceRequest<AdClientAdCode>.ETagAction
ClientServiceRequest<AdClientAdCode>.ModifyRequest
ClientServiceRequest<AdClientAdCode>.ValidateParameters
ClientServiceRequest<AdClientAdCode>.RequestParameters
ClientServiceRequest<AdClientAdCode>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Adsense.v2
Assembly: Google.Apis.Adsense.v2.dll
Syntax
public class 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
System.String name

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
System.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
System.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
System.String

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Adsense.v2.Data.AdClientAdCode>.RestPath

Methods

InitParameters()

Initializes GetAdcode parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.Adsense.v2.AdsenseBaseServiceRequest<Google.Apis.Adsense.v2.Data.AdClientAdCode>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In This Article
Back to top