blob: a88030522ce0b31f067787235eae43e1169fede6 [file] [log] [blame]
Craig Citro065b5302014-08-14 00:47:23 -07001<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.provisioning.html">provisioning</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#createAccountTicket">createAccountTicket(body=None)</a></code></p>
Craig Citro065b5302014-08-14 00:47:23 -070079<p class="firstline">Creates an account ticket.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070080<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#createAccountTree">createAccountTree(body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Provision account.</p>
Craig Citro065b5302014-08-14 00:47:23 -070083<h3>Method Details</h3>
84<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070085 <code class="details" id="createAccountTicket">createAccountTicket(body=None)</code>
Craig Citro065b5302014-08-14 00:47:23 -070086 <pre>Creates an account ticket.
87
88Args:
Dan O'Mearadd494642020-05-01 07:42:23 -070089 body: object, The request body.
Craig Citro065b5302014-08-14 00:47:23 -070090 The object takes the form of:
91
92{ # JSON template for an Analytics account ticket. The account ticket consists of the ticket ID and the basic information for the account, property and profile.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070093 &quot;id&quot;: &quot;A String&quot;, # Account ticket ID used to access the account ticket.
Bu Sun Kimd059ad82020-07-22 17:02:09 -070094 &quot;redirectUri&quot;: &quot;A String&quot;, # Redirect URI where the user will be sent after accepting Terms of Service. Must be configured in APIs console as a callback URL.
95 &quot;webproperty&quot;: { # JSON template for an Analytics web property. # Web property for the account.
96 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
97 # This property cannot be set on insert.
98 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
99 &quot;dataRetentionResetOnNewActivity&quot;: True or False, # Set to true to reset the retention period of the user identifier with each new event from that user (thus setting the expiration date to current time plus retention period).
100 # Set to false to delete data associated with the user identifier automatically after the rentention period.
101 # This property cannot be set on insert.
102 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
103 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
104 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
105 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
106 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
107 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
108 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
109 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
110 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
111 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
112 },
113 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
114 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
115 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
116 },
117 &quot;permissions&quot;: { # Permissions the user has for this web property.
118 &quot;effective&quot;: [ # All the permissions that the user has for this web property. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent account.
119 &quot;A String&quot;,
120 ],
121 },
122 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
123 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
124 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
125 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
126 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
127 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
128 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700129 &quot;account&quot;: { # JSON template for Analytics account entry. # Account for this ticket.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700130 &quot;kind&quot;: &quot;analytics#account&quot;, # Resource type for Analytics account.
131 &quot;created&quot;: &quot;A String&quot;, # Time the account was created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700132 &quot;permissions&quot;: { # Permissions the user has for this account.
133 &quot;effective&quot;: [ # All the permissions that the user has for this account. These include any implied permissions (e.g., EDIT implies VIEW).
134 &quot;A String&quot;,
135 ],
136 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700137 &quot;updated&quot;: &quot;A String&quot;, # Time the account was last modified.
138 &quot;childLink&quot;: { # Child link for an account entry. Points to the list of web properties for this account.
139 &quot;href&quot;: &quot;A String&quot;, # Link to the list of web properties for this account.
140 &quot;type&quot;: &quot;analytics#webproperties&quot;, # Type of the child link. Its value is &quot;analytics#webproperties&quot;.
141 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700142 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700143 &quot;id&quot;: &quot;A String&quot;, # Account ID.
144 &quot;starred&quot;: True or False, # Indicates whether this account is starred or not.
145 &quot;name&quot;: &quot;A String&quot;, # Account name.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700146 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700147 &quot;profile&quot;: { # JSON template for an Analytics view (profile). # View (Profile) for the account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700148 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700149 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700151 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700152 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700153 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700154 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
155 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700156 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
157 # 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 Kimd059ad82020-07-22 17:02:09 -0700158 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
159 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
160 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
161 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700163 &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.
164 &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.
165 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
166 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
167 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
168 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
169 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
170 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
171 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
172 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
173 },
174 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
175 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
177 &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.
178 &quot;A String&quot;,
179 ],
180 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700181 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
182 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
Bu Sun Kim65020912020-05-20 12:08:20 -0700183 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700184 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700185 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700186 &quot;kind&quot;: &quot;analytics#accountTicket&quot;, # Resource type for account ticket.
Craig Citro065b5302014-08-14 00:47:23 -0700187 }
188
189
190Returns:
191 An object of the form:
192
193 { # JSON template for an Analytics account ticket. The account ticket consists of the ticket ID and the basic information for the account, property and profile.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700194 &quot;id&quot;: &quot;A String&quot;, # Account ticket ID used to access the account ticket.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700195 &quot;redirectUri&quot;: &quot;A String&quot;, # Redirect URI where the user will be sent after accepting Terms of Service. Must be configured in APIs console as a callback URL.
196 &quot;webproperty&quot;: { # JSON template for an Analytics web property. # Web property for the account.
197 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
198 # This property cannot be set on insert.
199 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
200 &quot;dataRetentionResetOnNewActivity&quot;: True or False, # Set to true to reset the retention period of the user identifier with each new event from that user (thus setting the expiration date to current time plus retention period).
201 # Set to false to delete data associated with the user identifier automatically after the rentention period.
202 # This property cannot be set on insert.
203 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
204 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
205 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
206 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
207 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
208 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
209 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
210 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
211 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
212 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
213 },
214 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
215 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
216 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
217 },
218 &quot;permissions&quot;: { # Permissions the user has for this web property.
219 &quot;effective&quot;: [ # All the permissions that the user has for this web property. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent account.
220 &quot;A String&quot;,
221 ],
222 },
223 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
224 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
225 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
226 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
227 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
228 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
229 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700230 &quot;account&quot;: { # JSON template for Analytics account entry. # Account for this ticket.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700231 &quot;kind&quot;: &quot;analytics#account&quot;, # Resource type for Analytics account.
232 &quot;created&quot;: &quot;A String&quot;, # Time the account was created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700233 &quot;permissions&quot;: { # Permissions the user has for this account.
234 &quot;effective&quot;: [ # All the permissions that the user has for this account. These include any implied permissions (e.g., EDIT implies VIEW).
235 &quot;A String&quot;,
236 ],
237 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700238 &quot;updated&quot;: &quot;A String&quot;, # Time the account was last modified.
239 &quot;childLink&quot;: { # Child link for an account entry. Points to the list of web properties for this account.
240 &quot;href&quot;: &quot;A String&quot;, # Link to the list of web properties for this account.
241 &quot;type&quot;: &quot;analytics#webproperties&quot;, # Type of the child link. Its value is &quot;analytics#webproperties&quot;.
242 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700243 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700244 &quot;id&quot;: &quot;A String&quot;, # Account ID.
245 &quot;starred&quot;: True or False, # Indicates whether this account is starred or not.
246 &quot;name&quot;: &quot;A String&quot;, # Account name.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700247 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700248 &quot;profile&quot;: { # JSON template for an Analytics view (profile). # View (Profile) for the account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700249 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700250 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700251 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700252 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700253 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700254 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700255 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
256 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700257 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
258 # 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 Kimd059ad82020-07-22 17:02:09 -0700259 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
260 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
261 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
262 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
Bu Sun Kim65020912020-05-20 12:08:20 -0700263 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700264 &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.
265 &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.
266 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
267 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
268 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
269 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
270 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
271 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
272 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
273 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
274 },
275 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
276 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700277 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
278 &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.
279 &quot;A String&quot;,
280 ],
281 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700282 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
283 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
Bu Sun Kim65020912020-05-20 12:08:20 -0700284 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700285 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700286 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700287 &quot;kind&quot;: &quot;analytics#accountTicket&quot;, # Resource type for account ticket.
Craig Citro065b5302014-08-14 00:47:23 -0700288 }</pre>
289</div>
290
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700291<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700292 <code class="details" id="createAccountTree">createAccountTree(body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700293 <pre>Provision account.
294
295Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700296 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700297 The object takes the form of:
298
299{ # JSON template for an Analytics account tree requests. The account tree request is used in the provisioning api to create an account, property, and view (profile). It contains the basic information required to make these fields.
Bu Sun Kim65020912020-05-20 12:08:20 -0700300 &quot;timezone&quot;: &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700301 &quot;kind&quot;: &quot;analytics#accountTreeRequest&quot;, # Resource type for account ticket.
302 &quot;webpropertyName&quot;: &quot;A String&quot;,
303 &quot;profileName&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700304 &quot;accountName&quot;: &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700305 &quot;websiteUrl&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700306 }
307
308
309Returns:
310 An object of the form:
311
312 { # JSON template for an Analytics account tree response. The account tree response is used in the provisioning api to return the result of creating an account, property, and view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700313 &quot;webproperty&quot;: { # JSON template for an Analytics web property. # Web property for the account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700314 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
315 # This property cannot be set on insert.
316 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
317 &quot;dataRetentionResetOnNewActivity&quot;: True or False, # Set to true to reset the retention period of the user identifier with each new event from that user (thus setting the expiration date to current time plus retention period).
318 # Set to false to delete data associated with the user identifier automatically after the rentention period.
319 # This property cannot be set on insert.
320 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
321 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
322 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
323 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
324 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
325 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
326 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
327 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
328 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
329 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
330 },
331 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
332 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
333 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
334 },
335 &quot;permissions&quot;: { # Permissions the user has for this web property.
336 &quot;effective&quot;: [ # All the permissions that the user has for this web property. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent account.
337 &quot;A String&quot;,
338 ],
339 },
340 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
341 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
342 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
343 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
344 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
345 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
Dan O'Mearadd494642020-05-01 07:42:23 -0700346 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700347 &quot;profile&quot;: { # JSON template for an Analytics view (profile). # View (Profile) for the account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700348 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700349 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700350 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700351 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700352 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700353 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700354 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
355 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700356 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
357 # 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 Kimd059ad82020-07-22 17:02:09 -0700358 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
359 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
360 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
361 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
Bu Sun Kim65020912020-05-20 12:08:20 -0700362 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700363 &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.
364 &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.
365 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
366 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
367 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
368 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
369 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
370 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
371 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
372 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
373 },
374 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
375 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700376 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
377 &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.
378 &quot;A String&quot;,
379 ],
380 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700381 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
382 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
Bu Sun Kim65020912020-05-20 12:08:20 -0700383 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700384 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700385 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700386 &quot;kind&quot;: &quot;analytics#accountTreeResponse&quot;, # Resource type for account ticket.
387 &quot;account&quot;: { # JSON template for Analytics account entry. # The account created.
388 &quot;kind&quot;: &quot;analytics#account&quot;, # Resource type for Analytics account.
389 &quot;created&quot;: &quot;A String&quot;, # Time the account was created.
390 &quot;permissions&quot;: { # Permissions the user has for this account.
391 &quot;effective&quot;: [ # All the permissions that the user has for this account. These include any implied permissions (e.g., EDIT implies VIEW).
392 &quot;A String&quot;,
393 ],
394 },
395 &quot;updated&quot;: &quot;A String&quot;, # Time the account was last modified.
396 &quot;childLink&quot;: { # Child link for an account entry. Points to the list of web properties for this account.
397 &quot;href&quot;: &quot;A String&quot;, # Link to the list of web properties for this account.
398 &quot;type&quot;: &quot;analytics#webproperties&quot;, # Type of the child link. Its value is &quot;analytics#webproperties&quot;.
399 },
400 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this account.
401 &quot;id&quot;: &quot;A String&quot;, # Account ID.
402 &quot;starred&quot;: True or False, # Indicates whether this account is starred or not.
403 &quot;name&quot;: &quot;A String&quot;, # Account name.
404 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700405 }</pre>
406</div>
407
Craig Citro065b5302014-08-14 00:47:23 -0700408</body></html>