blob: 283b79abcc252215355544fe241d9a8f8572f325 [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.profiles.html">profiles</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#delete">delete(accountId, webPropertyId, profileId)</a></code></p>
79<p class="firstline">Deletes a view (profile).</p>
80<p class="toc_element">
81 <code><a href="#get">get(accountId, webPropertyId, profileId)</a></code></p>
82<p class="firstline">Gets a view (profile) to which the user has access.</p>
83<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#insert">insert(accountId, webPropertyId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040085<p class="firstline">Create a new view (profile).</p>
86<p class="toc_element">
87 <code><a href="#list">list(accountId, webPropertyId, max_results=None, start_index=None)</a></code></p>
88<p class="firstline">Lists views (profiles) to which the user has access.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#patch">patch(accountId, webPropertyId, profileId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040091<p class="firstline">Updates an existing view (profile). This method supports patch semantics.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#update">update(accountId, webPropertyId, profileId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040094<p class="firstline">Updates an existing view (profile).</p>
95<h3>Method Details</h3>
96<div class="method">
97 <code class="details" id="delete">delete(accountId, webPropertyId, profileId)</code>
98 <pre>Deletes a view (profile).
99
100Args:
101 accountId: string, Account ID to delete the view (profile) for. (required)
102 webPropertyId: string, Web property ID to delete the view (profile) for. (required)
103 profileId: string, ID of the view (profile) to be deleted. (required)
104</pre>
105</div>
106
107<div class="method">
108 <code class="details" id="get">get(accountId, webPropertyId, profileId)</code>
109 <pre>Gets a view (profile) to which the user has access.
110
111Args:
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700112 accountId: string, Account ID to retrieve the view (profile) for. (required)
113 webPropertyId: string, Web property ID to retrieve the view (profile) for. (required)
114 profileId: string, View (Profile) ID to retrieve the view (profile) for. (required)
John Asmuth614db982014-04-24 15:46:26 -0400115
116Returns:
117 An object of the form:
118
119 { # JSON template for an Analytics view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
121 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
122 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
123 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
124 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
125 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
126 &quot;timezone&quot;: &quot;A String&quot;, # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
127 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
128 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
129 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
130 },
131 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
132 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
Jon Wayne Parrottdc6c1ef2016-10-14 11:04:30 -0700133 # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL
Bu Sun Kim65020912020-05-20 12:08:20 -0700134 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
135 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
136 &quot;effective&quot;: [ # All the permissions that the user has for this view (profile). These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent web property.
137 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400138 ],
139 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700140 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
141 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
142 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
143 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
144 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
145 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
146 &quot;enhancedECommerceTracking&quot;: True or False, # Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled.
147 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
148 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
149 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
150 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
151 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
152 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
153 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
154 },
155 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
156 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
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, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400162 <pre>Create a new view (profile).
163
164Args:
165 accountId: string, Account ID to create the view (profile) for. (required)
166 webPropertyId: string, Web property ID to create the view (profile) for. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700167 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400168 The object takes the form of:
169
170{ # JSON template for an Analytics view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700171 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
172 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
173 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
174 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
175 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
176 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
177 &quot;timezone&quot;: &quot;A String&quot;, # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
178 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
179 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
180 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
181 },
182 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
183 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
Jon Wayne Parrottdc6c1ef2016-10-14 11:04:30 -0700184 # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL
Bu Sun Kim65020912020-05-20 12:08:20 -0700185 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
186 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
187 &quot;effective&quot;: [ # All the permissions that the user has for this view (profile). These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent web property.
188 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400189 ],
190 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
192 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
193 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
194 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
195 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
196 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
197 &quot;enhancedECommerceTracking&quot;: True or False, # Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled.
198 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
199 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
200 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
201 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
202 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
203 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
204 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
205 },
206 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
207 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
John Asmuth614db982014-04-24 15:46:26 -0400208 }
209
210
211Returns:
212 An object of the form:
213
214 { # JSON template for an Analytics view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700215 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
216 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
217 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
218 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
219 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
220 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
221 &quot;timezone&quot;: &quot;A String&quot;, # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
222 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
223 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
224 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
225 },
226 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
227 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
Jon Wayne Parrottdc6c1ef2016-10-14 11:04:30 -0700228 # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
230 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
231 &quot;effective&quot;: [ # All the permissions that the user has for this view (profile). These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent web property.
232 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400233 ],
234 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700235 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
236 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
237 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
238 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
239 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
240 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
241 &quot;enhancedECommerceTracking&quot;: True or False, # Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled.
242 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
243 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
244 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
245 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
246 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
247 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
248 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
249 },
250 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
251 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
John Asmuth614db982014-04-24 15:46:26 -0400252 }</pre>
253</div>
254
255<div class="method">
256 <code class="details" id="list">list(accountId, webPropertyId, max_results=None, start_index=None)</code>
257 <pre>Lists views (profiles) to which the user has access.
258
259Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 accountId: string, Account ID for the view (profiles) to retrieve. Can either be a specific account ID or &#x27;~all&#x27;, which refers to all the accounts to which the user has access. (required)
261 webPropertyId: string, Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID or &#x27;~all&#x27;, which refers to all the web properties to which the user has access. (required)
John Asmuth614db982014-04-24 15:46:26 -0400262 max_results: integer, The maximum number of views (profiles) to include in this response.
263 start_index: integer, An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
264
265Returns:
266 An object of the form:
267
268 { # A view (profile) collection lists Analytics views (profiles) to which the user has access. Each resource in the collection corresponds to a single Analytics view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700269 &quot;startIndex&quot;: 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
270 &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.
271 &quot;kind&quot;: &quot;analytics#profiles&quot;, # Collection type.
272 &quot;nextLink&quot;: &quot;A String&quot;, # Link to next page for this view (profile) collection.
273 &quot;previousLink&quot;: &quot;A String&quot;, # Link to previous page for this view (profile) collection.
274 &quot;totalResults&quot;: 42, # The total number of results for the query, regardless of the number of results in the response.
275 &quot;items&quot;: [ # A list of views (profiles).
John Asmuth614db982014-04-24 15:46:26 -0400276 { # JSON template for an Analytics view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700277 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
278 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
279 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
280 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
281 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
282 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
283 &quot;timezone&quot;: &quot;A String&quot;, # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
284 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
285 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
286 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
287 },
288 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
289 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
Jon Wayne Parrottdc6c1ef2016-10-14 11:04:30 -0700290 # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL
Bu Sun Kim65020912020-05-20 12:08:20 -0700291 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
292 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
293 &quot;effective&quot;: [ # All the permissions that the user has for this view (profile). These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent web property.
294 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400295 ],
296 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700297 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
298 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
299 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
300 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
301 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
302 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
303 &quot;enhancedECommerceTracking&quot;: True or False, # Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled.
304 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
305 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
306 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
307 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
308 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
309 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
310 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
311 },
312 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
313 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
John Asmuth614db982014-04-24 15:46:26 -0400314 },
315 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700316 &quot;username&quot;: &quot;A String&quot;, # Email ID of the authenticated user
John Asmuth614db982014-04-24 15:46:26 -0400317 }</pre>
318</div>
319
320<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700321 <code class="details" id="patch">patch(accountId, webPropertyId, profileId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400322 <pre>Updates an existing view (profile). This method supports patch semantics.
323
324Args:
325 accountId: string, Account ID to which the view (profile) belongs (required)
326 webPropertyId: string, Web property ID to which the view (profile) belongs (required)
327 profileId: string, ID of the view (profile) to be updated. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700328 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400329 The object takes the form of:
330
331{ # JSON template for an Analytics view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700332 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
333 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
334 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
335 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
336 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
337 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
338 &quot;timezone&quot;: &quot;A String&quot;, # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
339 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
340 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
341 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
342 },
343 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
344 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
Jon Wayne Parrottdc6c1ef2016-10-14 11:04:30 -0700345 # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL
Bu Sun Kim65020912020-05-20 12:08:20 -0700346 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
347 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
348 &quot;effective&quot;: [ # All the permissions that the user has for this view (profile). These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent web property.
349 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400350 ],
351 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700352 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
353 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
354 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
355 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
356 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
357 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
358 &quot;enhancedECommerceTracking&quot;: True or False, # Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled.
359 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
360 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
361 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
362 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
363 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
364 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
365 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
366 },
367 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
368 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
John Asmuth614db982014-04-24 15:46:26 -0400369 }
370
371
372Returns:
373 An object of the form:
374
375 { # JSON template for an Analytics view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700376 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
377 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
378 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
379 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
380 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
381 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
382 &quot;timezone&quot;: &quot;A String&quot;, # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
383 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
384 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
385 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
386 },
387 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
388 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
Jon Wayne Parrottdc6c1ef2016-10-14 11:04:30 -0700389 # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL
Bu Sun Kim65020912020-05-20 12:08:20 -0700390 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
391 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
392 &quot;effective&quot;: [ # All the permissions that the user has for this view (profile). These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent web property.
393 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400394 ],
395 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700396 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
397 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
398 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
399 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
400 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
401 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
402 &quot;enhancedECommerceTracking&quot;: True or False, # Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled.
403 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
404 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
405 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
406 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
407 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
408 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
409 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
410 },
411 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
412 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
John Asmuth614db982014-04-24 15:46:26 -0400413 }</pre>
414</div>
415
416<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700417 <code class="details" id="update">update(accountId, webPropertyId, profileId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400418 <pre>Updates an existing view (profile).
419
420Args:
421 accountId: string, Account ID to which the view (profile) belongs (required)
422 webPropertyId: string, Web property ID to which the view (profile) belongs (required)
423 profileId: string, ID of the view (profile) to be updated. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700424 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400425 The object takes the form of:
426
427{ # JSON template for an Analytics view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700428 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
429 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
430 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
431 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
432 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
433 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
434 &quot;timezone&quot;: &quot;A String&quot;, # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
435 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
436 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
437 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
438 },
439 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
440 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
Jon Wayne Parrottdc6c1ef2016-10-14 11:04:30 -0700441 # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL
Bu Sun Kim65020912020-05-20 12:08:20 -0700442 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
443 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
444 &quot;effective&quot;: [ # All the permissions that the user has for this view (profile). These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent web property.
445 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400446 ],
447 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700448 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
449 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
450 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
451 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
452 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
453 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
454 &quot;enhancedECommerceTracking&quot;: True or False, # Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled.
455 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
456 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
457 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
458 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
459 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
460 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
461 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
462 },
463 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
464 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
John Asmuth614db982014-04-24 15:46:26 -0400465 }
466
467
468Returns:
469 An object of the form:
470
471 { # JSON template for an Analytics view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700472 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
473 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
474 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
475 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
476 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
477 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
478 &quot;timezone&quot;: &quot;A String&quot;, # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
479 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
480 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
481 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
482 },
483 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
484 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
Jon Wayne Parrottdc6c1ef2016-10-14 11:04:30 -0700485 # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL
Bu Sun Kim65020912020-05-20 12:08:20 -0700486 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
487 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
488 &quot;effective&quot;: [ # All the permissions that the user has for this view (profile). These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent web property.
489 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400490 ],
491 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700492 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
493 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
494 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
495 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
496 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
497 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
498 &quot;enhancedECommerceTracking&quot;: True or False, # Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled.
499 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
500 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
501 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
502 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
503 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
504 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
505 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
506 },
507 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
508 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
John Asmuth614db982014-04-24 15:46:26 -0400509 }</pre>
510</div>
511
512</body></html>