Method: customers.merchantCenterLinks.mutate

อัปเดตสถานะหรือนำลิงก์ Merchant Center ออก

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

คำขอ HTTP

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

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

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

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

string

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

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

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

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

object (MerchantCenterLinkOperation)

ต้องระบุ การดําเนินการที่จะดำเนินการในลิงก์

validateOnly

boolean

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

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

ข้อความตอบกลับสำหรับการเปลี่ยนลิงก์ Merchant Center

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

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

object (MutateMerchantCenterLinkResult)

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

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

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

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

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

MerchantCenterLinkOperation

การอัปเดตรายการเดียวเกี่ยวกับลิงก์ Merchant Center

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

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

string (FieldMask format)

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

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

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

object (MerchantCenterLink)

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

remove

string

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

customers/{customerId}/merchantCenterLinks/{merchantCenterId}

MutateMerchantCenterLinkResult

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

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

string

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