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