blob: f801cc7cdcd74afbe08ffc79cca5ecdf86c32d25 [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="analytics_v3.html">Google Analytics API</a> . <a href="analytics_v3.management.html">management</a> . <a href="analytics_v3.management.goals.html">goals</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#get">get(accountId, webPropertyId, profileId, goalId)</a></code></p>
79<p class="firstline">Gets a goal to which the user has access.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#insert">insert(accountId, webPropertyId, profileId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040082<p class="firstline">Create a new goal.</p>
83<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070084 <code><a href="#list">list(accountId, webPropertyId, profileId, start_index=None, max_results=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040085<p class="firstline">Lists goals to which the user has access.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#patch">patch(accountId, webPropertyId, profileId, goalId, body=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070088<p class="firstline">Updates an existing goal. This method supports patch semantics.</p>
John Asmuth614db982014-04-24 15:46:26 -040089<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#update">update(accountId, webPropertyId, profileId, goalId, body=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070091<p class="firstline">Updates an existing goal.</p>
John Asmuth614db982014-04-24 15:46:26 -040092<h3>Method Details</h3>
93<div class="method">
94 <code class="details" id="get">get(accountId, webPropertyId, profileId, goalId)</code>
95 <pre>Gets a goal to which the user has access.
96
97Args:
98 accountId: string, Account ID to retrieve the goal for. (required)
99 webPropertyId: string, Web property ID to retrieve the goal for. (required)
100 profileId: string, View (Profile) ID to retrieve the goal for. (required)
101 goalId: string, Goal ID to retrieve the goal for. (required)
102
103Returns:
104 An object of the form:
105
106 { # JSON template for Analytics goal resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700107 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
108 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
109 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
John Asmuth614db982014-04-24 15:46:26 -0400110 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700111 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
112 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
113 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
114 &quot;eventConditions&quot;: [ # List of event conditions.
John Asmuth614db982014-04-24 15:46:26 -0400115 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700116 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
117 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
118 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
119 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
120 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
John Asmuth614db982014-04-24 15:46:26 -0400121 },
122 ],
John Asmuth614db982014-04-24 15:46:26 -0400123 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
125 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
126 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
127 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
128 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
129 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
130 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
131 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
132 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
133 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
John Asmuth614db982014-04-24 15:46:26 -0400134 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700135 &quot;number&quot;: 42, # Step number.
136 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
137 &quot;name&quot;: &quot;A String&quot;, # Step name.
John Asmuth614db982014-04-24 15:46:26 -0400138 },
139 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700140 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
John Asmuth614db982014-04-24 15:46:26 -0400141 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700142 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
143 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
144 &quot;active&quot;: True or False, # Determines whether this goal is active.
145 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
146 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
147 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
John Asmuth614db982014-04-24 15:46:26 -0400148 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700149 &quot;name&quot;: &quot;A String&quot;, # Goal name.
150 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
151 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
152 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
153 },
154 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
155 &quot;value&quot;: 3.14, # Goal value.
156 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
John Asmuth614db982014-04-24 15:46:26 -0400157 }</pre>
158</div>
159
160<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700161 <code class="details" id="insert">insert(accountId, webPropertyId, profileId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400162 <pre>Create a new goal.
163
164Args:
165 accountId: string, Account ID to create the goal for. (required)
166 webPropertyId: string, Web property ID to create the goal for. (required)
167 profileId: string, View (Profile) ID to create the goal for. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700168 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400169 The object takes the form of:
170
171{ # JSON template for Analytics goal resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700172 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
173 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
174 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
John Asmuth614db982014-04-24 15:46:26 -0400175 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
177 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
178 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
179 &quot;eventConditions&quot;: [ # List of event conditions.
John Asmuth614db982014-04-24 15:46:26 -0400180 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700181 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
182 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
183 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
184 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
185 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
John Asmuth614db982014-04-24 15:46:26 -0400186 },
187 ],
John Asmuth614db982014-04-24 15:46:26 -0400188 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700189 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
190 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
191 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
192 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
193 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
194 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
195 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
196 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
197 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
198 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
John Asmuth614db982014-04-24 15:46:26 -0400199 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700200 &quot;number&quot;: 42, # Step number.
201 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
202 &quot;name&quot;: &quot;A String&quot;, # Step name.
John Asmuth614db982014-04-24 15:46:26 -0400203 },
204 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700205 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
John Asmuth614db982014-04-24 15:46:26 -0400206 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700207 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
208 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
209 &quot;active&quot;: True or False, # Determines whether this goal is active.
210 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
211 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
212 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
John Asmuth614db982014-04-24 15:46:26 -0400213 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700214 &quot;name&quot;: &quot;A String&quot;, # Goal name.
215 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
216 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
217 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
218 },
219 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
220 &quot;value&quot;: 3.14, # Goal value.
221 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
John Asmuth614db982014-04-24 15:46:26 -0400222 }
223
224
225Returns:
226 An object of the form:
227
228 { # JSON template for Analytics goal resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
230 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
231 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
John Asmuth614db982014-04-24 15:46:26 -0400232 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700233 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
234 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
235 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
236 &quot;eventConditions&quot;: [ # List of event conditions.
John Asmuth614db982014-04-24 15:46:26 -0400237 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700238 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
239 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
240 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
241 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
242 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
John Asmuth614db982014-04-24 15:46:26 -0400243 },
244 ],
John Asmuth614db982014-04-24 15:46:26 -0400245 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700246 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
247 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
248 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
249 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
250 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
251 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
252 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
253 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
254 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
255 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
John Asmuth614db982014-04-24 15:46:26 -0400256 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700257 &quot;number&quot;: 42, # Step number.
258 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
259 &quot;name&quot;: &quot;A String&quot;, # Step name.
John Asmuth614db982014-04-24 15:46:26 -0400260 },
261 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700262 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
John Asmuth614db982014-04-24 15:46:26 -0400263 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700264 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
265 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
266 &quot;active&quot;: True or False, # Determines whether this goal is active.
267 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
268 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
269 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
John Asmuth614db982014-04-24 15:46:26 -0400270 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700271 &quot;name&quot;: &quot;A String&quot;, # Goal name.
272 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
273 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
274 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
275 },
276 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
277 &quot;value&quot;: 3.14, # Goal value.
278 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
John Asmuth614db982014-04-24 15:46:26 -0400279 }</pre>
280</div>
281
282<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700283 <code class="details" id="list">list(accountId, webPropertyId, profileId, start_index=None, max_results=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400284 <pre>Lists goals to which the user has access.
285
286Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700287 accountId: string, Account ID to retrieve goals for. Can either be a specific account ID or &#x27;~all&#x27;, which refers to all the accounts that user has access to. (required)
288 webPropertyId: string, Web property ID to retrieve goals for. Can either be a specific web property ID or &#x27;~all&#x27;, which refers to all the web properties that user has access to. (required)
289 profileId: string, View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or &#x27;~all&#x27;, which refers to all the views (profiles) that user has access to. (required)
John Asmuth614db982014-04-24 15:46:26 -0400290 start_index: integer, An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
Bu Sun Kim65020912020-05-20 12:08:20 -0700291 max_results: integer, The maximum number of goals to include in this response.
John Asmuth614db982014-04-24 15:46:26 -0400292
293Returns:
294 An object of the form:
295
296 { # A goal collection lists Analytics goals to which the user has access. Each view (profile) can have a set of goals. Each resource in the Goal collection corresponds to a single Analytics goal.
Bu Sun Kim65020912020-05-20 12:08:20 -0700297 &quot;username&quot;: &quot;A String&quot;, # Email ID of the authenticated user
298 &quot;startIndex&quot;: 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
299 &quot;itemsPerPage&quot;: 42, # The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.
300 &quot;kind&quot;: &quot;analytics#goals&quot;, # Collection type.
301 &quot;nextLink&quot;: &quot;A String&quot;, # Link to next page for this goal collection.
302 &quot;previousLink&quot;: &quot;A String&quot;, # Link to previous page for this goal collection.
303 &quot;totalResults&quot;: 42, # The total number of results for the query, regardless of the number of resources in the result.
304 &quot;items&quot;: [ # A list of goals.
John Asmuth614db982014-04-24 15:46:26 -0400305 { # JSON template for Analytics goal resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700306 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
307 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
308 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
John Asmuth614db982014-04-24 15:46:26 -0400309 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700310 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
311 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
312 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
313 &quot;eventConditions&quot;: [ # List of event conditions.
John Asmuth614db982014-04-24 15:46:26 -0400314 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700315 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
316 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
317 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
318 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
319 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
John Asmuth614db982014-04-24 15:46:26 -0400320 },
321 ],
John Asmuth614db982014-04-24 15:46:26 -0400322 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700323 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
324 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
325 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
326 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
327 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
328 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
329 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
330 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
331 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
332 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
John Asmuth614db982014-04-24 15:46:26 -0400333 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700334 &quot;number&quot;: 42, # Step number.
335 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
336 &quot;name&quot;: &quot;A String&quot;, # Step name.
John Asmuth614db982014-04-24 15:46:26 -0400337 },
338 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700339 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
John Asmuth614db982014-04-24 15:46:26 -0400340 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700341 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
342 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
343 &quot;active&quot;: True or False, # Determines whether this goal is active.
344 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
345 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
346 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
John Asmuth614db982014-04-24 15:46:26 -0400347 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700348 &quot;name&quot;: &quot;A String&quot;, # Goal name.
349 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
350 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
351 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
352 },
353 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
354 &quot;value&quot;: 3.14, # Goal value.
355 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
John Asmuth614db982014-04-24 15:46:26 -0400356 },
357 ],
John Asmuth614db982014-04-24 15:46:26 -0400358 }</pre>
359</div>
360
361<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700362 <code class="details" id="patch">patch(accountId, webPropertyId, profileId, goalId, body=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700363 <pre>Updates an existing goal. This method supports patch semantics.
John Asmuth614db982014-04-24 15:46:26 -0400364
365Args:
366 accountId: string, Account ID to update the goal. (required)
367 webPropertyId: string, Web property ID to update the goal. (required)
368 profileId: string, View (Profile) ID to update the goal. (required)
369 goalId: string, Index of the goal to be updated. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700370 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400371 The object takes the form of:
372
373{ # JSON template for Analytics goal resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700374 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
375 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
376 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
John Asmuth614db982014-04-24 15:46:26 -0400377 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700378 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
379 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
380 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
381 &quot;eventConditions&quot;: [ # List of event conditions.
John Asmuth614db982014-04-24 15:46:26 -0400382 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700383 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
384 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
385 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
386 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
387 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
John Asmuth614db982014-04-24 15:46:26 -0400388 },
389 ],
John Asmuth614db982014-04-24 15:46:26 -0400390 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700391 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
392 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
393 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
394 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
395 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
396 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
397 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
398 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
399 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
400 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
John Asmuth614db982014-04-24 15:46:26 -0400401 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700402 &quot;number&quot;: 42, # Step number.
403 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
404 &quot;name&quot;: &quot;A String&quot;, # Step name.
John Asmuth614db982014-04-24 15:46:26 -0400405 },
406 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700407 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
John Asmuth614db982014-04-24 15:46:26 -0400408 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700409 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
410 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
411 &quot;active&quot;: True or False, # Determines whether this goal is active.
412 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
413 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
414 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
John Asmuth614db982014-04-24 15:46:26 -0400415 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700416 &quot;name&quot;: &quot;A String&quot;, # Goal name.
417 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
418 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
419 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
420 },
421 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
422 &quot;value&quot;: 3.14, # Goal value.
423 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
John Asmuth614db982014-04-24 15:46:26 -0400424 }
425
426
427Returns:
428 An object of the form:
429
430 { # JSON template for Analytics goal resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700431 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
432 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
433 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
John Asmuth614db982014-04-24 15:46:26 -0400434 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700435 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
436 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
437 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
438 &quot;eventConditions&quot;: [ # List of event conditions.
John Asmuth614db982014-04-24 15:46:26 -0400439 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700440 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
441 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
442 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
443 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
444 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
John Asmuth614db982014-04-24 15:46:26 -0400445 },
446 ],
John Asmuth614db982014-04-24 15:46:26 -0400447 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700448 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
449 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
450 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
451 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
452 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
453 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
454 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
455 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
456 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
457 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
John Asmuth614db982014-04-24 15:46:26 -0400458 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700459 &quot;number&quot;: 42, # Step number.
460 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
461 &quot;name&quot;: &quot;A String&quot;, # Step name.
John Asmuth614db982014-04-24 15:46:26 -0400462 },
463 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700464 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
John Asmuth614db982014-04-24 15:46:26 -0400465 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700466 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
467 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
468 &quot;active&quot;: True or False, # Determines whether this goal is active.
469 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
470 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
471 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
John Asmuth614db982014-04-24 15:46:26 -0400472 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700473 &quot;name&quot;: &quot;A String&quot;, # Goal name.
474 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
475 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
476 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
477 },
478 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
479 &quot;value&quot;: 3.14, # Goal value.
480 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
John Asmuth614db982014-04-24 15:46:26 -0400481 }</pre>
482</div>
483
484<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700485 <code class="details" id="update">update(accountId, webPropertyId, profileId, goalId, body=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700486 <pre>Updates an existing goal.
John Asmuth614db982014-04-24 15:46:26 -0400487
488Args:
489 accountId: string, Account ID to update the goal. (required)
490 webPropertyId: string, Web property ID to update the goal. (required)
491 profileId: string, View (Profile) ID to update the goal. (required)
492 goalId: string, Index of the goal to be updated. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700493 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400494 The object takes the form of:
495
496{ # JSON template for Analytics goal resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700497 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
498 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
499 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
John Asmuth614db982014-04-24 15:46:26 -0400500 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700501 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
502 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
503 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
504 &quot;eventConditions&quot;: [ # List of event conditions.
John Asmuth614db982014-04-24 15:46:26 -0400505 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700506 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
507 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
508 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
509 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
510 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
John Asmuth614db982014-04-24 15:46:26 -0400511 },
512 ],
John Asmuth614db982014-04-24 15:46:26 -0400513 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700514 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
515 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
516 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
517 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
518 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
519 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
520 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
521 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
522 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
523 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
John Asmuth614db982014-04-24 15:46:26 -0400524 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700525 &quot;number&quot;: 42, # Step number.
526 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
527 &quot;name&quot;: &quot;A String&quot;, # Step name.
John Asmuth614db982014-04-24 15:46:26 -0400528 },
529 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700530 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
John Asmuth614db982014-04-24 15:46:26 -0400531 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700532 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
533 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
534 &quot;active&quot;: True or False, # Determines whether this goal is active.
535 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
536 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
537 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
John Asmuth614db982014-04-24 15:46:26 -0400538 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700539 &quot;name&quot;: &quot;A String&quot;, # Goal name.
540 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
541 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
542 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
543 },
544 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
545 &quot;value&quot;: 3.14, # Goal value.
546 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
John Asmuth614db982014-04-24 15:46:26 -0400547 }
548
549
550Returns:
551 An object of the form:
552
553 { # JSON template for Analytics goal resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700554 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
555 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
556 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
John Asmuth614db982014-04-24 15:46:26 -0400557 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700558 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
559 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
560 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
561 &quot;eventConditions&quot;: [ # List of event conditions.
John Asmuth614db982014-04-24 15:46:26 -0400562 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700563 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
564 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
565 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
566 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
567 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
John Asmuth614db982014-04-24 15:46:26 -0400568 },
569 ],
John Asmuth614db982014-04-24 15:46:26 -0400570 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700571 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
572 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
573 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
574 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
575 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
576 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
577 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
578 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
579 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
580 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
John Asmuth614db982014-04-24 15:46:26 -0400581 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700582 &quot;number&quot;: 42, # Step number.
583 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
584 &quot;name&quot;: &quot;A String&quot;, # Step name.
John Asmuth614db982014-04-24 15:46:26 -0400585 },
586 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700587 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
John Asmuth614db982014-04-24 15:46:26 -0400588 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700589 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
590 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
591 &quot;active&quot;: True or False, # Determines whether this goal is active.
592 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
593 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
594 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
John Asmuth614db982014-04-24 15:46:26 -0400595 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700596 &quot;name&quot;: &quot;A String&quot;, # Goal name.
597 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
598 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
599 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
600 },
601 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
602 &quot;value&quot;: 3.14, # Goal value.
603 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
John Asmuth614db982014-04-24 15:46:26 -0400604 }</pre>
605</div>
606
607</body></html>