Show / Hide Table of Contents

Class ManagementResource.GoalsResource

The "goals" collection of methods.

Inheritance
object
ManagementResource.GoalsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Analytics.v3
Assembly: Google.Apis.Analytics.v3.dll
Syntax
public class ManagementResource.GoalsResource

Constructors

GoalsResource(IClientService)

Constructs a new resource.

Declaration
public GoalsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Get(string, string, string, string)

Gets a goal to which the user has access.

Declaration
public virtual ManagementResource.GoalsResource.GetRequest Get(string accountId, string webPropertyId, string profileId, string goalId)
Parameters
Type Name Description
string accountId

Account ID to retrieve the goal for.

string webPropertyId

Web property ID to retrieve the goal for.

string profileId

View (Profile) ID to retrieve the goal for.

string goalId

Goal ID to retrieve the goal for.

Returns
Type Description
ManagementResource.GoalsResource.GetRequest

Insert(Goal, string, string, string)

Create a new goal.

Declaration
public virtual ManagementResource.GoalsResource.InsertRequest Insert(Goal body, string accountId, string webPropertyId, string profileId)
Parameters
Type Name Description
Goal body

The body of the request.

string accountId

Account ID to create the goal for.

string webPropertyId

Web property ID to create the goal for.

string profileId

View (Profile) ID to create the goal for.

Returns
Type Description
ManagementResource.GoalsResource.InsertRequest

List(string, string, string)

Lists goals to which the user has access.

Declaration
public virtual ManagementResource.GoalsResource.ListRequest List(string accountId, string webPropertyId, string profileId)
Parameters
Type Name Description
string accountId

Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.

string webPropertyId

Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.

string profileId

View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or '~all', which refers to all the views (profiles) that user has access to.

Returns
Type Description
ManagementResource.GoalsResource.ListRequest

Patch(Goal, string, string, string, string)

Updates an existing goal. This method supports patch semantics.

Declaration
public virtual ManagementResource.GoalsResource.PatchRequest Patch(Goal body, string accountId, string webPropertyId, string profileId, string goalId)
Parameters
Type Name Description
Goal body

The body of the request.

string accountId

Account ID to update the goal.

string webPropertyId

Web property ID to update the goal.

string profileId

View (Profile) ID to update the goal.

string goalId

Index of the goal to be updated.

Returns
Type Description
ManagementResource.GoalsResource.PatchRequest

Update(Goal, string, string, string, string)

Updates an existing goal.

Declaration
public virtual ManagementResource.GoalsResource.UpdateRequest Update(Goal body, string accountId, string webPropertyId, string profileId, string goalId)
Parameters
Type Name Description
Goal body

The body of the request.

string accountId

Account ID to update the goal.

string webPropertyId

Web property ID to update the goal.

string profileId

View (Profile) ID to update the goal.

string goalId

Index of the goal to be updated.

Returns
Type Description
ManagementResource.GoalsResource.UpdateRequest
In This Article
Back to top Generated by DocFX