Method: customers.customerClientLinks.mutate

สร้างหรืออัปเดตลิงก์ของลูกค้า ระบบจะแสดงผลสถานะการดำเนินการ

รายการข้อผิดพลาดที่เกิดขึ้น: AuthenticationError AuthorizationError DatabaseError FieldError FieldMaskError HeaderError InternalError ManagerLinkError MutateError NewResourceCreationError HeaderError InternalError ManagerLinkError MutateError NewResourceCreationError HeaderError InternalError ManagerLinkError MutateError NewResourceCreationError โควต้า 20} หรือไม่ก็ได้เช่นกันด้วยเช่นกันQuotaErrorRequestError

คำขอ HTTP

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

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

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

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

string

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

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

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

การแสดง JSON
{
  "operation": {
    object (CustomerClientLinkOperation)
  },
  "validateOnly": boolean
}
ช่อง
operation

object (CustomerClientLinkOperation)

ต้องระบุ การดำเนินการที่ดำเนินการกับ CustomerClientLink แต่ละรายการ

validateOnly

boolean

หากเป็นจริง คำขอจะได้รับการตรวจสอบแต่ไม่มีการดำเนินการ ระบบจะแสดงเฉพาะข้อผิดพลาดเท่านั้น ไม่ใช่ผลลัพธ์

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

ข้อความตอบกลับสำหรับการเปลี่ยนแปลง CustomerClientLink

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

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

object (MutateCustomerClientLinkResult)

ผลลัพธ์ที่ระบุทรัพยากรที่ได้รับผลกระทบจากคำขอเปลี่ยนแปลง

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

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

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

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

CustomerClientLinkOperation

การดำเนินการเดียว (สร้าง อัปเดต) บน CustomerClientLink

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

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

string (FieldMask format)

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

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

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

object (CustomerClientLink)

สร้างการดำเนินการ: ไม่มีชื่อทรัพยากรสำหรับลิงก์ใหม่

update

object (CustomerClientLink)

การดำเนินการอัปเดต: ลิงก์ต้องมีชื่อทรัพยากรที่ถูกต้อง

MutateCustomerClientLinkResult

ผลลัพธ์ของการเปลี่ยนลิงก์ไคลเอ็นต์ของลูกค้ารายเดียว

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

string

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