John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [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.management.html">management</a> . <a href="analytics_v3.management.webproperties.html">webproperties</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#get">get(accountId, webPropertyId)</a></code></p> |
| 79 | <p class="firstline">Gets a web property to which the user has access.</p> |
| 80 | <p class="toc_element"> |
| 81 | <code><a href="#insert">insert(accountId, body)</a></code></p> |
| 82 | <p class="firstline">Create a new property if the account has fewer than 20 properties. Web properties are visible in the Google Analytics interface only if they have at least one profile.</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#list">list(accountId, max_results=None, start_index=None)</a></code></p> |
| 85 | <p class="firstline">Lists web properties to which the user has access.</p> |
| 86 | <p class="toc_element"> |
| 87 | <code><a href="#patch">patch(accountId, webPropertyId, body)</a></code></p> |
| 88 | <p class="firstline">Updates an existing web property. This method supports patch semantics.</p> |
| 89 | <p class="toc_element"> |
| 90 | <code><a href="#update">update(accountId, webPropertyId, body)</a></code></p> |
| 91 | <p class="firstline">Updates an existing web property.</p> |
| 92 | <h3>Method Details</h3> |
| 93 | <div class="method"> |
| 94 | <code class="details" id="get">get(accountId, webPropertyId)</code> |
| 95 | <pre>Gets a web property to which the user has access. |
| 96 | |
| 97 | Args: |
| 98 | accountId: string, Account ID to retrieve the web property for. (required) |
| 99 | webPropertyId: string, ID to retrieve the web property for. (required) |
| 100 | |
| 101 | Returns: |
| 102 | An object of the form: |
| 103 | |
| 104 | { # JSON template for an Analytics web property. |
| 105 | "websiteUrl": "A String", # Website url for this web property. |
| 106 | "kind": "analytics#webproperty", # Resource type for Analytics WebProperty. |
| 107 | "name": "A String", # Name of this web property. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame^] | 108 | "dataRetentionTtl": "A String", # The length of time for which user and event data is retained. |
| 109 | # This property cannot be set on insert. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 110 | "created": "A String", # Time this web property was created. |
| 111 | "defaultProfileId": "A String", # Default view (profile) ID. |
| 112 | "level": "A String", # Level for this web property. Possible values are STANDARD or PREMIUM. |
| 113 | "updated": "A String", # Time this web property was last modified. |
| 114 | "profileCount": 42, # View (Profile) count for this web property. |
| 115 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 116 | "childLink": { # Child link for this web property. Points to the list of views (profiles) for this web property. |
| 117 | "href": "A String", # Link to the list of views (profiles) for this web property. |
| 118 | "type": "analytics#profiles", # Type of the parent link. Its value is "analytics#profiles". |
| 119 | }, |
| 120 | "industryVertical": "A String", # The industry vertical/category selected for this web property. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame^] | 121 | "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). |
| 122 | # Set to false to delete data associated with the user identifier automatically after the rentention period. |
| 123 | # This property cannot be set on insert. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 124 | "starred": True or False, # Indicates whether this web property is starred or not. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 125 | "parentLink": { # Parent link for this web property. Points to the account to which this web property belongs. |
| 126 | "href": "A String", # Link to the account for this web property. |
| 127 | "type": "analytics#account", # Type of the parent link. Its value is "analytics#account". |
| 128 | }, |
| 129 | "permissions": { # Permissions the user has for this web property. |
| 130 | "effective": [ # All the permissions that the user has for this web property. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent account. |
| 131 | "A String", |
| 132 | ], |
| 133 | }, |
| 134 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 135 | "selfLink": "A String", # Link for this web property. |
| 136 | "accountId": "A String", # Account ID to which this web property belongs. |
| 137 | }</pre> |
| 138 | </div> |
| 139 | |
| 140 | <div class="method"> |
| 141 | <code class="details" id="insert">insert(accountId, body)</code> |
| 142 | <pre>Create a new property if the account has fewer than 20 properties. Web properties are visible in the Google Analytics interface only if they have at least one profile. |
| 143 | |
| 144 | Args: |
| 145 | accountId: string, Account ID to create the web property for. (required) |
| 146 | body: object, The request body. (required) |
| 147 | The object takes the form of: |
| 148 | |
| 149 | { # JSON template for an Analytics web property. |
| 150 | "websiteUrl": "A String", # Website url for this web property. |
| 151 | "kind": "analytics#webproperty", # Resource type for Analytics WebProperty. |
| 152 | "name": "A String", # Name of this web property. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame^] | 153 | "dataRetentionTtl": "A String", # The length of time for which user and event data is retained. |
| 154 | # This property cannot be set on insert. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 155 | "created": "A String", # Time this web property was created. |
| 156 | "defaultProfileId": "A String", # Default view (profile) ID. |
| 157 | "level": "A String", # Level for this web property. Possible values are STANDARD or PREMIUM. |
| 158 | "updated": "A String", # Time this web property was last modified. |
| 159 | "profileCount": 42, # View (Profile) count for this web property. |
| 160 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 161 | "childLink": { # Child link for this web property. Points to the list of views (profiles) for this web property. |
| 162 | "href": "A String", # Link to the list of views (profiles) for this web property. |
| 163 | "type": "analytics#profiles", # Type of the parent link. Its value is "analytics#profiles". |
| 164 | }, |
| 165 | "industryVertical": "A String", # The industry vertical/category selected for this web property. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame^] | 166 | "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). |
| 167 | # Set to false to delete data associated with the user identifier automatically after the rentention period. |
| 168 | # This property cannot be set on insert. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 169 | "starred": True or False, # Indicates whether this web property is starred or not. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 170 | "parentLink": { # Parent link for this web property. Points to the account to which this web property belongs. |
| 171 | "href": "A String", # Link to the account for this web property. |
| 172 | "type": "analytics#account", # Type of the parent link. Its value is "analytics#account". |
| 173 | }, |
| 174 | "permissions": { # Permissions the user has for this web property. |
| 175 | "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. |
| 176 | "A String", |
| 177 | ], |
| 178 | }, |
| 179 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 180 | "selfLink": "A String", # Link for this web property. |
| 181 | "accountId": "A String", # Account ID to which this web property belongs. |
| 182 | } |
| 183 | |
| 184 | |
| 185 | Returns: |
| 186 | An object of the form: |
| 187 | |
| 188 | { # JSON template for an Analytics web property. |
| 189 | "websiteUrl": "A String", # Website url for this web property. |
| 190 | "kind": "analytics#webproperty", # Resource type for Analytics WebProperty. |
| 191 | "name": "A String", # Name of this web property. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame^] | 192 | "dataRetentionTtl": "A String", # The length of time for which user and event data is retained. |
| 193 | # This property cannot be set on insert. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 194 | "created": "A String", # Time this web property was created. |
| 195 | "defaultProfileId": "A String", # Default view (profile) ID. |
| 196 | "level": "A String", # Level for this web property. Possible values are STANDARD or PREMIUM. |
| 197 | "updated": "A String", # Time this web property was last modified. |
| 198 | "profileCount": 42, # View (Profile) count for this web property. |
| 199 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 200 | "childLink": { # Child link for this web property. Points to the list of views (profiles) for this web property. |
| 201 | "href": "A String", # Link to the list of views (profiles) for this web property. |
| 202 | "type": "analytics#profiles", # Type of the parent link. Its value is "analytics#profiles". |
| 203 | }, |
| 204 | "industryVertical": "A String", # The industry vertical/category selected for this web property. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame^] | 205 | "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). |
| 206 | # Set to false to delete data associated with the user identifier automatically after the rentention period. |
| 207 | # This property cannot be set on insert. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 208 | "starred": True or False, # Indicates whether this web property is starred or not. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 209 | "parentLink": { # Parent link for this web property. Points to the account to which this web property belongs. |
| 210 | "href": "A String", # Link to the account for this web property. |
| 211 | "type": "analytics#account", # Type of the parent link. Its value is "analytics#account". |
| 212 | }, |
| 213 | "permissions": { # Permissions the user has for this web property. |
| 214 | "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. |
| 215 | "A String", |
| 216 | ], |
| 217 | }, |
| 218 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 219 | "selfLink": "A String", # Link for this web property. |
| 220 | "accountId": "A String", # Account ID to which this web property belongs. |
| 221 | }</pre> |
| 222 | </div> |
| 223 | |
| 224 | <div class="method"> |
| 225 | <code class="details" id="list">list(accountId, max_results=None, start_index=None)</code> |
| 226 | <pre>Lists web properties to which the user has access. |
| 227 | |
| 228 | Args: |
| 229 | accountId: string, Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to. (required) |
| 230 | max_results: integer, The maximum number of web properties to include in this response. |
| 231 | start_index: integer, An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. |
| 232 | |
| 233 | Returns: |
| 234 | An object of the form: |
| 235 | |
| 236 | { # A web property collection lists Analytics web properties to which the user has access. Each resource in the collection corresponds to a single Analytics web property. |
| 237 | "username": "A String", # Email ID of the authenticated user |
| 238 | "kind": "analytics#webproperties", # Collection type. |
| 239 | "items": [ # A list of web properties. |
| 240 | { # JSON template for an Analytics web property. |
| 241 | "websiteUrl": "A String", # Website url for this web property. |
| 242 | "kind": "analytics#webproperty", # Resource type for Analytics WebProperty. |
| 243 | "name": "A String", # Name of this web property. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame^] | 244 | "dataRetentionTtl": "A String", # The length of time for which user and event data is retained. |
| 245 | # This property cannot be set on insert. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 246 | "created": "A String", # Time this web property was created. |
| 247 | "defaultProfileId": "A String", # Default view (profile) ID. |
| 248 | "level": "A String", # Level for this web property. Possible values are STANDARD or PREMIUM. |
| 249 | "updated": "A String", # Time this web property was last modified. |
| 250 | "profileCount": 42, # View (Profile) count for this web property. |
| 251 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 252 | "childLink": { # Child link for this web property. Points to the list of views (profiles) for this web property. |
| 253 | "href": "A String", # Link to the list of views (profiles) for this web property. |
| 254 | "type": "analytics#profiles", # Type of the parent link. Its value is "analytics#profiles". |
| 255 | }, |
| 256 | "industryVertical": "A String", # The industry vertical/category selected for this web property. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame^] | 257 | "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). |
| 258 | # Set to false to delete data associated with the user identifier automatically after the rentention period. |
| 259 | # This property cannot be set on insert. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 260 | "starred": True or False, # Indicates whether this web property is starred or not. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 261 | "parentLink": { # Parent link for this web property. Points to the account to which this web property belongs. |
| 262 | "href": "A String", # Link to the account for this web property. |
| 263 | "type": "analytics#account", # Type of the parent link. Its value is "analytics#account". |
| 264 | }, |
| 265 | "permissions": { # Permissions the user has for this web property. |
| 266 | "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. |
| 267 | "A String", |
| 268 | ], |
| 269 | }, |
| 270 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 271 | "selfLink": "A String", # Link for this web property. |
| 272 | "accountId": "A String", # Account ID to which this web property belongs. |
| 273 | }, |
| 274 | ], |
| 275 | "itemsPerPage": 42, # The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. |
| 276 | "previousLink": "A String", # Link to previous page for this web property collection. |
| 277 | "startIndex": 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter. |
| 278 | "nextLink": "A String", # Link to next page for this web property collection. |
| 279 | "totalResults": 42, # The total number of results for the query, regardless of the number of results in the response. |
| 280 | }</pre> |
| 281 | </div> |
| 282 | |
| 283 | <div class="method"> |
| 284 | <code class="details" id="patch">patch(accountId, webPropertyId, body)</code> |
| 285 | <pre>Updates an existing web property. This method supports patch semantics. |
| 286 | |
| 287 | Args: |
| 288 | accountId: string, Account ID to which the web property belongs (required) |
| 289 | webPropertyId: string, Web property ID (required) |
| 290 | body: object, The request body. (required) |
| 291 | The object takes the form of: |
| 292 | |
| 293 | { # JSON template for an Analytics web property. |
| 294 | "websiteUrl": "A String", # Website url for this web property. |
| 295 | "kind": "analytics#webproperty", # Resource type for Analytics WebProperty. |
| 296 | "name": "A String", # Name of this web property. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame^] | 297 | "dataRetentionTtl": "A String", # The length of time for which user and event data is retained. |
| 298 | # This property cannot be set on insert. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 299 | "created": "A String", # Time this web property was created. |
| 300 | "defaultProfileId": "A String", # Default view (profile) ID. |
| 301 | "level": "A String", # Level for this web property. Possible values are STANDARD or PREMIUM. |
| 302 | "updated": "A String", # Time this web property was last modified. |
| 303 | "profileCount": 42, # View (Profile) count for this web property. |
| 304 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 305 | "childLink": { # Child link for this web property. Points to the list of views (profiles) for this web property. |
| 306 | "href": "A String", # Link to the list of views (profiles) for this web property. |
| 307 | "type": "analytics#profiles", # Type of the parent link. Its value is "analytics#profiles". |
| 308 | }, |
| 309 | "industryVertical": "A String", # The industry vertical/category selected for this web property. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame^] | 310 | "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). |
| 311 | # Set to false to delete data associated with the user identifier automatically after the rentention period. |
| 312 | # This property cannot be set on insert. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 313 | "starred": True or False, # Indicates whether this web property is starred or not. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 314 | "parentLink": { # Parent link for this web property. Points to the account to which this web property belongs. |
| 315 | "href": "A String", # Link to the account for this web property. |
| 316 | "type": "analytics#account", # Type of the parent link. Its value is "analytics#account". |
| 317 | }, |
| 318 | "permissions": { # Permissions the user has for this web property. |
| 319 | "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. |
| 320 | "A String", |
| 321 | ], |
| 322 | }, |
| 323 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 324 | "selfLink": "A String", # Link for this web property. |
| 325 | "accountId": "A String", # Account ID to which this web property belongs. |
| 326 | } |
| 327 | |
| 328 | |
| 329 | Returns: |
| 330 | An object of the form: |
| 331 | |
| 332 | { # JSON template for an Analytics web property. |
| 333 | "websiteUrl": "A String", # Website url for this web property. |
| 334 | "kind": "analytics#webproperty", # Resource type for Analytics WebProperty. |
| 335 | "name": "A String", # Name of this web property. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame^] | 336 | "dataRetentionTtl": "A String", # The length of time for which user and event data is retained. |
| 337 | # This property cannot be set on insert. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 338 | "created": "A String", # Time this web property was created. |
| 339 | "defaultProfileId": "A String", # Default view (profile) ID. |
| 340 | "level": "A String", # Level for this web property. Possible values are STANDARD or PREMIUM. |
| 341 | "updated": "A String", # Time this web property was last modified. |
| 342 | "profileCount": 42, # View (Profile) count for this web property. |
| 343 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 344 | "childLink": { # Child link for this web property. Points to the list of views (profiles) for this web property. |
| 345 | "href": "A String", # Link to the list of views (profiles) for this web property. |
| 346 | "type": "analytics#profiles", # Type of the parent link. Its value is "analytics#profiles". |
| 347 | }, |
| 348 | "industryVertical": "A String", # The industry vertical/category selected for this web property. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame^] | 349 | "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). |
| 350 | # Set to false to delete data associated with the user identifier automatically after the rentention period. |
| 351 | # This property cannot be set on insert. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 352 | "starred": True or False, # Indicates whether this web property is starred or not. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 353 | "parentLink": { # Parent link for this web property. Points to the account to which this web property belongs. |
| 354 | "href": "A String", # Link to the account for this web property. |
| 355 | "type": "analytics#account", # Type of the parent link. Its value is "analytics#account". |
| 356 | }, |
| 357 | "permissions": { # Permissions the user has for this web property. |
| 358 | "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. |
| 359 | "A String", |
| 360 | ], |
| 361 | }, |
| 362 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 363 | "selfLink": "A String", # Link for this web property. |
| 364 | "accountId": "A String", # Account ID to which this web property belongs. |
| 365 | }</pre> |
| 366 | </div> |
| 367 | |
| 368 | <div class="method"> |
| 369 | <code class="details" id="update">update(accountId, webPropertyId, body)</code> |
| 370 | <pre>Updates an existing web property. |
| 371 | |
| 372 | Args: |
| 373 | accountId: string, Account ID to which the web property belongs (required) |
| 374 | webPropertyId: string, Web property ID (required) |
| 375 | body: object, The request body. (required) |
| 376 | The object takes the form of: |
| 377 | |
| 378 | { # JSON template for an Analytics web property. |
| 379 | "websiteUrl": "A String", # Website url for this web property. |
| 380 | "kind": "analytics#webproperty", # Resource type for Analytics WebProperty. |
| 381 | "name": "A String", # Name of this web property. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame^] | 382 | "dataRetentionTtl": "A String", # The length of time for which user and event data is retained. |
| 383 | # This property cannot be set on insert. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 384 | "created": "A String", # Time this web property was created. |
| 385 | "defaultProfileId": "A String", # Default view (profile) ID. |
| 386 | "level": "A String", # Level for this web property. Possible values are STANDARD or PREMIUM. |
| 387 | "updated": "A String", # Time this web property was last modified. |
| 388 | "profileCount": 42, # View (Profile) count for this web property. |
| 389 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 390 | "childLink": { # Child link for this web property. Points to the list of views (profiles) for this web property. |
| 391 | "href": "A String", # Link to the list of views (profiles) for this web property. |
| 392 | "type": "analytics#profiles", # Type of the parent link. Its value is "analytics#profiles". |
| 393 | }, |
| 394 | "industryVertical": "A String", # The industry vertical/category selected for this web property. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame^] | 395 | "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). |
| 396 | # Set to false to delete data associated with the user identifier automatically after the rentention period. |
| 397 | # This property cannot be set on insert. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 398 | "starred": True or False, # Indicates whether this web property is starred or not. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 399 | "parentLink": { # Parent link for this web property. Points to the account to which this web property belongs. |
| 400 | "href": "A String", # Link to the account for this web property. |
| 401 | "type": "analytics#account", # Type of the parent link. Its value is "analytics#account". |
| 402 | }, |
| 403 | "permissions": { # Permissions the user has for this web property. |
| 404 | "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. |
| 405 | "A String", |
| 406 | ], |
| 407 | }, |
| 408 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 409 | "selfLink": "A String", # Link for this web property. |
| 410 | "accountId": "A String", # Account ID to which this web property belongs. |
| 411 | } |
| 412 | |
| 413 | |
| 414 | Returns: |
| 415 | An object of the form: |
| 416 | |
| 417 | { # JSON template for an Analytics web property. |
| 418 | "websiteUrl": "A String", # Website url for this web property. |
| 419 | "kind": "analytics#webproperty", # Resource type for Analytics WebProperty. |
| 420 | "name": "A String", # Name of this web property. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame^] | 421 | "dataRetentionTtl": "A String", # The length of time for which user and event data is retained. |
| 422 | # This property cannot be set on insert. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 423 | "created": "A String", # Time this web property was created. |
| 424 | "defaultProfileId": "A String", # Default view (profile) ID. |
| 425 | "level": "A String", # Level for this web property. Possible values are STANDARD or PREMIUM. |
| 426 | "updated": "A String", # Time this web property was last modified. |
| 427 | "profileCount": 42, # View (Profile) count for this web property. |
| 428 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 429 | "childLink": { # Child link for this web property. Points to the list of views (profiles) for this web property. |
| 430 | "href": "A String", # Link to the list of views (profiles) for this web property. |
| 431 | "type": "analytics#profiles", # Type of the parent link. Its value is "analytics#profiles". |
| 432 | }, |
| 433 | "industryVertical": "A String", # The industry vertical/category selected for this web property. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame^] | 434 | "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). |
| 435 | # Set to false to delete data associated with the user identifier automatically after the rentention period. |
| 436 | # This property cannot be set on insert. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 437 | "starred": True or False, # Indicates whether this web property is starred or not. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 438 | "parentLink": { # Parent link for this web property. Points to the account to which this web property belongs. |
| 439 | "href": "A String", # Link to the account for this web property. |
| 440 | "type": "analytics#account", # Type of the parent link. Its value is "analytics#account". |
| 441 | }, |
| 442 | "permissions": { # Permissions the user has for this web property. |
| 443 | "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. |
| 444 | "A String", |
| 445 | ], |
| 446 | }, |
| 447 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 448 | "selfLink": "A String", # Link for this web property. |
| 449 | "accountId": "A String", # Account ID to which this web property belongs. |
| 450 | }</pre> |
| 451 | </div> |
| 452 | |
| 453 | </body></html> |