Google Campaign Manager User Roles API

The UserRoles API from Google Campaign Manager — 2 operation(s) for userroles.

Operations 6

GET /dfareporting/v5/userprofiles/{userprofilesId}/userRoles/{userRolesId} Get userRoles #
DELETE /dfareporting/v5/userprofiles/{userprofilesId}/userRoles/{userRolesId} Delete userRoles #
POST /dfareporting/v5/userprofiles/{userprofilesId}/userRoles Insert userRoles #
PUT /dfareporting/v5/userprofiles/{userprofilesId}/userRoles Update userRoles #
GET /dfareporting/v5/userprofiles/{userprofilesId}/userRoles List userRoles #
PATCH /dfareporting/v5/userprofiles/{userprofilesId}/userRoles Patch userRoles #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-campaign-manager:google-campaign-manager-userroles-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-campaign-manager-userroles-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Campaign Manager 360 User Roles API
  version: v5
  description: Generated from Google's published Discovery document for Campaign Manager 360 API (dfareporting v5, revision 20261107). 6 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://dfareporting.googleapis.com
tags:
- name: UserRoles
paths:
  /dfareporting/v5/userprofiles/{userprofilesId}/userRoles/{userRolesId}:
    get:
      operationId: dfareporting.userRoles.get
      summary: Get userRoles
      description: Gets one user role by ID.
      parameters:
      - name: userprofilesId
        in: path
        required: true
        description: Resource name segment (userprofilesId).
        schema:
          type: string
      - name: userRolesId
        in: path
        required: true
        description: Resource name segment (userRolesId).
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserRole'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/dfatrafficking
      - apiKey: []
      tags:
      - UserRoles
    delete:
      operationId: dfareporting.userRoles.delete
      summary: Delete userRoles
      description: Deletes an existing user role.
      parameters:
      - name: userprofilesId
        in: path
        required: true
        description: Resource name segment (userprofilesId).
        schema:
          type: string
      - name: userRolesId
        in: path
        required: true
        description: Resource name segment (userRolesId).
        schema:
          type: string
      responses:
        '200':
          description: Successful response
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/dfatrafficking
      - apiKey: []
      tags:
      - UserRoles
  /dfareporting/v5/userprofiles/{userprofilesId}/userRoles:
    post:
      operationId: dfareporting.userRoles.insert
      summary: Insert userRoles
      description: Inserts a new user role.
      parameters:
      - name: userprofilesId
        in: path
        required: true
        description: Resource name segment (userprofilesId).
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserRole'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserRole'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/dfatrafficking
      - apiKey: []
      tags:
      - UserRoles
    put:
      operationId: dfareporting.userRoles.update
      summary: Update userRoles
      description: Updates an existing user role.
      parameters:
      - name: userprofilesId
        in: path
        required: true
        description: Resource name segment (userprofilesId).
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserRole'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserRole'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/dfatrafficking
      - apiKey: []
      tags:
      - UserRoles
    get:
      operationId: dfareporting.userRoles.list
      summary: List userRoles
      description: Retrieves a list of user roles, possibly filtered. This method supports paging.
      parameters:
      - name: userprofilesId
        in: path
        required: true
        description: Resource name segment (userprofilesId).
        schema:
          type: string
      - name: accountUserRoleOnly
        in: query
        required: false
        description: Select only account level user roles not associated with any specific subaccount.
        schema:
          type: boolean
      - name: ids
        in: query
        required: false
        description: Select only user roles with the specified IDs.
        schema:
          type: array
          items:
            type: string
            format: int64
      - name: maxResults
        in: query
        required: false
        description: Maximum number of results to return.
        schema:
          format: int32
          type: integer
          default: '1000'
      - name: pageToken
        in: query
        required: false
        description: Value of the nextPageToken from the previous result page.
        schema:
          type: string
      - name: searchString
        in: query
        required: false
        description: Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "userrole*2015" will return objects with names like "userrole June 2015", "userrole April 2015", or simply "userrole 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "userrole" will match objects with name "my userrole", "userrole 2015", or simply "userrole".
        schema:
          type: string
      - name: sortField
        in: query
        required: false
        description: Field by which to sort the list.
        schema:
          type: string
          default: ID
          enum:
          - ID
          - NAME
      - name: sortOrder
        in: query
        required: false
        description: Order of sorted results.
        schema:
          enum:
          - ASCENDING
          - DESCENDING
          type: string
          default: ASCENDING
      - name: subaccountId
        in: query
        required: false
        description: Select only user roles that belong to this subaccount.
        schema:
          format: int64
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserRolesListResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/dfatrafficking
      - apiKey: []
      tags:
      - UserRoles
    patch:
      operationId: dfareporting.userRoles.patch
      summary: Patch userRoles
      description: Updates an existing user role. This method supports patch semantics.
      parameters:
      - name: userprofilesId
        in: path
        required: true
        description: Resource name segment (userprofilesId).
        schema:
          type: string
      - name: id
        in: query
        required: true
        description: Required. UserRole ID.
        schema:
          format: int64
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserRole'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserRole'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/dfatrafficking
      - apiKey: []
      tags:
      - UserRoles
components:
  schemas:
    UserRole:
      type: object
      properties:
        defaultUserRole:
          description: Whether this is a default user role. Default user roles are created by the system for the account/subaccount and cannot be modified or deleted. Each default user role comes with a basic set of preassigned permissions.
          type: boolean
        kind:
          description: 'Identifies what kind of resource this is. Value: the fixed string "dfareporting#userRole".'
          type: string
        permissions:
          description: List of permissions associated with this user role.
          items:
            $ref: '#/components/schemas/UserRolePermission'
          type: array
        subaccountId:
          format: int64
          description: Subaccount ID of this user role. This is a read-only field that can be left blank.
          type: string
        accountId:
          format: int64
          type: string
          description: Account ID of this user role. This is a read-only field that can be left blank.
        name:
          type: string
          description: Name of this user role. This is a required field. Must be less than 256 characters long. If this user role is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this user role is a top-level user role, and the name must be unique among top-level user roles of the same account.
        id:
          format: int64
          description: ID of this user role. This is a read-only, auto-generated field.
          type: string
        parentUserRoleId:
          format: int64
          type: string
          description: ID of the user role that this user role is based on or copied from. This is a required field.
      description: Contains properties of auser role, which is used to manage user access.
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    UserRolesListResponse:
      description: User Role List Response
      properties:
        kind:
          description: 'Identifies what kind of resource this is. Value: the fixed string "dfareporting#userRolesListResponse".'
          type: string
        userRoles:
          type: array
          items:
            $ref: '#/components/schemas/UserRole'
          description: User role collection.
        nextPageToken:
          description: Pagination token to be used for the next list operation.
          type: string
      type: object
    UserRolePermission:
      description: Contains properties of a user role permission.
      properties:
        id:
          format: int64
          description: ID of this user role permission.
          type: string
        kind:
          description: 'Identifies what kind of resource this is. Value: the fixed string "dfareporting#userRolePermission".'
          type: string
        permissionGroupId:
          description: ID of the permission group that this user role permission belongs to.
          format: int64
          type: string
        name:
          description: Name of this user role permission.
          type: string
        availability:
          description: Levels of availability for a user role permission.
          type: string
          enum:
          - NOT_AVAILABLE_BY_DEFAULT
          - ACCOUNT_BY_DEFAULT
          - SUBACCOUNT_AND_ACCOUNT_BY_DEFAULT
          - ACCOUNT_ALWAYS
          - SUBACCOUNT_AND_ACCOUNT_ALWAYS
          - USER_PROFILE_ONLY
      type: object
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/ddmconversions: Manage DoubleClick Digital Marketing conversions
            https://www.googleapis.com/auth/dfatrafficking: View and manage your DoubleClick Campaign Manager's (DCM) display ad campaigns
            https://www.googleapis.com/auth/dfareporting: View and manage DoubleClick for Advertisers reports
externalDocs:
  url: https://developers.google.com/doubleclick-advertisers/
x-provenance:
  method: harvested
  publisher: Google
  source: https://dfareporting.googleapis.com/$discovery/rest?version=v5
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261107)