Class PlatformsResource.AccountsResource
The "accounts" collection of methods.
Inherited Members
Namespace: Google.Apis.AdSensePlatform.v1
Assembly: Google.Apis.AdSensePlatform.v1.dll
Syntax
public class PlatformsResource.AccountsResource
Constructors
AccountsResource(IClientService)
Constructs a new resource.
Declaration
public AccountsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Events
Gets the Events resource.
Declaration
public virtual PlatformsResource.AccountsResource.EventsResource Events { get; }
Property Value
Type | Description |
---|---|
PlatformsResource.AccountsResource.EventsResource |
Sites
Gets the Sites resource.
Declaration
public virtual PlatformsResource.AccountsResource.SitesResource Sites { get; }
Property Value
Type | Description |
---|---|
PlatformsResource.AccountsResource.SitesResource |
Methods
Close(CloseAccountRequest, string)
Closes a sub-account.
Declaration
public virtual PlatformsResource.AccountsResource.CloseRequest Close(CloseAccountRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
CloseAccountRequest | body | The body of the request. |
string | name | Required. Account to close. Format: platforms/{platform}/accounts/{account_id} |
Returns
Type | Description |
---|---|
PlatformsResource.AccountsResource.CloseRequest |
Create(Account, string)
Creates a sub-account.
Declaration
public virtual PlatformsResource.AccountsResource.CreateRequest Create(Account body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Account | body | The body of the request. |
string | parent | Required. Platform to create an account for. Format: platforms/{platform} |
Returns
Type | Description |
---|---|
PlatformsResource.AccountsResource.CreateRequest |
Get(string)
Gets information about the selected sub-account.
Declaration
public virtual PlatformsResource.AccountsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Account to get information about. Format: platforms/{platform}/accounts/{account_id} |
Returns
Type | Description |
---|---|
PlatformsResource.AccountsResource.GetRequest |
List(string)
Lists a partial view of sub-accounts for a specific parent account.
Declaration
public virtual PlatformsResource.AccountsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Platform who parents the accounts. Format: platforms/{platform} |
Returns
Type | Description |
---|---|
PlatformsResource.AccountsResource.ListRequest |
Lookup(string)
Looks up information about a sub-account for a specified creation_request_id. If no account exists for the given creation_request_id, returns 404.
Declaration
public virtual PlatformsResource.AccountsResource.LookupRequest Lookup(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Platform who parents the account. Format: platforms/{platform} |
Returns
Type | Description |
---|---|
PlatformsResource.AccountsResource.LookupRequest |