Method: customers.customerUserAccessInvitations.mutate

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

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

Yêu cầu HTTP

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

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

Tham số đường dẫn

Các 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)
  }
}
Các 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)
  }
}
Các 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

Chỉ cần thực hiện một thao tác (tạo hoặc xoá) 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.
}
Các trường
Trường nhóm operation. Thao tác biến đổi operation chỉ có thể là một trong các thao tác sau:
create

object (CustomerUserAccessInvitation)

Thao tác tạo: Không có tên tài nguyên nào cầ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 sẽ có ở định dạng sau:

customers/{customerId}/customerUserAccessInvitations/{invitationId}

MutateCustomerUserAccessInvitationResult

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

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

string

Đã trả lại cho hoạt động thành công.