Google Analytics management API

The management API from Google Analytics — 36 operation(s) for management.

Documentation

📖
Documentation
https://developers.google.com/analytics/devguides/reporting/data/v1
📖
APIReference
https://developers.google.com/analytics/devguides/reporting/data/v1/rest
📖
GettingStarted
https://developers.google.com/analytics/devguides/reporting/data/v1/quickstart
📖
Authentication
https://developers.google.com/analytics/devguides/reporting/data/v1/quickstart-client-libraries
📖
RateLimits
https://developers.google.com/analytics/devguides/reporting/data/v1/quotas
📖
Documentation
https://developers.google.com/analytics/devguides/config/admin/v1
📖
APIReference
https://developers.google.com/analytics/devguides/config/admin/v1/rest
📖
GettingStarted
https://developers.google.com/analytics/devguides/config/admin/v1/quickstart
📖
Documentation
https://developers.google.com/analytics/devguides/collection/protocol/ga4
📖
APIReference
https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference
📖
GettingStarted
https://developers.google.com/analytics/devguides/collection/protocol/ga4/sending-events
📖
Troubleshooting
https://developers.google.com/analytics/devguides/collection/protocol/ga4/troubleshooting
📖
Documentation
https://developers.google.com/analytics/devguides/config/userdeletion/v3
📖
APIReference
https://developers.google.com/analytics/devguides/config/userdeletion/v3/reference
📖
Authentication
https://developers.google.com/analytics/devguides/config/userdeletion/v3/authorization
📖
Documentation
https://developers.google.com/analytics/devguides/reporting/core/v4
📖
GettingStarted
https://developers.google.com/analytics/devguides/migration/api/reporting-ua-to-ga4
📖
Documentation
https://developers.google.com/analytics/devguides/config/mgmt/v3
📖
APIReference
https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference

Specifications

Code Examples

Other Resources

OpenAPI Specification

google-analytics-management-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  contact:
    name: Google
    url: https://google.com
    x-twitter: youtube
  description: 'Manage properties in Google Analytics. Warning: Creating multiple Customer Applications, Accounts, or Projects to simulate or act as a single Customer Application, Account, or Project (respectively) or to circumvent Service-specific usage limits or quotas is a direct violation of Google Cloud Platform Terms of Service as well as Google APIs Terms of Service. These actions can result in immediate termination of your GCP project(s) without any warning.'
  license:
    name: Creative Commons Attribution 3.0
    url: http://creativecommons.org/licenses/by/3.0/
  termsOfService: https://developers.google.com/terms/
  title: Google Analytics Admin accounts management API
  version: v1beta
  x-apisguru-categories:
  - analytics
  - media
  x-logo:
    url: https://upload.wikimedia.org/wikipedia/commons/e/e1/YouTube_play_buttom_icon_%282013-2017%29.svg
  x-origin:
  - format: google
    url: https://analyticsadmin.googleapis.com/$discovery/rest?version=v1beta
    version: v1
  x-preferred: true
  x-providerName: googleapis.com
  x-serviceName: analyticsadmin
servers:
- url: https://analyticsadmin.googleapis.com/
tags:
- name: management
paths:
  /management/accountSummaries:
    parameters:
    - $ref: '#/components/parameters/alt'
    - $ref: '#/components/parameters/fields'
    - $ref: '#/components/parameters/key'
    - $ref: '#/components/parameters/oauth_token'
    - $ref: '#/components/parameters/prettyPrint'
    - $ref: '#/components/parameters/quotaUser'
    - $ref: '#/components/parameters/userIp'
    get:
      description: Lists account summaries (lightweight tree comprised of accounts/properties/profiles) to which the user has access.
      operationId: analytics.management.accountSummaries.list
      parameters:
      - description: The maximum number of account summaries to include in this response, where the largest acceptable value is 1000.
        in: query
        name: max-results
        schema:
          type: integer
        example: 42
      - description: An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
        in: query
        name: start-index
        schema:
          minimum: 1
          type: integer
        example: 42
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountSummaries'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.edit
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.edit
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.readonly
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /management/accounts:
    parameters:
    - $ref: '#/components/parameters/alt'
    - $ref: '#/components/parameters/fields'
    - $ref: '#/components/parameters/key'
    - $ref: '#/components/parameters/oauth_token'
    - $ref: '#/components/parameters/prettyPrint'
    - $ref: '#/components/parameters/quotaUser'
    - $ref: '#/components/parameters/userIp'
    get:
      description: Lists all accounts to which the user has access.
      operationId: analytics.management.accounts.list
      parameters:
      - description: The maximum number of accounts to include in this response.
        in: query
        name: max-results
        schema:
          type: integer
        example: 42
      - description: An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
        in: query
        name: start-index
        schema:
          minimum: 1
          type: integer
        example: 42
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Accounts'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics
        Oauth2c:
        - https://www.googleapis.com/auth/analytics
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.edit
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.edit
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.readonly
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /management/accounts/{accountId}/entityUserLinks:
    parameters:
    - $ref: '#/components/parameters/alt'
    - $ref: '#/components/parameters/fields'
    - $ref: '#/components/parameters/key'
    - $ref: '#/components/parameters/oauth_token'
    - $ref: '#/components/parameters/prettyPrint'
    - $ref: '#/components/parameters/quotaUser'
    - $ref: '#/components/parameters/userIp'
    get:
      description: Lists account-user links for a given account.
      operationId: analytics.management.accountUserLinks.list
      parameters:
      - description: Account ID to retrieve the user links for.
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      - description: The maximum number of account-user links to include in this response.
        in: query
        name: max-results
        schema:
          type: integer
        example: 42
      - description: An index of the first account-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
        in: query
        name: start-index
        schema:
          minimum: 1
          type: integer
        example: 42
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityUserLinks'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.manage.users
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.manage.users
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.manage.users.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.manage.users.readonly
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      description: Adds a new user to the given account.
      operationId: analytics.management.accountUserLinks.insert
      parameters:
      - description: Account ID to create the user link for.
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EntityUserLink'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityUserLink'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.manage.users
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.manage.users
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /management/accounts/{accountId}/entityUserLinks/{linkId}:
    parameters:
    - $ref: '#/components/parameters/alt'
    - $ref: '#/components/parameters/fields'
    - $ref: '#/components/parameters/key'
    - $ref: '#/components/parameters/oauth_token'
    - $ref: '#/components/parameters/prettyPrint'
    - $ref: '#/components/parameters/quotaUser'
    - $ref: '#/components/parameters/userIp'
    delete:
      description: Removes a user from the given account.
      operationId: analytics.management.accountUserLinks.delete
      parameters:
      - description: Account ID to delete the user link for.
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      - description: Link ID to delete the user link for.
        in: path
        name: linkId
        required: true
        schema:
          type: string
        example: '123456'
      responses:
        '200':
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.manage.users
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.manage.users
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    put:
      description: Updates permissions for an existing user on the given account.
      operationId: analytics.management.accountUserLinks.update
      parameters:
      - description: Account ID to update the account-user link for.
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      - description: Link ID to update the account-user link for.
        in: path
        name: linkId
        required: true
        schema:
          type: string
        example: '123456'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EntityUserLink'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityUserLink'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.manage.users
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.manage.users
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /management/accounts/{accountId}/filters:
    parameters:
    - $ref: '#/components/parameters/alt'
    - $ref: '#/components/parameters/fields'
    - $ref: '#/components/parameters/key'
    - $ref: '#/components/parameters/oauth_token'
    - $ref: '#/components/parameters/prettyPrint'
    - $ref: '#/components/parameters/quotaUser'
    - $ref: '#/components/parameters/userIp'
    get:
      description: Lists all filters for an account
      operationId: analytics.management.filters.list
      parameters:
      - description: Account ID to retrieve filters for.
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      - description: The maximum number of filters to include in this response.
        in: query
        name: max-results
        schema:
          type: integer
        example: 42
      - description: An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
        in: query
        name: start-index
        schema:
          minimum: 1
          type: integer
        example: 42
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Filters'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.edit
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.edit
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.readonly
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      description: Create a new filter.
      operationId: analytics.management.filters.insert
      parameters:
      - description: Account ID to create filter for.
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Filter'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Filter'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.edit
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.edit
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /management/accounts/{accountId}/filters/{filterId}:
    parameters:
    - $ref: '#/components/parameters/alt'
    - $ref: '#/components/parameters/fields'
    - $ref: '#/components/parameters/key'
    - $ref: '#/components/parameters/oauth_token'
    - $ref: '#/components/parameters/prettyPrint'
    - $ref: '#/components/parameters/quotaUser'
    - $ref: '#/components/parameters/userIp'
    delete:
      description: Delete a filter.
      operationId: analytics.management.filters.delete
      parameters:
      - description: Account ID to delete the filter for.
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      - description: ID of the filter to be deleted.
        in: path
        name: filterId
        required: true
        schema:
          type: string
        example: '123456'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Filter'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.edit
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.edit
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    get:
      description: Returns filters to which the user has access.
      operationId: analytics.management.filters.get
      parameters:
      - description: Account ID to retrieve filters for.
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      - description: Filter ID to retrieve filters for.
        in: path
        name: filterId
        required: true
        schema:
          type: string
        example: '123456'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Filter'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.edit
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.edit
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.readonly
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    patch:
      description: Updates an existing filter. This method supports patch semantics.
      operationId: analytics.management.filters.patch
      parameters:
      - description: Account ID to which the filter belongs.
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      - description: ID of the filter to be updated.
        in: path
        name: filterId
        required: true
        schema:
          type: string
        example: '123456'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Filter'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Filter'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.edit
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.edit
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    put:
      description: Updates an existing filter.
      operationId: analytics.management.filters.update
      parameters:
      - description: Account ID to which the filter belongs.
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      - description: ID of the filter to be updated.
        in: path
        name: filterId
        required: true
        schema:
          type: string
        example: '123456'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Filter'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Filter'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.edit
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.edit
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /management/accounts/{accountId}/webproperties:
    parameters:
    - $ref: '#/components/parameters/alt'
    - $ref: '#/components/parameters/fields'
    - $ref: '#/components/parameters/key'
    - $ref: '#/components/parameters/oauth_token'
    - $ref: '#/components/parameters/prettyPrint'
    - $ref: '#/components/parameters/quotaUser'
    - $ref: '#/components/parameters/userIp'
    get:
      description: Lists web properties to which the user has access.
      operationId: analytics.management.webproperties.list
      parameters:
      - description: 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.
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      - description: The maximum number of web properties to include in this response.
        in: query
        name: max-results
        schema:
          type: integer
        example: 42
      - description: An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
        in: query
        name: start-index
        schema:
          minimum: 1
          type: integer
        example: 42
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Webproperties'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics
        Oauth2c:
        - https://www.googleapis.com/auth/analytics
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.edit
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.edit
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.readonly
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      description: 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.
      operationId: analytics.management.webproperties.insert
      parameters:
      - description: Account ID to create the web property for.
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Webproperty'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Webproperty'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.edit
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.edit
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /management/accounts/{accountId}/webproperties/{webPropertyId}:
    parameters:
    - $ref: '#/components/parameters/alt'
    - $ref: '#/components/parameters/fields'
    - $ref: '#/components/parameters/key'
    - $ref: '#/components/parameters/oauth_token'
    - $ref: '#/components/parameters/prettyPrint'
    - $ref: '#/components/parameters/quotaUser'
    - $ref: '#/components/parameters/userIp'
    get:
      description: Gets a web property to which the user has access.
      operationId: analytics.management.webproperties.get
      parameters:
      - description: Account ID to retrieve the web property for.
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      - description: ID to retrieve the web property for.
        in: path
        name: webPropertyId
        required: true
        schema:
          type: string
        example: '123456'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Webproperty'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.edit
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.edit
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.readonly
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    patch:
      description: Updates an existing web property. This method supports patch semantics.
      operationId: analytics.management.webproperties.patch
      parameters:
      - description: Account ID to which the web property belongs
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      - description: Web property ID
        in: path
        name: webPropertyId
        required: true
        schema:
          type: string
        example: '123456'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Webproperty'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Webproperty'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.edit
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.edit
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    put:
      description: Updates an existing web property.
      operationId: analytics.management.webproperties.update
      parameters:
      - description: Account ID to which the web property belongs
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      - description: Web property ID
        in: path
        name: webPropertyId
        required: true
        schema:
          type: string
        example: '123456'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Webproperty'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Webproperty'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.edit
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.edit
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources:
    parameters:
    - $ref: '#/components/parameters/alt'
    - $ref: '#/components/parameters/fields'
    - $ref: '#/components/parameters/key'
    - $ref: '#/components/parameters/oauth_token'
    - $ref: '#/components/parameters/prettyPrint'
    - $ref: '#/components/parameters/quotaUser'
    - $ref: '#/components/parameters/userIp'
    get:
      description: List custom data sources to which the user has access.
      operationId: analytics.management.customDataSources.list
      parameters:
      - description: Account Id for the custom data sources to retrieve.
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      - description: Web property Id for the custom data sources to retrieve.
        in: path
        name: webPropertyId
        required: true
        schema:
          type: string
        example: '123456'
      - description: The maximum number of custom data sources to include in this response.
        in: query
        name: max-results
        schema:
          minimum: 1
          type: integer
        example: 42
      - description: A 1-based index of the first custom data source to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
        in: query
        name: start-index
        schema:
          minimum: 1
          type: integer
        example: 42
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomDataSources'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics
        Oauth2c:
        - https://www.googleapis.com/auth/analytics
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.edit
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.edit
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.readonly
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData:
    parameters:
    - $ref: '#/components/parameters/alt'
    - $ref: '#/components/parameters/fields'
    - $ref: '#/components/parameters/key'
    - $ref: '#/components/parameters/oauth_token'
    - $ref: '#/components/parameters/prettyPrint'
    - $ref: '#/components/parameters/quotaUser'
    - $ref: '#/components/parameters/userIp'
    post:
      description: Delete data associated with a previous upload.
      operationId: analytics.management.uploads.deleteUploadData
      parameters:
      - description: Account Id for the uploads to be deleted.
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      - description: Web property Id for the uploads to be deleted.
        in: path
        name: webPropertyId
        required: true
        schema:
          type: string
        example: '123456'
      - description: Custom data source Id for the uploads to be deleted.
        in: path
        name: customDataSourceId
        required: true
        schema:
          type: string
        example: '123456'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AnalyticsDataimportDeleteUploadDataRequest'
      responses:
        '200':
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics
        Oauth2c:
        - https://www.googleapis.com/auth/analytics
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.edit
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.edit
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads:
    parameters:
    - $ref: '#/components/parameters/alt'
    - $ref: '#/components/parameters/fields'
    - $ref: '#/components/parameters/key'
    - $ref: '#/components/parameters/oauth_token'
    - $ref: '#/components/parameters/prettyPrint'
    - $ref: '#/components/parameters/quotaUser'
    - $ref: '#/components/parameters/userIp'
    get:
      description: List uploads to which the user has access.
      operationId: analytics.management.uploads.list
      parameters:
      - description: Account Id for the uploads to retrieve.
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      - description: Web property Id for the uploads to retrieve.
        in: path
        name: webPropertyId
        required: true
        schema:
          type: string
        example: '123456'
      - description: Custom data source Id for uploads to retrieve.
        in: path
        name: customDataSourceId
        required: true
        schema:
          type: string
        example: '123456'
      - description: The maximum number of uploads to include in this response.
        in: query
        name: max-results
        schema:
          minimum: 1
          type: integer
        example: 42
      - description: A 1-based index of the first upload to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
        in: query
        name: start-index
        schema:
          minimum: 1
          type: integer
        example: 42
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Uploads'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics
        Oauth2c:
        - https://www.googleapis.com/auth/analytics
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.edit
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.edit
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.readonly
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.readonly
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      description: Upload data for a custom data source.
      operationId: analytics.management.uploads.uploadData
      parameters:
      - description: Account Id associated with the upload.
        in: path
        name: accountId
        required: true
        schema:
          type: string
        example: '123456'
      - description: Web property UA-string associated with the upload.
        in: path
        name: webPropertyId
        required: true
        schema:
          type: string
        example: '123456'
      - description: Custom data source Id to which the data being uploaded belongs.
        in: path
        name: customDataSourceId
        required: true
        schema:
          type: string
        example: '123456'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Upload'
          description: Successful response
      security:
      - Oauth2:
        - https://www.googleapis.com/auth/analytics
        Oauth2c:
        - https://www.googleapis.com/auth/analytics
      - Oauth2:
        - https://www.googleapis.com/auth/analytics.edit
        Oauth2c:
        - https://www.googleapis.com/auth/analytics.edit
      tags:
      - management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}:
    parameters:
    - $ref: '#/components/parameters/alt'
    - $ref: '#/components/parameters/fields'
    - $ref: '#/components/parameters/key'
    - $ref: '#/components/parameters/oauth_token'
    - $ref: '#/components/parameters/prettyPr

# --- truncated at 32 KB (225 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/openapi/google-analytics-management-api-openapi.yml