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