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