Class Goal
JSON template for Analytics goal resource.
Implements
Inherited Members
Namespace: Google.Apis.Analytics.v3.Data
Assembly: Google.Apis.Analytics.v3.dll
Syntax
public class Goal : IDirectResponseSchema
Properties
AccountId
Account ID to which this goal belongs.
Declaration
[JsonProperty("accountId")]
public virtual string AccountId { get; set; }
Property Value
Type | Description |
---|---|
string |
Active
Determines whether this goal is active.
Declaration
[JsonProperty("active")]
public virtual bool? Active { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Created
DateTime representation of CreatedRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreatedDateTimeOffset instead.")]
public virtual DateTime? Created { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |
CreatedDateTimeOffset
DateTimeOffset representation of CreatedRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreatedDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
CreatedRaw
Time this goal was created.
Declaration
[JsonProperty("created")]
public virtual string CreatedRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
EventDetails
Details for the goal of the type EVENT.
Declaration
[JsonProperty("eventDetails")]
public virtual Goal.EventDetailsData EventDetails { get; set; }
Property Value
Type | Description |
---|---|
Goal.EventDetailsData |
Id
Goal ID.
Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type | Description |
---|---|
string |
InternalWebPropertyId
Internal ID for the web property to which this goal belongs.
Declaration
[JsonProperty("internalWebPropertyId")]
public virtual string InternalWebPropertyId { get; set; }
Property Value
Type | Description |
---|---|
string |
Kind
Resource type for an Analytics goal.
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Goal name.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
ParentLink
Parent link for a goal. Points to the view (profile) to which this goal belongs.
Declaration
[JsonProperty("parentLink")]
public virtual Goal.ParentLinkData ParentLink { get; set; }
Property Value
Type | Description |
---|---|
Goal.ParentLinkData |
ProfileId
View (Profile) ID to which this goal belongs.
Declaration
[JsonProperty("profileId")]
public virtual string ProfileId { get; set; }
Property Value
Type | Description |
---|---|
string |
SelfLink
Link for this goal.
Declaration
[JsonProperty("selfLink")]
public virtual string SelfLink { get; set; }
Property Value
Type | Description |
---|---|
string |
Type
Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
Type | Description |
---|---|
string |
Updated
DateTime representation of UpdatedRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdatedDateTimeOffset instead.")]
public virtual DateTime? Updated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |
UpdatedDateTimeOffset
DateTimeOffset representation of UpdatedRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdatedDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
UpdatedRaw
Time this goal was last modified.
Declaration
[JsonProperty("updated")]
public virtual string UpdatedRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
UrlDestinationDetails
Details for the goal of the type URL_DESTINATION.
Declaration
[JsonProperty("urlDestinationDetails")]
public virtual Goal.UrlDestinationDetailsData UrlDestinationDetails { get; set; }
Property Value
Type | Description |
---|---|
Goal.UrlDestinationDetailsData |
Value
Goal value.
Declaration
[JsonProperty("value")]
public virtual float? Value { get; set; }
Property Value
Type | Description |
---|---|
float? |
VisitNumPagesDetails
Details for the goal of the type VISIT_NUM_PAGES.
Declaration
[JsonProperty("visitNumPagesDetails")]
public virtual Goal.VisitNumPagesDetailsData VisitNumPagesDetails { get; set; }
Property Value
Type | Description |
---|---|
Goal.VisitNumPagesDetailsData |
VisitTimeOnSiteDetails
Details for the goal of the type VISIT_TIME_ON_SITE.
Declaration
[JsonProperty("visitTimeOnSiteDetails")]
public virtual Goal.VisitTimeOnSiteDetailsData VisitTimeOnSiteDetails { get; set; }
Property Value
Type | Description |
---|---|
Goal.VisitTimeOnSiteDetailsData |
WebPropertyId
Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
Declaration
[JsonProperty("webPropertyId")]
public virtual string WebPropertyId { get; set; }
Property Value
Type | Description |
---|---|
string |