Method: customers.customerUserAccessInvitations.mutate

สร้างหรือนำคำเชิญให้เข้าถึงออก

รายการข้อผิดพลาดที่ปรากฏ: AccessInvitationError AuthenticationError AuthorizationError HeaderError InternalError QuotaError RequestError

คำขอ HTTP

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

URL ใช้ไวยากรณ์การแปลง gRPC

พารามิเตอร์เส้นทาง

พารามิเตอร์
customerId

string

ต้องระบุ รหัสของลูกค้าที่กำลังมีการแก้ไขคำเชิญการเข้าถึง

เนื้อหาของคำขอ

เนื้อหาของคำขอมีข้อมูลซึ่งมีโครงสร้างต่อไปนี้

การแสดง JSON
{
  "operation": {
    object (CustomerUserAccessInvitationOperation)
  }
}
ช่อง
operation

object (CustomerUserAccessInvitationOperation)

ต้องระบุ การดําเนินการกับคําเชิญการเข้าถึง

เนื้อหาการตอบกลับ

ข้อความตอบกลับสำหรับการเปลี่ยนแปลงคำเชิญสิทธิ์เข้าถึง

หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้

การแสดง JSON
{
  "result": {
    object (MutateCustomerUserAccessInvitationResult)
  }
}
ช่อง
result

object (MutateCustomerUserAccessInvitationResult)

ผลลัพธ์ของการเปลี่ยนแปลง

ขอบเขตการให้สิทธิ์

ต้องใช้ขอบเขต OAuth ต่อไปนี้

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

โปรดดูข้อมูลเพิ่มเติมที่ภาพรวมของ OAuth 2.0

CustomerUserAccessInvitationOperation

การดำเนินการเดียว (สร้างหรือนำออก) กับคำเชิญการเข้าถึงของผู้ใช้ของลูกค้า

การแสดง 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.
}
ช่อง
ฟิลด์สหภาพ operation การดำเนินการเปลี่ยนแปลง operation ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้เท่านั้น
create

object (CustomerUserAccessInvitation)

การดำเนินการสร้าง: คาดว่าชื่อทรัพยากรสำหรับคำเชิญการเข้าถึงใหม่จะไม่มีชื่อทรัพยากร

remove

string

การดำเนินการนำออก: ควรมีชื่อทรัพยากรสำหรับคำเชิญเพิกถอนในรูปแบบต่อไปนี้

customers/{customerId}/customerUserAccessInvitations/{invitationId}

MutateCustomerUserAccessInvitationResult

ผลลัพธ์สำหรับการเปลี่ยนแปลงคำเชิญการเข้าถึง

การแสดง JSON
{
  "resourceName": string
}
ช่อง
resourceName

string

แสดงผลสำหรับการดำเนินการที่ประสบความสำเร็จ