target.apidocs.com.google.api.services.analytics.Analytics.Management.Goals.html Maven / Gradle / Ivy
Analytics.Management.Goals (Google Analytics API v3-rev20190604-1.30.1)
com.google.api.services.analytics
Class Analytics.Management.Goals
- java.lang.Object
-
- com.google.api.services.analytics.Analytics.Management.Goals
-
- Enclosing class:
- Analytics.Management
public class Analytics.Management.Goals
extends Object
The "goals" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Analytics.Management.Goals.Get
class
Analytics.Management.Goals.Insert
class
Analytics.Management.Goals.List
class
Analytics.Management.Goals.Patch
class
Analytics.Management.Goals.Update
-
Constructor Summary
Constructors
Constructor and Description
Goals()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Analytics.Management.Goals.Get
get(String accountId,
String webPropertyId,
String profileId,
String goalId)
Gets a goal to which the user has access.
Analytics.Management.Goals.Insert
insert(String accountId,
String webPropertyId,
String profileId,
Goal content)
Create a new goal.
Analytics.Management.Goals.List
list(String accountId,
String webPropertyId,
String profileId)
Lists goals to which the user has access.
Analytics.Management.Goals.Patch
patch(String accountId,
String webPropertyId,
String profileId,
String goalId,
Goal content)
Updates an existing goal.
Analytics.Management.Goals.Update
update(String accountId,
String webPropertyId,
String profileId,
String goalId,
Goal content)
Updates an existing goal.
-
-
Method Detail
-
get
public Analytics.Management.Goals.Get get(String accountId,
String webPropertyId,
String profileId,
String goalId)
throws IOException
Gets a goal to which the user has access.
Create a request for the method "goals.get".
This request holds the parameters needed by the analytics server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
accountId
- Account ID to retrieve the goal for.
webPropertyId
- Web property ID to retrieve the goal for.
profileId
- View (Profile) ID to retrieve the goal for.
goalId
- Goal ID to retrieve the goal for.
- Returns:
- the request
- Throws:
IOException
-
insert
public Analytics.Management.Goals.Insert insert(String accountId,
String webPropertyId,
String profileId,
Goal content)
throws IOException
Create a new goal.
Create a request for the method "goals.insert".
This request holds the parameters needed by the analytics server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
accountId
- Account ID to create the goal for.
webPropertyId
- Web property ID to create the goal for.
profileId
- View (Profile) ID to create the goal for.
content
- the Goal
- Returns:
- the request
- Throws:
IOException
-
list
public Analytics.Management.Goals.List list(String accountId,
String webPropertyId,
String profileId)
throws IOException
Lists goals to which the user has access.
Create a request for the method "goals.list".
This request holds the parameters needed by the analytics server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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.
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.
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:
- the request
- Throws:
IOException
-
patch
public Analytics.Management.Goals.Patch patch(String accountId,
String webPropertyId,
String profileId,
String goalId,
Goal content)
throws IOException
Updates an existing goal. This method supports patch semantics.
Create a request for the method "goals.patch".
This request holds the parameters needed by the analytics server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
accountId
- Account ID to update the goal.
webPropertyId
- Web property ID to update the goal.
profileId
- View (Profile) ID to update the goal.
goalId
- Index of the goal to be updated.
content
- the Goal
- Returns:
- the request
- Throws:
IOException
-
update
public Analytics.Management.Goals.Update update(String accountId,
String webPropertyId,
String profileId,
String goalId,
Goal content)
throws IOException
Updates an existing goal.
Create a request for the method "goals.update".
This request holds the parameters needed by the analytics server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
accountId
- Account ID to update the goal.
webPropertyId
- Web property ID to update the goal.
profileId
- View (Profile) ID to update the goal.
goalId
- Index of the goal to be updated.
content
- the Goal
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2019 Google. All rights reserved.