Method: customers.customerClientLinks.mutate

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

AuthenticationErrorAuthorizationErrorDatabaseErrorFieldMaskErrorHeaderErrorInternalErrorManagerLinkErrorMutateErrorNewResourceCreationErrorQuotaErrorRequestError

คำขอ HTTP

POST https://googleads.googleapis.com/v16/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

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