1<html><body> 2<style> 3 4body, 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 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, 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.profiles.html">profiles</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#close">close()</a></code></p> 79<p class="firstline">Close httplib2 connections.</p> 80<p class="toc_element"> 81 <code><a href="#delete">delete(accountId, webPropertyId, profileId)</a></code></p> 82<p class="firstline">Deletes a view (profile).</p> 83<p class="toc_element"> 84 <code><a href="#get">get(accountId, webPropertyId, profileId)</a></code></p> 85<p class="firstline">Gets a view (profile) to which the user has access.</p> 86<p class="toc_element"> 87 <code><a href="#insert">insert(accountId, webPropertyId, body=None)</a></code></p> 88<p class="firstline">Create a new view (profile).</p> 89<p class="toc_element"> 90 <code><a href="#list">list(accountId, webPropertyId, max_results=None, start_index=None)</a></code></p> 91<p class="firstline">Lists views (profiles) to which the user has access.</p> 92<p class="toc_element"> 93 <code><a href="#patch">patch(accountId, webPropertyId, profileId, body=None)</a></code></p> 94<p class="firstline">Updates an existing view (profile). This method supports patch semantics.</p> 95<p class="toc_element"> 96 <code><a href="#update">update(accountId, webPropertyId, profileId, body=None)</a></code></p> 97<p class="firstline">Updates an existing view (profile).</p> 98<h3>Method Details</h3> 99<div class="method"> 100 <code class="details" id="close">close()</code> 101 <pre>Close httplib2 connections.</pre> 102</div> 103 104<div class="method"> 105 <code class="details" id="delete">delete(accountId, webPropertyId, profileId)</code> 106 <pre>Deletes a view (profile). 107 108Args: 109 accountId: string, Account ID to delete the view (profile) for. (required) 110 webPropertyId: string, Web property ID to delete the view (profile) for. (required) 111 profileId: string, ID of the view (profile) to be deleted. (required) 112</pre> 113</div> 114 115<div class="method"> 116 <code class="details" id="get">get(accountId, webPropertyId, profileId)</code> 117 <pre>Gets a view (profile) to which the user has access. 118 119Args: 120 accountId: string, Account ID to retrieve the view (profile) for. (required) 121 webPropertyId: string, Web property ID to retrieve the view (profile) for. (required) 122 profileId: string, View (Profile) ID to retrieve the view (profile) for. (required) 123 124Returns: 125 An object of the form: 126 127 { # JSON template for an Analytics view (profile). 128 "accountId": "A String", # Account ID to which this view (profile) belongs. 129 "botFilteringEnabled": True or False, # Indicates whether bot filtering is enabled for this view (profile). 130 "childLink": { # Child link for this view (profile). Points to the list of goals for this view (profile). 131 "href": "A String", # Link to the list of goals for this view (profile). 132 "type": "analytics#goals", # Value is "analytics#goals". 133 }, 134 "created": "A String", # Time this view (profile) was created. 135 "currency": "A String", # The currency type associated with this view (profile), defaults to USD. The supported values are: 136 # 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 137 "defaultPage": "A String", # Default page for this view (profile). 138 "eCommerceTracking": True or False, # Indicates whether ecommerce tracking is enabled for this view (profile). 139 "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. 140 "excludeQueryParameters": "A String", # The query parameters that are excluded from this view (profile). 141 "id": "A String", # View (Profile) ID. 142 "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. 143 "kind": "analytics#profile", # Resource type for Analytics view (profile). 144 "name": "A String", # Name of this view (profile). 145 "parentLink": { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs. 146 "href": "A String", # Link to the web property to which this view (profile) belongs. 147 "type": "analytics#webproperty", # Value is "analytics#webproperty". 148 }, 149 "permissions": { # Permissions the user has for this view (profile). 150 "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. 151 "A String", 152 ], 153 }, 154 "selfLink": "A String", # Link for this view (profile). 155 "siteSearchCategoryParameters": "A String", # Site search category parameters for this view (profile). 156 "siteSearchQueryParameters": "A String", # The site search query parameters for this view (profile). 157 "starred": True or False, # Indicates whether this view (profile) is starred or not. 158 "stripSiteSearchCategoryParameters": True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports. 159 "stripSiteSearchQueryParameters": True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports. 160 "timezone": "A String", # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database. 161 "type": "A String", # View (Profile) type. Supported types: WEB or APP. 162 "updated": "A String", # Time this view (profile) was last modified. 163 "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. 164 "websiteUrl": "A String", # Website URL for this view (profile). 165}</pre> 166</div> 167 168<div class="method"> 169 <code class="details" id="insert">insert(accountId, webPropertyId, body=None)</code> 170 <pre>Create a new view (profile). 171 172Args: 173 accountId: string, Account ID to create the view (profile) for. (required) 174 webPropertyId: string, Web property ID to create the view (profile) for. (required) 175 body: object, The request body. 176 The object takes the form of: 177 178{ # JSON template for an Analytics view (profile). 179 "accountId": "A String", # Account ID to which this view (profile) belongs. 180 "botFilteringEnabled": True or False, # Indicates whether bot filtering is enabled for this view (profile). 181 "childLink": { # Child link for this view (profile). Points to the list of goals for this view (profile). 182 "href": "A String", # Link to the list of goals for this view (profile). 183 "type": "analytics#goals", # Value is "analytics#goals". 184 }, 185 "created": "A String", # Time this view (profile) was created. 186 "currency": "A String", # The currency type associated with this view (profile), defaults to USD. The supported values are: 187 # 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 188 "defaultPage": "A String", # Default page for this view (profile). 189 "eCommerceTracking": True or False, # Indicates whether ecommerce tracking is enabled for this view (profile). 190 "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. 191 "excludeQueryParameters": "A String", # The query parameters that are excluded from this view (profile). 192 "id": "A String", # View (Profile) ID. 193 "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. 194 "kind": "analytics#profile", # Resource type for Analytics view (profile). 195 "name": "A String", # Name of this view (profile). 196 "parentLink": { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs. 197 "href": "A String", # Link to the web property to which this view (profile) belongs. 198 "type": "analytics#webproperty", # Value is "analytics#webproperty". 199 }, 200 "permissions": { # Permissions the user has for this view (profile). 201 "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. 202 "A String", 203 ], 204 }, 205 "selfLink": "A String", # Link for this view (profile). 206 "siteSearchCategoryParameters": "A String", # Site search category parameters for this view (profile). 207 "siteSearchQueryParameters": "A String", # The site search query parameters for this view (profile). 208 "starred": True or False, # Indicates whether this view (profile) is starred or not. 209 "stripSiteSearchCategoryParameters": True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports. 210 "stripSiteSearchQueryParameters": True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports. 211 "timezone": "A String", # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database. 212 "type": "A String", # View (Profile) type. Supported types: WEB or APP. 213 "updated": "A String", # Time this view (profile) was last modified. 214 "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. 215 "websiteUrl": "A String", # Website URL for this view (profile). 216} 217 218 219Returns: 220 An object of the form: 221 222 { # JSON template for an Analytics view (profile). 223 "accountId": "A String", # Account ID to which this view (profile) belongs. 224 "botFilteringEnabled": True or False, # Indicates whether bot filtering is enabled for this view (profile). 225 "childLink": { # Child link for this view (profile). Points to the list of goals for this view (profile). 226 "href": "A String", # Link to the list of goals for this view (profile). 227 "type": "analytics#goals", # Value is "analytics#goals". 228 }, 229 "created": "A String", # Time this view (profile) was created. 230 "currency": "A String", # The currency type associated with this view (profile), defaults to USD. The supported values are: 231 # 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 232 "defaultPage": "A String", # Default page for this view (profile). 233 "eCommerceTracking": True or False, # Indicates whether ecommerce tracking is enabled for this view (profile). 234 "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. 235 "excludeQueryParameters": "A String", # The query parameters that are excluded from this view (profile). 236 "id": "A String", # View (Profile) ID. 237 "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. 238 "kind": "analytics#profile", # Resource type for Analytics view (profile). 239 "name": "A String", # Name of this view (profile). 240 "parentLink": { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs. 241 "href": "A String", # Link to the web property to which this view (profile) belongs. 242 "type": "analytics#webproperty", # Value is "analytics#webproperty". 243 }, 244 "permissions": { # Permissions the user has for this view (profile). 245 "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. 246 "A String", 247 ], 248 }, 249 "selfLink": "A String", # Link for this view (profile). 250 "siteSearchCategoryParameters": "A String", # Site search category parameters for this view (profile). 251 "siteSearchQueryParameters": "A String", # The site search query parameters for this view (profile). 252 "starred": True or False, # Indicates whether this view (profile) is starred or not. 253 "stripSiteSearchCategoryParameters": True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports. 254 "stripSiteSearchQueryParameters": True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports. 255 "timezone": "A String", # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database. 256 "type": "A String", # View (Profile) type. Supported types: WEB or APP. 257 "updated": "A String", # Time this view (profile) was last modified. 258 "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. 259 "websiteUrl": "A String", # Website URL for this view (profile). 260}</pre> 261</div> 262 263<div class="method"> 264 <code class="details" id="list">list(accountId, webPropertyId, max_results=None, start_index=None)</code> 265 <pre>Lists views (profiles) to which the user has access. 266 267Args: 268 accountId: string, Account ID for the view (profiles) to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access. (required) 269 webPropertyId: string, Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access. (required) 270 max_results: integer, The maximum number of views (profiles) to include in this response. 271 start_index: integer, An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. 272 273Returns: 274 An object of the form: 275 276 { # A view (profile) collection lists Analytics views (profiles) to which the user has access. Each resource in the collection corresponds to a single Analytics view (profile). 277 "items": [ # A list of views (profiles). 278 { # JSON template for an Analytics view (profile). 279 "accountId": "A String", # Account ID to which this view (profile) belongs. 280 "botFilteringEnabled": True or False, # Indicates whether bot filtering is enabled for this view (profile). 281 "childLink": { # Child link for this view (profile). Points to the list of goals for this view (profile). 282 "href": "A String", # Link to the list of goals for this view (profile). 283 "type": "analytics#goals", # Value is "analytics#goals". 284 }, 285 "created": "A String", # Time this view (profile) was created. 286 "currency": "A String", # The currency type associated with this view (profile), defaults to USD. The supported values are: 287 # 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 288 "defaultPage": "A String", # Default page for this view (profile). 289 "eCommerceTracking": True or False, # Indicates whether ecommerce tracking is enabled for this view (profile). 290 "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. 291 "excludeQueryParameters": "A String", # The query parameters that are excluded from this view (profile). 292 "id": "A String", # View (Profile) ID. 293 "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. 294 "kind": "analytics#profile", # Resource type for Analytics view (profile). 295 "name": "A String", # Name of this view (profile). 296 "parentLink": { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs. 297 "href": "A String", # Link to the web property to which this view (profile) belongs. 298 "type": "analytics#webproperty", # Value is "analytics#webproperty". 299 }, 300 "permissions": { # Permissions the user has for this view (profile). 301 "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. 302 "A String", 303 ], 304 }, 305 "selfLink": "A String", # Link for this view (profile). 306 "siteSearchCategoryParameters": "A String", # Site search category parameters for this view (profile). 307 "siteSearchQueryParameters": "A String", # The site search query parameters for this view (profile). 308 "starred": True or False, # Indicates whether this view (profile) is starred or not. 309 "stripSiteSearchCategoryParameters": True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports. 310 "stripSiteSearchQueryParameters": True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports. 311 "timezone": "A String", # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database. 312 "type": "A String", # View (Profile) type. Supported types: WEB or APP. 313 "updated": "A String", # Time this view (profile) was last modified. 314 "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. 315 "websiteUrl": "A String", # Website URL for this view (profile). 316 }, 317 ], 318 "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. 319 "kind": "analytics#profiles", # Collection type. 320 "nextLink": "A String", # Link to next page for this view (profile) collection. 321 "previousLink": "A String", # Link to previous page for this view (profile) collection. 322 "startIndex": 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter. 323 "totalResults": 42, # The total number of results for the query, regardless of the number of results in the response. 324 "username": "A String", # Email ID of the authenticated user 325}</pre> 326</div> 327 328<div class="method"> 329 <code class="details" id="patch">patch(accountId, webPropertyId, profileId, body=None)</code> 330 <pre>Updates an existing view (profile). This method supports patch semantics. 331 332Args: 333 accountId: string, Account ID to which the view (profile) belongs (required) 334 webPropertyId: string, Web property ID to which the view (profile) belongs (required) 335 profileId: string, ID of the view (profile) to be updated. (required) 336 body: object, The request body. 337 The object takes the form of: 338 339{ # JSON template for an Analytics view (profile). 340 "accountId": "A String", # Account ID to which this view (profile) belongs. 341 "botFilteringEnabled": True or False, # Indicates whether bot filtering is enabled for this view (profile). 342 "childLink": { # Child link for this view (profile). Points to the list of goals for this view (profile). 343 "href": "A String", # Link to the list of goals for this view (profile). 344 "type": "analytics#goals", # Value is "analytics#goals". 345 }, 346 "created": "A String", # Time this view (profile) was created. 347 "currency": "A String", # The currency type associated with this view (profile), defaults to USD. The supported values are: 348 # 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 349 "defaultPage": "A String", # Default page for this view (profile). 350 "eCommerceTracking": True or False, # Indicates whether ecommerce tracking is enabled for this view (profile). 351 "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. 352 "excludeQueryParameters": "A String", # The query parameters that are excluded from this view (profile). 353 "id": "A String", # View (Profile) ID. 354 "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. 355 "kind": "analytics#profile", # Resource type for Analytics view (profile). 356 "name": "A String", # Name of this view (profile). 357 "parentLink": { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs. 358 "href": "A String", # Link to the web property to which this view (profile) belongs. 359 "type": "analytics#webproperty", # Value is "analytics#webproperty". 360 }, 361 "permissions": { # Permissions the user has for this view (profile). 362 "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. 363 "A String", 364 ], 365 }, 366 "selfLink": "A String", # Link for this view (profile). 367 "siteSearchCategoryParameters": "A String", # Site search category parameters for this view (profile). 368 "siteSearchQueryParameters": "A String", # The site search query parameters for this view (profile). 369 "starred": True or False, # Indicates whether this view (profile) is starred or not. 370 "stripSiteSearchCategoryParameters": True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports. 371 "stripSiteSearchQueryParameters": True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports. 372 "timezone": "A String", # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database. 373 "type": "A String", # View (Profile) type. Supported types: WEB or APP. 374 "updated": "A String", # Time this view (profile) was last modified. 375 "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. 376 "websiteUrl": "A String", # Website URL for this view (profile). 377} 378 379 380Returns: 381 An object of the form: 382 383 { # JSON template for an Analytics view (profile). 384 "accountId": "A String", # Account ID to which this view (profile) belongs. 385 "botFilteringEnabled": True or False, # Indicates whether bot filtering is enabled for this view (profile). 386 "childLink": { # Child link for this view (profile). Points to the list of goals for this view (profile). 387 "href": "A String", # Link to the list of goals for this view (profile). 388 "type": "analytics#goals", # Value is "analytics#goals". 389 }, 390 "created": "A String", # Time this view (profile) was created. 391 "currency": "A String", # The currency type associated with this view (profile), defaults to USD. The supported values are: 392 # 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 393 "defaultPage": "A String", # Default page for this view (profile). 394 "eCommerceTracking": True or False, # Indicates whether ecommerce tracking is enabled for this view (profile). 395 "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. 396 "excludeQueryParameters": "A String", # The query parameters that are excluded from this view (profile). 397 "id": "A String", # View (Profile) ID. 398 "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. 399 "kind": "analytics#profile", # Resource type for Analytics view (profile). 400 "name": "A String", # Name of this view (profile). 401 "parentLink": { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs. 402 "href": "A String", # Link to the web property to which this view (profile) belongs. 403 "type": "analytics#webproperty", # Value is "analytics#webproperty". 404 }, 405 "permissions": { # Permissions the user has for this view (profile). 406 "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. 407 "A String", 408 ], 409 }, 410 "selfLink": "A String", # Link for this view (profile). 411 "siteSearchCategoryParameters": "A String", # Site search category parameters for this view (profile). 412 "siteSearchQueryParameters": "A String", # The site search query parameters for this view (profile). 413 "starred": True or False, # Indicates whether this view (profile) is starred or not. 414 "stripSiteSearchCategoryParameters": True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports. 415 "stripSiteSearchQueryParameters": True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports. 416 "timezone": "A String", # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database. 417 "type": "A String", # View (Profile) type. Supported types: WEB or APP. 418 "updated": "A String", # Time this view (profile) was last modified. 419 "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. 420 "websiteUrl": "A String", # Website URL for this view (profile). 421}</pre> 422</div> 423 424<div class="method"> 425 <code class="details" id="update">update(accountId, webPropertyId, profileId, body=None)</code> 426 <pre>Updates an existing view (profile). 427 428Args: 429 accountId: string, Account ID to which the view (profile) belongs (required) 430 webPropertyId: string, Web property ID to which the view (profile) belongs (required) 431 profileId: string, ID of the view (profile) to be updated. (required) 432 body: object, The request body. 433 The object takes the form of: 434 435{ # JSON template for an Analytics view (profile). 436 "accountId": "A String", # Account ID to which this view (profile) belongs. 437 "botFilteringEnabled": True or False, # Indicates whether bot filtering is enabled for this view (profile). 438 "childLink": { # Child link for this view (profile). Points to the list of goals for this view (profile). 439 "href": "A String", # Link to the list of goals for this view (profile). 440 "type": "analytics#goals", # Value is "analytics#goals". 441 }, 442 "created": "A String", # Time this view (profile) was created. 443 "currency": "A String", # The currency type associated with this view (profile), defaults to USD. The supported values are: 444 # 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 445 "defaultPage": "A String", # Default page for this view (profile). 446 "eCommerceTracking": True or False, # Indicates whether ecommerce tracking is enabled for this view (profile). 447 "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. 448 "excludeQueryParameters": "A String", # The query parameters that are excluded from this view (profile). 449 "id": "A String", # View (Profile) ID. 450 "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. 451 "kind": "analytics#profile", # Resource type for Analytics view (profile). 452 "name": "A String", # Name of this view (profile). 453 "parentLink": { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs. 454 "href": "A String", # Link to the web property to which this view (profile) belongs. 455 "type": "analytics#webproperty", # Value is "analytics#webproperty". 456 }, 457 "permissions": { # Permissions the user has for this view (profile). 458 "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. 459 "A String", 460 ], 461 }, 462 "selfLink": "A String", # Link for this view (profile). 463 "siteSearchCategoryParameters": "A String", # Site search category parameters for this view (profile). 464 "siteSearchQueryParameters": "A String", # The site search query parameters for this view (profile). 465 "starred": True or False, # Indicates whether this view (profile) is starred or not. 466 "stripSiteSearchCategoryParameters": True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports. 467 "stripSiteSearchQueryParameters": True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports. 468 "timezone": "A String", # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database. 469 "type": "A String", # View (Profile) type. Supported types: WEB or APP. 470 "updated": "A String", # Time this view (profile) was last modified. 471 "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. 472 "websiteUrl": "A String", # Website URL for this view (profile). 473} 474 475 476Returns: 477 An object of the form: 478 479 { # JSON template for an Analytics view (profile). 480 "accountId": "A String", # Account ID to which this view (profile) belongs. 481 "botFilteringEnabled": True or False, # Indicates whether bot filtering is enabled for this view (profile). 482 "childLink": { # Child link for this view (profile). Points to the list of goals for this view (profile). 483 "href": "A String", # Link to the list of goals for this view (profile). 484 "type": "analytics#goals", # Value is "analytics#goals". 485 }, 486 "created": "A String", # Time this view (profile) was created. 487 "currency": "A String", # The currency type associated with this view (profile), defaults to USD. The supported values are: 488 # 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 489 "defaultPage": "A String", # Default page for this view (profile). 490 "eCommerceTracking": True or False, # Indicates whether ecommerce tracking is enabled for this view (profile). 491 "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. 492 "excludeQueryParameters": "A String", # The query parameters that are excluded from this view (profile). 493 "id": "A String", # View (Profile) ID. 494 "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. 495 "kind": "analytics#profile", # Resource type for Analytics view (profile). 496 "name": "A String", # Name of this view (profile). 497 "parentLink": { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs. 498 "href": "A String", # Link to the web property to which this view (profile) belongs. 499 "type": "analytics#webproperty", # Value is "analytics#webproperty". 500 }, 501 "permissions": { # Permissions the user has for this view (profile). 502 "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. 503 "A String", 504 ], 505 }, 506 "selfLink": "A String", # Link for this view (profile). 507 "siteSearchCategoryParameters": "A String", # Site search category parameters for this view (profile). 508 "siteSearchQueryParameters": "A String", # The site search query parameters for this view (profile). 509 "starred": True or False, # Indicates whether this view (profile) is starred or not. 510 "stripSiteSearchCategoryParameters": True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports. 511 "stripSiteSearchQueryParameters": True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports. 512 "timezone": "A String", # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database. 513 "type": "A String", # View (Profile) type. Supported types: WEB or APP. 514 "updated": "A String", # Time this view (profile) was last modified. 515 "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. 516 "websiteUrl": "A String", # Website URL for this view (profile). 517}</pre> 518</div> 519 520</body></html>