Method: customers.customerUserAccessInvitations.mutate

Tạo hoặc xoá lời mời truy cập.

Danh sách các lỗi đã gửi: AccessInvitationError AuthenticationError AuthorizationError HeaderError InternalError QuotaError RequestError

Yêu cầu HTTP

POST https://googleads.googleapis.com/v16/customers/{customerId}/customerUserAccessInvitations:mutate

URL sử dụng cú pháp Chuyển mã gRPC.

Tham số đường dẫn

Tham số
customerId

string

Bắt buộc. Mã của khách hàng có lời mời truy cập đang được sửa đổi.

Nội dung yêu cầu

Nội dung yêu cầu chứa dữ liệu có cấu trúc sau:

Biểu diễn dưới dạng JSON
{
  "operation": {
    object (CustomerUserAccessInvitationOperation)
  }
}
Trường
operation

object (CustomerUserAccessInvitationOperation)

Bắt buộc. Thao tác cần thực hiện đối với lời mời truy cập

Nội dung phản hồi

Thay đổi thông báo phản hồi cho lời mời truy cập.

Nếu thành công, phần nội dung phản hồi sẽ chứa dữ liệu có cấu trúc sau:

Biểu diễn dưới dạng JSON
{
  "result": {
    object (MutateCustomerUserAccessInvitationResult)
  }
}
Trường
result

object (MutateCustomerUserAccessInvitationResult)

Kết quả cho trường hợp biến đổi.

Phạm vi uỷ quyền

Yêu cầu phạm vi OAuth sau:

  • https://www.googleapis.com/auth/adwords

Để biết thêm thông tin, hãy xem Tổng quan về OAuth 2.0.

CustomerUserAccessInvitationOperation

Một thao tác (tạo hoặc xoá) đối với lời mời truy cập của người dùng của khách hàng.

Biểu diễn dưới dạng JSON
{

  // Union field operation can be only one of the following:
  "create": {
    object (CustomerUserAccessInvitation)
  },
  "remove": string
  // End of list of possible types for union field operation.
}
Trường
Trường hợp operation. Toán tử thay đổi operation chỉ có thể là một trong các thao tác sau:
create

object (CustomerUserAccessInvitation)

Tạo thao tác: Không có tên tài nguyên nào dự kiến cho lời mời truy cập mới.

remove

string

Thao tác xoá: Tên tài nguyên cho lời mời thu hồi dự kiến phải có ở định dạng sau:

customers/{customerId}/customerUserAccessInvitations/{invitationId}

MutateCustomerUserAccessInvitationResult

Kết quả thay đổi lời mời truy cập.

Biểu diễn dưới dạng JSON
{
  "resourceName": string
}
Trường
resourceName

string

Được trả về cho các phép toán thành công.