Class ManagementResource.WebpropertiesResource
The "webproperties" collection of methods.
Inherited Members
Namespace: Google.Apis.Analytics.v3
Assembly: Google.Apis.Analytics.v3.dll
Syntax
public class ManagementResource.WebpropertiesResource
Constructors
WebpropertiesResource(IClientService)
Constructs a new resource.
Declaration
public WebpropertiesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Get(string, string)
Gets a web property to which the user has access.
Declaration
public virtual ManagementResource.WebpropertiesResource.GetRequest Get(string accountId, string webPropertyId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | accountId | Account ID to retrieve the web property for. |
| string | webPropertyId | ID to retrieve the web property for. |
Returns
| Type | Description |
|---|---|
| ManagementResource.WebpropertiesResource.GetRequest |
Insert(Webproperty, string)
Create a new property if the account has fewer than 20 properties. Web properties are visible in the Google Analytics interface only if they have at least one profile.
Declaration
public virtual ManagementResource.WebpropertiesResource.InsertRequest Insert(Webproperty body, string accountId)
Parameters
| Type | Name | Description |
|---|---|---|
| Webproperty | body | The body of the request. |
| string | accountId | Account ID to create the web property for. |
Returns
| Type | Description |
|---|---|
| ManagementResource.WebpropertiesResource.InsertRequest |
List(string)
Lists web properties to which the user has access.
Declaration
public virtual ManagementResource.WebpropertiesResource.ListRequest List(string accountId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | accountId | Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to. |
Returns
| Type | Description |
|---|---|
| ManagementResource.WebpropertiesResource.ListRequest |
Patch(Webproperty, string, string)
Updates an existing web property. This method supports patch semantics.
Declaration
public virtual ManagementResource.WebpropertiesResource.PatchRequest Patch(Webproperty body, string accountId, string webPropertyId)
Parameters
| Type | Name | Description |
|---|---|---|
| Webproperty | body | The body of the request. |
| string | accountId | Account ID to which the web property belongs |
| string | webPropertyId | Web property ID |
Returns
| Type | Description |
|---|---|
| ManagementResource.WebpropertiesResource.PatchRequest |
Update(Webproperty, string, string)
Updates an existing web property.
Declaration
public virtual ManagementResource.WebpropertiesResource.UpdateRequest Update(Webproperty body, string accountId, string webPropertyId)
Parameters
| Type | Name | Description |
|---|---|---|
| Webproperty | body | The body of the request. |
| string | accountId | Account ID to which the web property belongs |
| string | webPropertyId | Web property ID |
Returns
| Type | Description |
|---|---|
| ManagementResource.WebpropertiesResource.UpdateRequest |