Method: customers.customerUserAccesses.mutate

อัปเดต นำสิทธิ์ของผู้ใช้ของลูกค้ารายหนึ่งๆ ออก ระบบจะแสดงผลสถานะการดำเนินการ

รายการข้อผิดพลาดที่พบ: AuthenticationError AuthorizationError CustomerUserAccessError FieldMaskError HeaderError InternalError MutateError QuotaError RequestError ได้

คำขอ HTTP

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

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

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

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

string

ต้องระบุ รหัสของลูกค้าที่กำลังแก้ไข

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

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

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

object (CustomerUserAccessOperation)

ต้องระบุ การดำเนินการที่จะทำกับลูกค้า

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

ข้อความตอบกลับสำหรับการเปลี่ยนแปลงการเข้าถึงของผู้ใช้ของลูกค้า

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

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

object (MutateCustomerUserAccessResult)

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

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

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

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

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

CustomerUserAccessOperation

การดำเนินการเพียงครั้งเดียว (อัปเดต นำออก) กับการเข้าถึงของผู้ใช้ของลูกค้า

การแสดง JSON
{
  "updateMask": string,

  // Union field operation can be only one of the following:
  "update": {
    object (CustomerUserAccess)
  },
  "remove": string
  // End of list of possible types for union field operation.
}
ช่อง
updateMask

string (FieldMask format)

FieldMask ที่กำหนดว่าจะมีการแก้ไขฟิลด์ทรัพยากรใดในการอัปเดต

ซึ่งเป็นรายการชื่อฟิลด์ที่คั่นด้วยคอมมา ตัวอย่าง: "user.displayName,photo"

ฟิลด์การรวม operation การดำเนินการเปลี่ยนแปลง operation ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้เท่านั้น
update

object (CustomerUserAccess)

การดำเนินการอัปเดต: ต้องให้การเข้าถึงของผู้ใช้ของลูกค้ามีชื่อทรัพยากรที่ถูกต้อง

remove

string

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

customers/{customerId}/customerUserAccesses/{CustomerUserAccess.user_id}

MutateCustomerUserAccessResult

ผลลัพธ์สำหรับการเข้าถึงของผู้ใช้ของลูกค้าจะเปลี่ยนแปลง

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

string

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