Method: accounts.clients.users.update
Stay organized with collections
Save and categorize content based on your preferences.
Updates an existing client user. Only the user status can be changed on update.
HTTP request
PUT https://adexchangebuyer.googleapis.com/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
accountId |
string (int64 format)
Numerical account ID of the client's sponsor buyer. (required)
|
clientAccountId |
string (int64 format)
Numerical account ID of the client buyer that the user to be retrieved is associated with. (required)
|
userId |
string (int64 format)
Numerical identifier of the user to retrieve. (required)
|
Request body
The request body contains an instance of ClientUser
.
Response body
If successful, the response body contains an instance of ClientUser
.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/adexchange.buyer
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThis operation updates the status of an existing client user within a specified client account and sponsor buyer account.\u003c/p\u003e\n"],["\u003cp\u003eOnly the user status can be modified during the update, using a PUT request to the provided endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires providing the numerical IDs for the sponsor buyer account, client buyer account, and the user being updated in the URL path.\u003c/p\u003e\n"],["\u003cp\u003eTo authorize, include the 'https://www.googleapis.com/auth/adexchange.buyer' scope.\u003c/p\u003e\n"],["\u003cp\u003eBoth the request and response bodies utilize the ClientUser object for data exchange.\u003c/p\u003e\n"]]],["This document outlines the process to update a client user's status via a `PUT` HTTP request to a specified URL. The URL requires three path parameters: `accountId`, `clientAccountId`, and `userId`, all numerical identifiers. The request body must include a `ClientUser` instance, and a successful response will also return a `ClientUser` instance. Authorization requires the `https://www.googleapis.com/auth/adexchange.buyer` OAuth scope. gRPC Transcoding syntax is used.\n"],null,["# Method: accounts.clients.users.update\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUpdates an existing client user. Only the user status can be changed on update.\n\n### HTTP request\n\n`PUT https://adexchangebuyer.googleapis.com/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `accountId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Numerical account ID of the client's sponsor buyer. (required) |\n| `clientAccountId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Numerical account ID of the client buyer that the user to be retrieved is associated with. (required) |\n| `userId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Numerical identifier of the user to retrieve. (required) |\n\n### Request body\n\nThe request body contains an instance of [ClientUser](/authorized-buyers/apis/reference/rest/v2beta1/accounts.clients.users#ClientUser).\n\n### Response body\n\nIf successful, the response body contains an instance of [ClientUser](/authorized-buyers/apis/reference/rest/v2beta1/accounts.clients.users#ClientUser).\n\n### Authorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/adexchange.buyer`"]]