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