blob: e7f1d3ccaf0aa89b58870f0a7c14a35843256356 [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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#createAccountTicket">createAccountTicket(body=None)</a></code></p>
Craig Citro065b5302014-08-14 00:47:23 -070082<p class="firstline">Creates an account ticket.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#createAccountTree">createAccountTree(body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Provision account.</p>
Craig Citro065b5302014-08-14 00:47:23 -070086<h3>Method Details</h3>
87<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088 <code class="details" id="close">close()</code>
89 <pre>Close httplib2 connections.</pre>
90</div>
91
92<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code class="details" id="createAccountTicket">createAccountTicket(body=None)</code>
Craig Citro065b5302014-08-14 00:47:23 -070094 <pre>Creates an account ticket.
95
96Args:
Dan O'Mearadd494642020-05-01 07:42:23 -070097 body: object, The request body.
Craig Citro065b5302014-08-14 00:47:23 -070098 The object takes the form of:
99
100{ # 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700101 &quot;account&quot;: { # JSON template for Analytics account entry. # Account for this ticket.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700102 &quot;permissions&quot;: { # Permissions the user has for this account.
103 &quot;effective&quot;: [ # All the permissions that the user has for this account. These include any implied permissions (e.g., EDIT implies VIEW).
104 &quot;A String&quot;,
105 ],
106 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800107 &quot;starred&quot;: True or False, # Indicates whether this account is starred or not.
108 &quot;name&quot;: &quot;A String&quot;, # Account name.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800109 &quot;childLink&quot;: { # Child link for an account entry. Points to the list of web properties for this account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800110 &quot;type&quot;: &quot;analytics#webproperties&quot;, # Type of the child link. Its value is &quot;analytics#webproperties&quot;.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800111 &quot;href&quot;: &quot;A String&quot;, # Link to the list of web properties for this account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800112 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800113 &quot;updated&quot;: &quot;A String&quot;, # Time the account was last modified.
114 &quot;created&quot;: &quot;A String&quot;, # Time the account was created.
115 &quot;kind&quot;: &quot;analytics#account&quot;, # Resource type for Analytics account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800116 &quot;id&quot;: &quot;A String&quot;, # Account ID.
117 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this account.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700118 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800119 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800120 &quot;webproperty&quot;: { # JSON template for an Analytics web property. # Web property for the account.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800121 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
122 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
123 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
124 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
125 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
126 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
127 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800128 &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).
129 # Set to false to delete data associated with the user identifier automatically after the rentention period.
130 # This property cannot be set on insert.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800131 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800132 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
133 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
134 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
135 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800136 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
137 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
138 # This property cannot be set on insert.
139 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
140 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
141 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800142 &quot;permissions&quot;: { # Permissions the user has for this web property.
143 &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.
144 &quot;A String&quot;,
145 ],
146 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800147 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
148 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
149 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
150 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
151 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
152 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800153 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800154 &quot;id&quot;: &quot;A String&quot;, # Account ticket ID used to access the account ticket.
155 &quot;profile&quot;: { # JSON template for an Analytics view (profile). # View (Profile) for the account.
156 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
157 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
158 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
159 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
160 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
161 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
162 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
163 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
164 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
165 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
166 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
167 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
168 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
169 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
170 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
171 # 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
172 &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.
173 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
174 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
175 &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.
176 &quot;A String&quot;,
177 ],
178 },
179 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
180 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
181 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
182 },
183 &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.
184 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
185 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
186 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
187 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
188 },
189 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
190 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
191 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
192 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
193 },
194 &quot;kind&quot;: &quot;analytics#accountTicket&quot;, # Resource type for account ticket.
Craig Citro065b5302014-08-14 00:47:23 -0700195 }
196
197
198Returns:
199 An object of the form:
200
201 { # 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700202 &quot;account&quot;: { # JSON template for Analytics account entry. # Account for this ticket.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700203 &quot;permissions&quot;: { # Permissions the user has for this account.
204 &quot;effective&quot;: [ # All the permissions that the user has for this account. These include any implied permissions (e.g., EDIT implies VIEW).
205 &quot;A String&quot;,
206 ],
207 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800208 &quot;starred&quot;: True or False, # Indicates whether this account is starred or not.
209 &quot;name&quot;: &quot;A String&quot;, # Account name.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800210 &quot;childLink&quot;: { # Child link for an account entry. Points to the list of web properties for this account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800211 &quot;type&quot;: &quot;analytics#webproperties&quot;, # Type of the child link. Its value is &quot;analytics#webproperties&quot;.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800212 &quot;href&quot;: &quot;A String&quot;, # Link to the list of web properties for this account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800213 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800214 &quot;updated&quot;: &quot;A String&quot;, # Time the account was last modified.
215 &quot;created&quot;: &quot;A String&quot;, # Time the account was created.
216 &quot;kind&quot;: &quot;analytics#account&quot;, # Resource type for Analytics account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800217 &quot;id&quot;: &quot;A String&quot;, # Account ID.
218 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this account.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700219 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800220 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800221 &quot;webproperty&quot;: { # JSON template for an Analytics web property. # Web property for the account.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800222 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
223 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
224 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
225 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
226 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
227 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
228 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800229 &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).
230 # Set to false to delete data associated with the user identifier automatically after the rentention period.
231 # This property cannot be set on insert.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800232 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800233 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
234 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
235 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
236 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800237 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
238 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
239 # This property cannot be set on insert.
240 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
241 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
242 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800243 &quot;permissions&quot;: { # Permissions the user has for this web property.
244 &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.
245 &quot;A String&quot;,
246 ],
247 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800248 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
249 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
250 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
251 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
252 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
253 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800254 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800255 &quot;id&quot;: &quot;A String&quot;, # Account ticket ID used to access the account ticket.
256 &quot;profile&quot;: { # JSON template for an Analytics view (profile). # View (Profile) for the account.
257 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
258 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
259 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
260 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
261 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
262 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
263 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
264 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
265 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
266 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
267 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
268 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
269 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
270 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
271 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
272 # 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
273 &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.
274 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
275 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
276 &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.
277 &quot;A String&quot;,
278 ],
279 },
280 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
281 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
282 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
283 },
284 &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.
285 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
286 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
287 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
288 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
289 },
290 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
291 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
292 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
293 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
294 },
295 &quot;kind&quot;: &quot;analytics#accountTicket&quot;, # Resource type for account ticket.
Craig Citro065b5302014-08-14 00:47:23 -0700296 }</pre>
297</div>
298
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700299<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700300 <code class="details" id="createAccountTree">createAccountTree(body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700301 <pre>Provision account.
302
303Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700304 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700305 The object takes the form of:
306
307{ # 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 Kim673ec5c2020-11-16 11:05:03 -0700308 &quot;kind&quot;: &quot;analytics#accountTreeRequest&quot;, # Resource type for account ticket.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800309 &quot;accountName&quot;: &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800310 &quot;profileName&quot;: &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800311 &quot;websiteUrl&quot;: &quot;A String&quot;,
312 &quot;timezone&quot;: &quot;A String&quot;,
313 &quot;webpropertyName&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700314 }
315
316
317Returns:
318 An object of the form:
319
320 { # 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).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800321 &quot;account&quot;: { # JSON template for Analytics account entry. # The account created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700322 &quot;permissions&quot;: { # Permissions the user has for this account.
323 &quot;effective&quot;: [ # All the permissions that the user has for this account. These include any implied permissions (e.g., EDIT implies VIEW).
324 &quot;A String&quot;,
325 ],
326 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800327 &quot;starred&quot;: True or False, # Indicates whether this account is starred or not.
328 &quot;name&quot;: &quot;A String&quot;, # Account name.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800329 &quot;childLink&quot;: { # Child link for an account entry. Points to the list of web properties for this account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800330 &quot;type&quot;: &quot;analytics#webproperties&quot;, # Type of the child link. Its value is &quot;analytics#webproperties&quot;.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800331 &quot;href&quot;: &quot;A String&quot;, # Link to the list of web properties for this account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800332 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800333 &quot;updated&quot;: &quot;A String&quot;, # Time the account was last modified.
334 &quot;created&quot;: &quot;A String&quot;, # Time the account was created.
335 &quot;kind&quot;: &quot;analytics#account&quot;, # Resource type for Analytics account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800336 &quot;id&quot;: &quot;A String&quot;, # Account ID.
337 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this account.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700338 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800339 &quot;webproperty&quot;: { # JSON template for an Analytics web property. # Web property for the account.
340 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
341 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
342 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
343 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
344 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
345 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800346 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800347 &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).
348 # Set to false to delete data associated with the user identifier automatically after the rentention period.
349 # This property cannot be set on insert.
350 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
351 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
352 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
353 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800354 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800355 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
356 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
357 # This property cannot be set on insert.
358 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
359 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
360 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
361 &quot;permissions&quot;: { # Permissions the user has for this web property.
362 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700363 &quot;A String&quot;,
364 ],
365 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800366 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
367 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
368 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
369 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
370 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
371 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
Bu Sun Kim65020912020-05-20 12:08:20 -0700372 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800373 &quot;profile&quot;: { # JSON template for an Analytics view (profile). # View (Profile) for the account.
374 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
375 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
376 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
377 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
378 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
379 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
380 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
381 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
382 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
383 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
384 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
385 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
386 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
387 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
388 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
389 # 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
390 &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.
391 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
392 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
393 &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.
394 &quot;A String&quot;,
395 ],
396 },
397 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
398 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
399 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
400 },
401 &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.
402 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
403 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
404 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
405 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
406 },
407 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
408 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
409 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
410 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
411 },
412 &quot;kind&quot;: &quot;analytics#accountTreeResponse&quot;, # Resource type for account ticket.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700413 }</pre>
414</div>
415
Craig Citro065b5302014-08-14 00:47:23 -0700416</body></html>