blob: c164568d4e0c53456358d5d395c8732c04cff4ef [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;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.
108 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
109 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
110 &quot;eventConditions&quot;: [ # List of event conditions.
John Asmuth614db982014-04-24 15:46:26 -0400111 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700112 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
Bu Sun Kim65020912020-05-20 12:08:20 -0700113 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
114 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
115 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
116 &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 -0400117 },
118 ],
John Asmuth614db982014-04-24 15:46:26 -0400119 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
121 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
122 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
123 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
124 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
125 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
Bu Sun Kim65020912020-05-20 12:08:20 -0700126 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
127 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
128 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
John Asmuth614db982014-04-24 15:46:26 -0400129 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700130 &quot;name&quot;: &quot;A String&quot;, # Step name.
Bu Sun Kim65020912020-05-20 12:08:20 -0700131 &quot;number&quot;: 42, # Step number.
132 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
John Asmuth614db982014-04-24 15:46:26 -0400133 },
134 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700135 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700136 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
John Asmuth614db982014-04-24 15:46:26 -0400137 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700138 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
139 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
140 &quot;active&quot;: True or False, # Determines whether this goal is active.
141 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
142 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
143 &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 -0400144 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700145 &quot;name&quot;: &quot;A String&quot;, # Goal name.
146 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
147 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
148 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
149 },
150 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700151 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700152 &quot;value&quot;: 3.14, # Goal value.
153 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
154 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
155 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
156 },
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;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.
173 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
174 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
175 &quot;eventConditions&quot;: [ # List of event conditions.
John Asmuth614db982014-04-24 15:46:26 -0400176 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700177 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
179 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
180 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
181 &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 -0400182 },
183 ],
John Asmuth614db982014-04-24 15:46:26 -0400184 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700185 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
186 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
187 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
188 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
189 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
190 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
192 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
193 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
John Asmuth614db982014-04-24 15:46:26 -0400194 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700195 &quot;name&quot;: &quot;A String&quot;, # Step name.
Bu Sun Kim65020912020-05-20 12:08:20 -0700196 &quot;number&quot;: 42, # Step number.
197 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
John Asmuth614db982014-04-24 15:46:26 -0400198 },
199 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700200 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700201 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
John Asmuth614db982014-04-24 15:46:26 -0400202 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
204 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
205 &quot;active&quot;: True or False, # Determines whether this goal is active.
206 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
207 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
208 &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 -0400209 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700210 &quot;name&quot;: &quot;A String&quot;, # Goal name.
211 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
212 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
213 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
214 },
215 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700216 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700217 &quot;value&quot;: 3.14, # Goal value.
218 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
219 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
220 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
221 },
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;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.
230 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
231 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
232 &quot;eventConditions&quot;: [ # List of event conditions.
John Asmuth614db982014-04-24 15:46:26 -0400233 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700234 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
Bu Sun Kim65020912020-05-20 12:08:20 -0700235 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
236 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
237 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
238 &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 -0400239 },
240 ],
John Asmuth614db982014-04-24 15:46:26 -0400241 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700242 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
243 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
244 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
245 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
246 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
247 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
Bu Sun Kim65020912020-05-20 12:08:20 -0700248 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
249 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
250 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
John Asmuth614db982014-04-24 15:46:26 -0400251 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700252 &quot;name&quot;: &quot;A String&quot;, # Step name.
Bu Sun Kim65020912020-05-20 12:08:20 -0700253 &quot;number&quot;: 42, # Step number.
254 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
John Asmuth614db982014-04-24 15:46:26 -0400255 },
256 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700257 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700258 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
John Asmuth614db982014-04-24 15:46:26 -0400259 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
261 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
262 &quot;active&quot;: True or False, # Determines whether this goal is active.
263 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
264 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
265 &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 -0400266 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700267 &quot;name&quot;: &quot;A String&quot;, # Goal name.
268 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
269 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
270 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
271 },
272 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700273 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700274 &quot;value&quot;: 3.14, # Goal value.
275 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
276 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
277 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
278 },
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;kind&quot;: &quot;analytics#goals&quot;, # Collection type.
298 &quot;nextLink&quot;: &quot;A String&quot;, # Link to next page for this goal collection.
299 &quot;previousLink&quot;: &quot;A String&quot;, # Link to previous page for this goal collection.
300 &quot;totalResults&quot;: 42, # The total number of results for the query, regardless of the number of resources in the result.
301 &quot;items&quot;: [ # A list of goals.
John Asmuth614db982014-04-24 15:46:26 -0400302 { # JSON template for Analytics goal resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700303 &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.
304 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
305 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
306 &quot;eventConditions&quot;: [ # List of event conditions.
John Asmuth614db982014-04-24 15:46:26 -0400307 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700308 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
Bu Sun Kim65020912020-05-20 12:08:20 -0700309 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
310 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
311 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
312 &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 -0400313 },
314 ],
John Asmuth614db982014-04-24 15:46:26 -0400315 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700316 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
317 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
318 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
319 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
320 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
321 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
Bu Sun Kim65020912020-05-20 12:08:20 -0700322 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
323 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
324 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
John Asmuth614db982014-04-24 15:46:26 -0400325 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700326 &quot;name&quot;: &quot;A String&quot;, # Step name.
Bu Sun Kim65020912020-05-20 12:08:20 -0700327 &quot;number&quot;: 42, # Step number.
328 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
John Asmuth614db982014-04-24 15:46:26 -0400329 },
330 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700331 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700332 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
John Asmuth614db982014-04-24 15:46:26 -0400333 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700334 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
335 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
336 &quot;active&quot;: True or False, # Determines whether this goal is active.
337 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
338 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
339 &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 -0400340 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700341 &quot;name&quot;: &quot;A String&quot;, # Goal name.
342 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
343 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
344 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
345 },
346 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700347 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700348 &quot;value&quot;: 3.14, # Goal value.
349 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
350 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
351 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
352 },
John Asmuth614db982014-04-24 15:46:26 -0400353 },
354 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700355 &quot;username&quot;: &quot;A String&quot;, # Email ID of the authenticated user
356 &quot;startIndex&quot;: 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
357 &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.
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;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.
375 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
376 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
377 &quot;eventConditions&quot;: [ # List of event conditions.
John Asmuth614db982014-04-24 15:46:26 -0400378 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700379 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
Bu Sun Kim65020912020-05-20 12:08:20 -0700380 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
381 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
382 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
383 &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 -0400384 },
385 ],
John Asmuth614db982014-04-24 15:46:26 -0400386 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700387 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
388 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
389 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
390 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
391 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
392 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
Bu Sun Kim65020912020-05-20 12:08:20 -0700393 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
394 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
395 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
John Asmuth614db982014-04-24 15:46:26 -0400396 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700397 &quot;name&quot;: &quot;A String&quot;, # Step name.
Bu Sun Kim65020912020-05-20 12:08:20 -0700398 &quot;number&quot;: 42, # Step number.
399 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
John Asmuth614db982014-04-24 15:46:26 -0400400 },
401 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700402 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700403 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
John Asmuth614db982014-04-24 15:46:26 -0400404 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700405 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
406 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
407 &quot;active&quot;: True or False, # Determines whether this goal is active.
408 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
409 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
410 &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 -0400411 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700412 &quot;name&quot;: &quot;A String&quot;, # Goal name.
413 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
414 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
415 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
416 },
417 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700418 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700419 &quot;value&quot;: 3.14, # Goal value.
420 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
421 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
422 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
423 },
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;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.
432 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
433 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
434 &quot;eventConditions&quot;: [ # List of event conditions.
John Asmuth614db982014-04-24 15:46:26 -0400435 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700436 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
Bu Sun Kim65020912020-05-20 12:08:20 -0700437 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
438 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
439 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
440 &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 -0400441 },
442 ],
John Asmuth614db982014-04-24 15:46:26 -0400443 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700444 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
445 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
446 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
447 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
448 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
449 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
Bu Sun Kim65020912020-05-20 12:08:20 -0700450 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
451 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
452 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
John Asmuth614db982014-04-24 15:46:26 -0400453 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700454 &quot;name&quot;: &quot;A String&quot;, # Step name.
Bu Sun Kim65020912020-05-20 12:08:20 -0700455 &quot;number&quot;: 42, # Step number.
456 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
John Asmuth614db982014-04-24 15:46:26 -0400457 },
458 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700459 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700460 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
John Asmuth614db982014-04-24 15:46:26 -0400461 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700462 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
463 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
464 &quot;active&quot;: True or False, # Determines whether this goal is active.
465 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
466 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
467 &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 -0400468 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700469 &quot;name&quot;: &quot;A String&quot;, # Goal name.
470 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
471 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
472 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
473 },
474 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700475 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700476 &quot;value&quot;: 3.14, # Goal value.
477 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
478 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
479 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
480 },
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;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.
498 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
499 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
500 &quot;eventConditions&quot;: [ # List of event conditions.
John Asmuth614db982014-04-24 15:46:26 -0400501 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700502 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
Bu Sun Kim65020912020-05-20 12:08:20 -0700503 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
504 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
505 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
506 &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 -0400507 },
508 ],
John Asmuth614db982014-04-24 15:46:26 -0400509 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700510 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
511 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
512 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
513 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
514 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
515 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
Bu Sun Kim65020912020-05-20 12:08:20 -0700516 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
517 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
518 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
John Asmuth614db982014-04-24 15:46:26 -0400519 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700520 &quot;name&quot;: &quot;A String&quot;, # Step name.
Bu Sun Kim65020912020-05-20 12:08:20 -0700521 &quot;number&quot;: 42, # Step number.
522 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
John Asmuth614db982014-04-24 15:46:26 -0400523 },
524 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700525 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700526 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
John Asmuth614db982014-04-24 15:46:26 -0400527 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700528 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
529 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
530 &quot;active&quot;: True or False, # Determines whether this goal is active.
531 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
532 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
533 &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 -0400534 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700535 &quot;name&quot;: &quot;A String&quot;, # Goal name.
536 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
537 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
538 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
539 },
540 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700541 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700542 &quot;value&quot;: 3.14, # Goal value.
543 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
544 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
545 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
546 },
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;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.
555 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
556 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
557 &quot;eventConditions&quot;: [ # List of event conditions.
John Asmuth614db982014-04-24 15:46:26 -0400558 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700559 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
Bu Sun Kim65020912020-05-20 12:08:20 -0700560 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
561 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
562 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
563 &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 -0400564 },
565 ],
John Asmuth614db982014-04-24 15:46:26 -0400566 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700567 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
568 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
569 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
570 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
571 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
572 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
Bu Sun Kim65020912020-05-20 12:08:20 -0700573 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
574 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
575 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
John Asmuth614db982014-04-24 15:46:26 -0400576 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700577 &quot;name&quot;: &quot;A String&quot;, # Step name.
Bu Sun Kim65020912020-05-20 12:08:20 -0700578 &quot;number&quot;: 42, # Step number.
579 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
John Asmuth614db982014-04-24 15:46:26 -0400580 },
581 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700582 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700583 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
John Asmuth614db982014-04-24 15:46:26 -0400584 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700585 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
586 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
587 &quot;active&quot;: True or False, # Determines whether this goal is active.
588 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
589 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
590 &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 -0400591 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700592 &quot;name&quot;: &quot;A String&quot;, # Goal name.
593 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
594 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
595 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
596 },
597 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700598 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700599 &quot;value&quot;: 3.14, # Goal value.
600 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
601 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
602 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
603 },
John Asmuth614db982014-04-24 15:46:26 -0400604 }</pre>
605</div>
606
607</body></html>