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