Class AccountsResource.AdunitsResource.ListRequest
List all ad units in the specified publisher's AdSense account.
Inheritance
AccountsResource.AdunitsResource.ListRequest
Inherited Members
Namespace: Google.Apis.AdSenseHost.v4_1
Assembly: Google.Apis.AdSenseHost.v4_1.dll
Syntax
public class AccountsResource.AdunitsResource.ListRequest : AdSenseHostBaseServiceRequest<AdUnits>, IClientServiceRequest<AdUnits>, IClientServiceRequest
Constructors
ListRequest(IClientService, string, string)
Constructs a new List request.
Declaration
public ListRequest(IClientService service, string accountId, string adClientId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | accountId | |
string | adClientId |
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 for which to list ad units.
Declaration
[RequestParameter("adClientId", RequestParameterType.Path)]
public virtual string AdClientId { get; }
Property Value
Type | Description |
---|---|
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.AdUnits>.HttpMethod
IncludeInactive
Whether to include inactive ad units. Default: true.
Declaration
[RequestParameter("includeInactive", RequestParameterType.Query)]
public virtual bool? IncludeInactive { get; set; }
Property Value
Type | Description |
---|---|
bool? |
MaxResults
The maximum number of ad units to include in the response, used for paging.
Declaration
[RequestParameter("maxResults", RequestParameterType.Query)]
public virtual long? MaxResults { get; set; }
Property Value
Type | Description |
---|---|
long? |
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.AdUnits>.MethodName
PageToken
A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
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.AdSenseHost.v4_1.Data.AdUnits>.RestPath
Methods
InitParameters()
Initializes List parameter list.
Declaration
protected override void InitParameters()