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 | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 101 | "kind": "analytics#accountTicket", # Resource type for account ticket. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 102 | "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. |
| 103 | "id": "A String", # Account ticket ID used to access the account ticket. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 104 | "profile": { # JSON template for an Analytics view (profile). # View (Profile) for the account. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 105 | "parentLink": { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs. |
| 106 | "type": "analytics#webproperty", # Value is "analytics#webproperty". |
| 107 | "href": "A String", # Link to the web property to which this view (profile) belongs. |
| 108 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 109 | "id": "A String", # View (Profile) ID. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 110 | "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. |
| 111 | "timezone": "A String", # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database. |
| 112 | "created": "A String", # Time this view (profile) was created. |
| 113 | "siteSearchCategoryParameters": "A String", # Site search category parameters for this view (profile). |
| 114 | "childLink": { # Child link for this view (profile). Points to the list of goals for this view (profile). |
| 115 | "href": "A String", # Link to the list of goals for this view (profile). |
| 116 | "type": "analytics#goals", # Value is "analytics#goals". |
| 117 | }, |
| 118 | "defaultPage": "A String", # Default page for this view (profile). |
| 119 | "botFilteringEnabled": True or False, # Indicates whether bot filtering is enabled for this view (profile). |
| 120 | "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. |
| 121 | "name": "A String", # Name of this view (profile). |
| 122 | "excludeQueryParameters": "A String", # The query parameters that are excluded from this view (profile). |
| 123 | "stripSiteSearchCategoryParameters": True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports. |
| 124 | "starred": True or False, # Indicates whether this view (profile) is starred or not. |
| 125 | "accountId": "A String", # Account ID to which this view (profile) belongs. |
| 126 | "eCommerceTracking": True or False, # Indicates whether ecommerce tracking is enabled for this view (profile). |
| 127 | "websiteUrl": "A String", # Website URL for this view (profile). |
| 128 | "type": "A String", # View (Profile) type. Supported types: WEB or APP. |
| 129 | "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. |
| 130 | "stripSiteSearchQueryParameters": True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports. |
| 131 | "selfLink": "A String", # Link for this view (profile). |
| 132 | "currency": "A String", # The currency type associated with this view (profile), defaults to USD. The supported values are: |
| 133 | # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 134 | "permissions": { # Permissions the user has for this view (profile). |
| 135 | "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. |
| 136 | "A String", |
| 137 | ], |
| 138 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 139 | "updated": "A String", # Time this view (profile) was last modified. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 140 | "kind": "analytics#profile", # Resource type for Analytics view (profile). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 141 | "siteSearchQueryParameters": "A String", # The site search query parameters for this view (profile). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 142 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 143 | "account": { # JSON template for Analytics account entry. # Account for this ticket. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 144 | "name": "A String", # Account name. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 145 | "kind": "analytics#account", # Resource type for Analytics account. |
| 146 | "starred": True or False, # Indicates whether this account is starred or not. |
| 147 | "created": "A String", # Time the account was created. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 148 | "updated": "A String", # Time the account was last modified. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 149 | "permissions": { # Permissions the user has for this account. |
| 150 | "effective": [ # All the permissions that the user has for this account. These include any implied permissions (e.g., EDIT implies VIEW). |
| 151 | "A String", |
| 152 | ], |
| 153 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 154 | "childLink": { # Child link for an account entry. Points to the list of web properties for this account. |
| 155 | "href": "A String", # Link to the list of web properties for this account. |
| 156 | "type": "analytics#webproperties", # Type of the child link. Its value is "analytics#webproperties". |
| 157 | }, |
| 158 | "id": "A String", # Account ID. |
| 159 | "selfLink": "A String", # Link for this account. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 160 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 161 | "webproperty": { # JSON template for an Analytics web property. # Web property for the account. |
| 162 | "updated": "A String", # Time this web property was last modified. |
| 163 | "dataRetentionTtl": "A String", # The length of time for which user and event data is retained. |
| 164 | # This property cannot be set on insert. |
| 165 | "accountId": "A String", # Account ID to which this web property belongs. |
| 166 | "defaultProfileId": "A String", # Default view (profile) ID. |
| 167 | "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). |
| 168 | # Set to false to delete data associated with the user identifier automatically after the rentention period. |
| 169 | # This property cannot be set on insert. |
| 170 | "industryVertical": "A String", # The industry vertical/category selected for this web property. |
| 171 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 172 | "websiteUrl": "A String", # Website url for this web property. |
| 173 | "starred": True or False, # Indicates whether this web property is starred or not. |
| 174 | "kind": "analytics#webproperty", # Resource type for Analytics WebProperty. |
| 175 | "name": "A String", # Name of this web property. |
| 176 | "childLink": { # Child link for this web property. Points to the list of views (profiles) for this web property. |
| 177 | "type": "analytics#profiles", # Type of the parent link. Its value is "analytics#profiles". |
| 178 | "href": "A String", # Link to the list of views (profiles) for this web property. |
| 179 | }, |
| 180 | "selfLink": "A String", # Link for this web property. |
| 181 | "profileCount": 42, # View (Profile) count for this web property. |
| 182 | "level": "A String", # Level for this web property. Possible values are STANDARD or PREMIUM. |
| 183 | "parentLink": { # Parent link for this web property. Points to the account to which this web property belongs. |
| 184 | "href": "A String", # Link to the account for this web property. |
| 185 | "type": "analytics#account", # Type of the parent link. Its value is "analytics#account". |
| 186 | }, |
| 187 | "permissions": { # Permissions the user has for this web property. |
| 188 | "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. |
| 189 | "A String", |
| 190 | ], |
| 191 | }, |
| 192 | "created": "A String", # Time this web property was created. |
| 193 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 194 | }, |
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 | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 202 | "kind": "analytics#accountTicket", # Resource type for account ticket. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 203 | "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. |
| 204 | "id": "A String", # Account ticket ID used to access the account ticket. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 205 | "profile": { # JSON template for an Analytics view (profile). # View (Profile) for the account. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 206 | "parentLink": { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs. |
| 207 | "type": "analytics#webproperty", # Value is "analytics#webproperty". |
| 208 | "href": "A String", # Link to the web property to which this view (profile) belongs. |
| 209 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 210 | "id": "A String", # View (Profile) ID. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 211 | "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. |
| 212 | "timezone": "A String", # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database. |
| 213 | "created": "A String", # Time this view (profile) was created. |
| 214 | "siteSearchCategoryParameters": "A String", # Site search category parameters for this view (profile). |
| 215 | "childLink": { # Child link for this view (profile). Points to the list of goals for this view (profile). |
| 216 | "href": "A String", # Link to the list of goals for this view (profile). |
| 217 | "type": "analytics#goals", # Value is "analytics#goals". |
| 218 | }, |
| 219 | "defaultPage": "A String", # Default page for this view (profile). |
| 220 | "botFilteringEnabled": True or False, # Indicates whether bot filtering is enabled for this view (profile). |
| 221 | "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. |
| 222 | "name": "A String", # Name of this view (profile). |
| 223 | "excludeQueryParameters": "A String", # The query parameters that are excluded from this view (profile). |
| 224 | "stripSiteSearchCategoryParameters": True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports. |
| 225 | "starred": True or False, # Indicates whether this view (profile) is starred or not. |
| 226 | "accountId": "A String", # Account ID to which this view (profile) belongs. |
| 227 | "eCommerceTracking": True or False, # Indicates whether ecommerce tracking is enabled for this view (profile). |
| 228 | "websiteUrl": "A String", # Website URL for this view (profile). |
| 229 | "type": "A String", # View (Profile) type. Supported types: WEB or APP. |
| 230 | "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. |
| 231 | "stripSiteSearchQueryParameters": True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports. |
| 232 | "selfLink": "A String", # Link for this view (profile). |
| 233 | "currency": "A String", # The currency type associated with this view (profile), defaults to USD. The supported values are: |
| 234 | # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 235 | "permissions": { # Permissions the user has for this view (profile). |
| 236 | "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. |
| 237 | "A String", |
| 238 | ], |
| 239 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 240 | "updated": "A String", # Time this view (profile) was last modified. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 241 | "kind": "analytics#profile", # Resource type for Analytics view (profile). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 242 | "siteSearchQueryParameters": "A String", # The site search query parameters for this view (profile). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 243 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 244 | "account": { # JSON template for Analytics account entry. # Account for this ticket. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 245 | "name": "A String", # Account name. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 246 | "kind": "analytics#account", # Resource type for Analytics account. |
| 247 | "starred": True or False, # Indicates whether this account is starred or not. |
| 248 | "created": "A String", # Time the account was created. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 249 | "updated": "A String", # Time the account was last modified. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 250 | "permissions": { # Permissions the user has for this account. |
| 251 | "effective": [ # All the permissions that the user has for this account. These include any implied permissions (e.g., EDIT implies VIEW). |
| 252 | "A String", |
| 253 | ], |
| 254 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 255 | "childLink": { # Child link for an account entry. Points to the list of web properties for this account. |
| 256 | "href": "A String", # Link to the list of web properties for this account. |
| 257 | "type": "analytics#webproperties", # Type of the child link. Its value is "analytics#webproperties". |
| 258 | }, |
| 259 | "id": "A String", # Account ID. |
| 260 | "selfLink": "A String", # Link for this account. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 261 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 262 | "webproperty": { # JSON template for an Analytics web property. # Web property for the account. |
| 263 | "updated": "A String", # Time this web property was last modified. |
| 264 | "dataRetentionTtl": "A String", # The length of time for which user and event data is retained. |
| 265 | # This property cannot be set on insert. |
| 266 | "accountId": "A String", # Account ID to which this web property belongs. |
| 267 | "defaultProfileId": "A String", # Default view (profile) ID. |
| 268 | "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). |
| 269 | # Set to false to delete data associated with the user identifier automatically after the rentention period. |
| 270 | # This property cannot be set on insert. |
| 271 | "industryVertical": "A String", # The industry vertical/category selected for this web property. |
| 272 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 273 | "websiteUrl": "A String", # Website url for this web property. |
| 274 | "starred": True or False, # Indicates whether this web property is starred or not. |
| 275 | "kind": "analytics#webproperty", # Resource type for Analytics WebProperty. |
| 276 | "name": "A String", # Name of this web property. |
| 277 | "childLink": { # Child link for this web property. Points to the list of views (profiles) for this web property. |
| 278 | "type": "analytics#profiles", # Type of the parent link. Its value is "analytics#profiles". |
| 279 | "href": "A String", # Link to the list of views (profiles) for this web property. |
| 280 | }, |
| 281 | "selfLink": "A String", # Link for this web property. |
| 282 | "profileCount": 42, # View (Profile) count for this web property. |
| 283 | "level": "A String", # Level for this web property. Possible values are STANDARD or PREMIUM. |
| 284 | "parentLink": { # Parent link for this web property. Points to the account to which this web property belongs. |
| 285 | "href": "A String", # Link to the account for this web property. |
| 286 | "type": "analytics#account", # Type of the parent link. Its value is "analytics#account". |
| 287 | }, |
| 288 | "permissions": { # Permissions the user has for this web property. |
| 289 | "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. |
| 290 | "A String", |
| 291 | ], |
| 292 | }, |
| 293 | "created": "A String", # Time this web property was created. |
| 294 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 295 | }, |
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. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 308 | "websiteUrl": "A String", |
| 309 | "accountName": "A String", |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 310 | "webpropertyName": "A String", |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 311 | "timezone": "A String", |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 312 | "kind": "analytics#accountTreeRequest", # Resource type for account ticket. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 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). |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 321 | "webproperty": { # JSON template for an Analytics web property. # Web property for the account. |
| 322 | "updated": "A String", # Time this web property was last modified. |
| 323 | "dataRetentionTtl": "A String", # The length of time for which user and event data is retained. |
| 324 | # This property cannot be set on insert. |
| 325 | "accountId": "A String", # Account ID to which this web property belongs. |
| 326 | "defaultProfileId": "A String", # Default view (profile) ID. |
| 327 | "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). |
| 328 | # Set to false to delete data associated with the user identifier automatically after the rentention period. |
| 329 | # This property cannot be set on insert. |
| 330 | "industryVertical": "A String", # The industry vertical/category selected for this web property. |
| 331 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 332 | "websiteUrl": "A String", # Website url for this web property. |
| 333 | "starred": True or False, # Indicates whether this web property is starred or not. |
| 334 | "kind": "analytics#webproperty", # Resource type for Analytics WebProperty. |
| 335 | "name": "A String", # Name of this web property. |
| 336 | "childLink": { # Child link for this web property. Points to the list of views (profiles) for this web property. |
| 337 | "type": "analytics#profiles", # Type of the parent link. Its value is "analytics#profiles". |
| 338 | "href": "A String", # Link to the list of views (profiles) for this web property. |
| 339 | }, |
| 340 | "selfLink": "A String", # Link for this web property. |
| 341 | "profileCount": 42, # View (Profile) count for this web property. |
| 342 | "level": "A String", # Level for this web property. Possible values are STANDARD or PREMIUM. |
| 343 | "parentLink": { # Parent link for this web property. Points to the account to which this web property belongs. |
| 344 | "href": "A String", # Link to the account for this web property. |
| 345 | "type": "analytics#account", # Type of the parent link. Its value is "analytics#account". |
| 346 | }, |
| 347 | "permissions": { # Permissions the user has for this web property. |
| 348 | "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. |
| 349 | "A String", |
| 350 | ], |
| 351 | }, |
| 352 | "created": "A String", # Time this web property was created. |
| 353 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 354 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 355 | "kind": "analytics#accountTreeResponse", # Resource type for account ticket. |
| 356 | "account": { # JSON template for Analytics account entry. # The account created. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 357 | "name": "A String", # Account name. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 358 | "kind": "analytics#account", # Resource type for Analytics account. |
| 359 | "starred": True or False, # Indicates whether this account is starred or not. |
| 360 | "created": "A String", # Time the account was created. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 361 | "updated": "A String", # Time the account was last modified. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 362 | "permissions": { # Permissions the user has for this account. |
| 363 | "effective": [ # All the permissions that the user has for this account. These include any implied permissions (e.g., EDIT implies VIEW). |
| 364 | "A String", |
| 365 | ], |
| 366 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 367 | "childLink": { # Child link for an account entry. Points to the list of web properties for this account. |
| 368 | "href": "A String", # Link to the list of web properties for this account. |
| 369 | "type": "analytics#webproperties", # Type of the child link. Its value is "analytics#webproperties". |
| 370 | }, |
| 371 | "id": "A String", # Account ID. |
| 372 | "selfLink": "A String", # Link for this account. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 373 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 374 | "profile": { # JSON template for an Analytics view (profile). # View (Profile) for the account. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 375 | "parentLink": { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs. |
| 376 | "type": "analytics#webproperty", # Value is "analytics#webproperty". |
| 377 | "href": "A String", # Link to the web property to which this view (profile) belongs. |
| 378 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 379 | "id": "A String", # View (Profile) ID. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 380 | "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. |
| 381 | "timezone": "A String", # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database. |
| 382 | "created": "A String", # Time this view (profile) was created. |
| 383 | "siteSearchCategoryParameters": "A String", # Site search category parameters for this view (profile). |
| 384 | "childLink": { # Child link for this view (profile). Points to the list of goals for this view (profile). |
| 385 | "href": "A String", # Link to the list of goals for this view (profile). |
| 386 | "type": "analytics#goals", # Value is "analytics#goals". |
| 387 | }, |
| 388 | "defaultPage": "A String", # Default page for this view (profile). |
| 389 | "botFilteringEnabled": True or False, # Indicates whether bot filtering is enabled for this view (profile). |
| 390 | "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. |
| 391 | "name": "A String", # Name of this view (profile). |
| 392 | "excludeQueryParameters": "A String", # The query parameters that are excluded from this view (profile). |
| 393 | "stripSiteSearchCategoryParameters": True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports. |
| 394 | "starred": True or False, # Indicates whether this view (profile) is starred or not. |
| 395 | "accountId": "A String", # Account ID to which this view (profile) belongs. |
| 396 | "eCommerceTracking": True or False, # Indicates whether ecommerce tracking is enabled for this view (profile). |
| 397 | "websiteUrl": "A String", # Website URL for this view (profile). |
| 398 | "type": "A String", # View (Profile) type. Supported types: WEB or APP. |
| 399 | "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. |
| 400 | "stripSiteSearchQueryParameters": True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports. |
| 401 | "selfLink": "A String", # Link for this view (profile). |
| 402 | "currency": "A String", # The currency type associated with this view (profile), defaults to USD. The supported values are: |
| 403 | # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 404 | "permissions": { # Permissions the user has for this view (profile). |
| 405 | "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 | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 406 | "A String", |
| 407 | ], |
| 408 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 409 | "updated": "A String", # Time this view (profile) was last modified. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 410 | "kind": "analytics#profile", # Resource type for Analytics view (profile). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 411 | "siteSearchQueryParameters": "A String", # The site search query parameters for this view (profile). |
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> |