Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, 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 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, 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 Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 78 | <code><a href="#close">close()</a></code></p> |
| 79 | <p class="firstline">Close httplib2 connections.</p> |
| 80 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 81 | <code><a href="#createAccountTicket">createAccountTicket(body=None)</a></code></p> |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 82 | <p class="firstline">Creates an account ticket.</p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 83 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 84 | <code><a href="#createAccountTree">createAccountTree(body=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 85 | <p class="firstline">Provision account.</p> |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 86 | <h3>Method Details</h3> |
| 87 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 88 | <code class="details" id="close">close()</code> |
| 89 | <pre>Close httplib2 connections.</pre> |
| 90 | </div> |
| 91 | |
| 92 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 93 | <code class="details" id="createAccountTicket">createAccountTicket(body=None)</code> |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 94 | <pre>Creates an account ticket. |
| 95 | |
| 96 | Args: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 97 | body: object, The request body. |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 98 | 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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 101 | "redirectUri": "A String", # Redirect URI where the user will be sent after accepting Terms of Service. Must be configured in APIs console as a callback URL. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 102 | "account": { # JSON template for Analytics account entry. # Account for this ticket. |
| 103 | "updated": "A String", # Time the account was last modified. |
| 104 | "name": "A String", # Account name. |
| 105 | "permissions": { # Permissions the user has for this account. |
| 106 | "effective": [ # All the permissions that the user has for this account. These include any implied permissions (e.g., EDIT implies VIEW). |
| 107 | "A String", |
| 108 | ], |
| 109 | }, |
| 110 | "id": "A String", # Account ID. |
| 111 | "childLink": { # Child link for an account entry. Points to the list of web properties for this account. |
| 112 | "href": "A String", # Link to the list of web properties for this account. |
| 113 | "type": "analytics#webproperties", # Type of the child link. Its value is "analytics#webproperties". |
| 114 | }, |
| 115 | "created": "A String", # Time the account was created. |
| 116 | "kind": "analytics#account", # Resource type for Analytics account. |
| 117 | "selfLink": "A String", # Link for this account. |
| 118 | "starred": True or False, # Indicates whether this account is starred or not. |
| 119 | }, |
| 120 | "kind": "analytics#accountTicket", # Resource type for account ticket. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 121 | "webproperty": { # JSON template for an Analytics web property. # Web property for the account. |
| 122 | "dataRetentionTtl": "A String", # The length of time for which user and event data is retained. |
| 123 | # This property cannot be set on insert. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 124 | "selfLink": "A String", # Link for this web property. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 125 | "childLink": { # Child link for this web property. Points to the list of views (profiles) for this web property. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 126 | "type": "analytics#profiles", # Type of the parent link. Its value is "analytics#profiles". |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 127 | "href": "A String", # Link to the list of views (profiles) for this web property. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 128 | }, |
| 129 | "permissions": { # Permissions the user has for this web property. |
| 130 | "effective": [ # 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. |
| 131 | "A String", |
| 132 | ], |
| 133 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 134 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 135 | "kind": "analytics#webproperty", # Resource type for Analytics WebProperty. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 136 | "industryVertical": "A String", # The industry vertical/category selected for this web property. |
| 137 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 138 | "defaultProfileId": "A String", # Default view (profile) ID. |
| 139 | "parentLink": { # Parent link for this web property. Points to the account to which this web property belongs. |
| 140 | "href": "A String", # Link to the account for this web property. |
| 141 | "type": "analytics#account", # Type of the parent link. Its value is "analytics#account". |
| 142 | }, |
| 143 | "name": "A String", # Name of this web property. |
| 144 | "level": "A String", # Level for this web property. Possible values are STANDARD or PREMIUM. |
| 145 | "dataRetentionResetOnNewActivity": 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). |
| 146 | # Set to false to delete data associated with the user identifier automatically after the rentention period. |
| 147 | # This property cannot be set on insert. |
| 148 | "starred": True or False, # Indicates whether this web property is starred or not. |
| 149 | "created": "A String", # Time this web property was created. |
| 150 | "updated": "A String", # Time this web property was last modified. |
| 151 | "websiteUrl": "A String", # Website url for this web property. |
| 152 | "profileCount": 42, # View (Profile) count for this web property. |
| 153 | "accountId": "A String", # Account ID to which this web property belongs. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 154 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 155 | "profile": { # JSON template for an Analytics view (profile). # View (Profile) for the account. |
| 156 | "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. |
| 157 | "name": "A String", # Name of this view (profile). |
| 158 | "accountId": "A String", # Account ID to which this view (profile) belongs. |
| 159 | "created": "A String", # Time this view (profile) was created. |
| 160 | "eCommerceTracking": True or False, # Indicates whether ecommerce tracking is enabled for this view (profile). |
| 161 | "defaultPage": "A String", # Default page for this view (profile). |
| 162 | "currency": "A String", # The currency type associated with this view (profile), defaults to USD. The supported values are: |
| 163 | # 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 |
| 164 | "parentLink": { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs. |
| 165 | "type": "analytics#webproperty", # Value is "analytics#webproperty". |
| 166 | "href": "A String", # Link to the web property to which this view (profile) belongs. |
| 167 | }, |
| 168 | "excludeQueryParameters": "A String", # The query parameters that are excluded from this view (profile). |
| 169 | "permissions": { # Permissions the user has for this view (profile). |
| 170 | "effective": [ # 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. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 171 | "A String", |
| 172 | ], |
| 173 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 174 | "siteSearchQueryParameters": "A String", # The site search query parameters for this view (profile). |
| 175 | "type": "A String", # View (Profile) type. Supported types: WEB or APP. |
| 176 | "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. |
| 177 | "updated": "A String", # Time this view (profile) was last modified. |
| 178 | "botFilteringEnabled": True or False, # Indicates whether bot filtering is enabled for this view (profile). |
| 179 | "enhancedECommerceTracking": 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. |
| 180 | "stripSiteSearchCategoryParameters": True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports. |
| 181 | "websiteUrl": "A String", # Website URL for this view (profile). |
| 182 | "stripSiteSearchQueryParameters": True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports. |
| 183 | "kind": "analytics#profile", # Resource type for Analytics view (profile). |
| 184 | "starred": True or False, # Indicates whether this view (profile) is starred or not. |
| 185 | "id": "A String", # View (Profile) ID. |
| 186 | "timezone": "A String", # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database. |
| 187 | "selfLink": "A String", # Link for this view (profile). |
| 188 | "childLink": { # Child link for this view (profile). Points to the list of goals for this view (profile). |
| 189 | "type": "analytics#goals", # Value is "analytics#goals". |
| 190 | "href": "A String", # Link to the list of goals for this view (profile). |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 191 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 192 | "siteSearchCategoryParameters": "A String", # Site search category parameters for this view (profile). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 193 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 194 | "id": "A String", # Account ticket ID used to access the account ticket. |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 195 | } |
| 196 | |
| 197 | |
| 198 | Returns: |
| 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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 202 | "redirectUri": "A String", # Redirect URI where the user will be sent after accepting Terms of Service. Must be configured in APIs console as a callback URL. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 203 | "account": { # JSON template for Analytics account entry. # Account for this ticket. |
| 204 | "updated": "A String", # Time the account was last modified. |
| 205 | "name": "A String", # Account name. |
| 206 | "permissions": { # Permissions the user has for this account. |
| 207 | "effective": [ # All the permissions that the user has for this account. These include any implied permissions (e.g., EDIT implies VIEW). |
| 208 | "A String", |
| 209 | ], |
| 210 | }, |
| 211 | "id": "A String", # Account ID. |
| 212 | "childLink": { # Child link for an account entry. Points to the list of web properties for this account. |
| 213 | "href": "A String", # Link to the list of web properties for this account. |
| 214 | "type": "analytics#webproperties", # Type of the child link. Its value is "analytics#webproperties". |
| 215 | }, |
| 216 | "created": "A String", # Time the account was created. |
| 217 | "kind": "analytics#account", # Resource type for Analytics account. |
| 218 | "selfLink": "A String", # Link for this account. |
| 219 | "starred": True or False, # Indicates whether this account is starred or not. |
| 220 | }, |
| 221 | "kind": "analytics#accountTicket", # Resource type for account ticket. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 222 | "webproperty": { # JSON template for an Analytics web property. # Web property for the account. |
| 223 | "dataRetentionTtl": "A String", # The length of time for which user and event data is retained. |
| 224 | # This property cannot be set on insert. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 225 | "selfLink": "A String", # Link for this web property. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 226 | "childLink": { # Child link for this web property. Points to the list of views (profiles) for this web property. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 227 | "type": "analytics#profiles", # Type of the parent link. Its value is "analytics#profiles". |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 228 | "href": "A String", # Link to the list of views (profiles) for this web property. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 229 | }, |
| 230 | "permissions": { # Permissions the user has for this web property. |
| 231 | "effective": [ # 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. |
| 232 | "A String", |
| 233 | ], |
| 234 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 235 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 236 | "kind": "analytics#webproperty", # Resource type for Analytics WebProperty. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 237 | "industryVertical": "A String", # The industry vertical/category selected for this web property. |
| 238 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 239 | "defaultProfileId": "A String", # Default view (profile) ID. |
| 240 | "parentLink": { # Parent link for this web property. Points to the account to which this web property belongs. |
| 241 | "href": "A String", # Link to the account for this web property. |
| 242 | "type": "analytics#account", # Type of the parent link. Its value is "analytics#account". |
| 243 | }, |
| 244 | "name": "A String", # Name of this web property. |
| 245 | "level": "A String", # Level for this web property. Possible values are STANDARD or PREMIUM. |
| 246 | "dataRetentionResetOnNewActivity": 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). |
| 247 | # Set to false to delete data associated with the user identifier automatically after the rentention period. |
| 248 | # This property cannot be set on insert. |
| 249 | "starred": True or False, # Indicates whether this web property is starred or not. |
| 250 | "created": "A String", # Time this web property was created. |
| 251 | "updated": "A String", # Time this web property was last modified. |
| 252 | "websiteUrl": "A String", # Website url for this web property. |
| 253 | "profileCount": 42, # View (Profile) count for this web property. |
| 254 | "accountId": "A String", # Account ID to which this web property belongs. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 255 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 256 | "profile": { # JSON template for an Analytics view (profile). # View (Profile) for the account. |
| 257 | "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. |
| 258 | "name": "A String", # Name of this view (profile). |
| 259 | "accountId": "A String", # Account ID to which this view (profile) belongs. |
| 260 | "created": "A String", # Time this view (profile) was created. |
| 261 | "eCommerceTracking": True or False, # Indicates whether ecommerce tracking is enabled for this view (profile). |
| 262 | "defaultPage": "A String", # Default page for this view (profile). |
| 263 | "currency": "A String", # The currency type associated with this view (profile), defaults to USD. The supported values are: |
| 264 | # 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 |
| 265 | "parentLink": { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs. |
| 266 | "type": "analytics#webproperty", # Value is "analytics#webproperty". |
| 267 | "href": "A String", # Link to the web property to which this view (profile) belongs. |
| 268 | }, |
| 269 | "excludeQueryParameters": "A String", # The query parameters that are excluded from this view (profile). |
| 270 | "permissions": { # Permissions the user has for this view (profile). |
| 271 | "effective": [ # 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. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 272 | "A String", |
| 273 | ], |
| 274 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 275 | "siteSearchQueryParameters": "A String", # The site search query parameters for this view (profile). |
| 276 | "type": "A String", # View (Profile) type. Supported types: WEB or APP. |
| 277 | "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. |
| 278 | "updated": "A String", # Time this view (profile) was last modified. |
| 279 | "botFilteringEnabled": True or False, # Indicates whether bot filtering is enabled for this view (profile). |
| 280 | "enhancedECommerceTracking": 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. |
| 281 | "stripSiteSearchCategoryParameters": True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports. |
| 282 | "websiteUrl": "A String", # Website URL for this view (profile). |
| 283 | "stripSiteSearchQueryParameters": True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports. |
| 284 | "kind": "analytics#profile", # Resource type for Analytics view (profile). |
| 285 | "starred": True or False, # Indicates whether this view (profile) is starred or not. |
| 286 | "id": "A String", # View (Profile) ID. |
| 287 | "timezone": "A String", # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database. |
| 288 | "selfLink": "A String", # Link for this view (profile). |
| 289 | "childLink": { # Child link for this view (profile). Points to the list of goals for this view (profile). |
| 290 | "type": "analytics#goals", # Value is "analytics#goals". |
| 291 | "href": "A String", # Link to the list of goals for this view (profile). |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 292 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 293 | "siteSearchCategoryParameters": "A String", # Site search category parameters for this view (profile). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 294 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 295 | "id": "A String", # Account ticket ID used to access the account ticket. |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 296 | }</pre> |
| 297 | </div> |
| 298 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 299 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 300 | <code class="details" id="createAccountTree">createAccountTree(body=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 301 | <pre>Provision account. |
| 302 | |
| 303 | Args: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 304 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 305 | 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 Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 308 | "timezone": "A String", |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 309 | "accountName": "A String", |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 310 | "webpropertyName": "A String", |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 311 | "websiteUrl": "A String", |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 312 | "kind": "analytics#accountTreeRequest", # Resource type for account ticket. |
| 313 | "profileName": "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 314 | } |
| 315 | |
| 316 | |
| 317 | Returns: |
| 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). |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 321 | "profile": { # JSON template for an Analytics view (profile). # View (Profile) for the account. |
| 322 | "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. |
| 323 | "name": "A String", # Name of this view (profile). |
| 324 | "accountId": "A String", # Account ID to which this view (profile) belongs. |
| 325 | "created": "A String", # Time this view (profile) was created. |
| 326 | "eCommerceTracking": True or False, # Indicates whether ecommerce tracking is enabled for this view (profile). |
| 327 | "defaultPage": "A String", # Default page for this view (profile). |
| 328 | "currency": "A String", # The currency type associated with this view (profile), defaults to USD. The supported values are: |
| 329 | # 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 |
| 330 | "parentLink": { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs. |
| 331 | "type": "analytics#webproperty", # Value is "analytics#webproperty". |
| 332 | "href": "A String", # Link to the web property to which this view (profile) belongs. |
| 333 | }, |
| 334 | "excludeQueryParameters": "A String", # The query parameters that are excluded from this view (profile). |
| 335 | "permissions": { # Permissions the user has for this view (profile). |
| 336 | "effective": [ # 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. |
| 337 | "A String", |
| 338 | ], |
| 339 | }, |
| 340 | "siteSearchQueryParameters": "A String", # The site search query parameters for this view (profile). |
| 341 | "type": "A String", # View (Profile) type. Supported types: WEB or APP. |
| 342 | "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. |
| 343 | "updated": "A String", # Time this view (profile) was last modified. |
| 344 | "botFilteringEnabled": True or False, # Indicates whether bot filtering is enabled for this view (profile). |
| 345 | "enhancedECommerceTracking": 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. |
| 346 | "stripSiteSearchCategoryParameters": True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports. |
| 347 | "websiteUrl": "A String", # Website URL for this view (profile). |
| 348 | "stripSiteSearchQueryParameters": True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports. |
| 349 | "kind": "analytics#profile", # Resource type for Analytics view (profile). |
| 350 | "starred": True or False, # Indicates whether this view (profile) is starred or not. |
| 351 | "id": "A String", # View (Profile) ID. |
| 352 | "timezone": "A String", # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database. |
| 353 | "selfLink": "A String", # Link for this view (profile). |
| 354 | "childLink": { # Child link for this view (profile). Points to the list of goals for this view (profile). |
| 355 | "type": "analytics#goals", # Value is "analytics#goals". |
| 356 | "href": "A String", # Link to the list of goals for this view (profile). |
| 357 | }, |
| 358 | "siteSearchCategoryParameters": "A String", # Site search category parameters for this view (profile). |
| 359 | }, |
| 360 | "kind": "analytics#accountTreeResponse", # Resource type for account ticket. |
| 361 | "account": { # JSON template for Analytics account entry. # The account created. |
| 362 | "updated": "A String", # Time the account was last modified. |
| 363 | "name": "A String", # Account name. |
| 364 | "permissions": { # Permissions the user has for this account. |
| 365 | "effective": [ # All the permissions that the user has for this account. These include any implied permissions (e.g., EDIT implies VIEW). |
| 366 | "A String", |
| 367 | ], |
| 368 | }, |
| 369 | "id": "A String", # Account ID. |
| 370 | "childLink": { # Child link for an account entry. Points to the list of web properties for this account. |
| 371 | "href": "A String", # Link to the list of web properties for this account. |
| 372 | "type": "analytics#webproperties", # Type of the child link. Its value is "analytics#webproperties". |
| 373 | }, |
| 374 | "created": "A String", # Time the account was created. |
| 375 | "kind": "analytics#account", # Resource type for Analytics account. |
| 376 | "selfLink": "A String", # Link for this account. |
| 377 | "starred": True or False, # Indicates whether this account is starred or not. |
| 378 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 379 | "webproperty": { # JSON template for an Analytics web property. # Web property for the account. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 380 | "dataRetentionTtl": "A String", # The length of time for which user and event data is retained. |
| 381 | # This property cannot be set on insert. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 382 | "selfLink": "A String", # Link for this web property. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 383 | "childLink": { # Child link for this web property. Points to the list of views (profiles) for this web property. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 384 | "type": "analytics#profiles", # Type of the parent link. Its value is "analytics#profiles". |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 385 | "href": "A String", # Link to the list of views (profiles) for this web property. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 386 | }, |
| 387 | "permissions": { # Permissions the user has for this web property. |
| 388 | "effective": [ # 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. |
| 389 | "A String", |
| 390 | ], |
| 391 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 392 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 393 | "kind": "analytics#webproperty", # Resource type for Analytics WebProperty. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 394 | "industryVertical": "A String", # The industry vertical/category selected for this web property. |
| 395 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 396 | "defaultProfileId": "A String", # Default view (profile) ID. |
| 397 | "parentLink": { # Parent link for this web property. Points to the account to which this web property belongs. |
| 398 | "href": "A String", # Link to the account for this web property. |
| 399 | "type": "analytics#account", # Type of the parent link. Its value is "analytics#account". |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 400 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 401 | "name": "A String", # Name of this web property. |
| 402 | "level": "A String", # Level for this web property. Possible values are STANDARD or PREMIUM. |
| 403 | "dataRetentionResetOnNewActivity": 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). |
| 404 | # Set to false to delete data associated with the user identifier automatically after the rentention period. |
| 405 | # This property cannot be set on insert. |
| 406 | "starred": True or False, # Indicates whether this web property is starred or not. |
| 407 | "created": "A String", # Time this web property was created. |
| 408 | "updated": "A String", # Time this web property was last modified. |
| 409 | "websiteUrl": "A String", # Website url for this web property. |
| 410 | "profileCount": 42, # View (Profile) count for this web property. |
| 411 | "accountId": "A String", # Account ID to which this web property belongs. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 412 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 413 | }</pre> |
| 414 | </div> |
| 415 | |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 416 | </body></html> |