Method: customers.billingSetups.mutate

建立帳單設定或取消現有帳單設定。

擲回錯誤清單:AuthenticationError AuthorizationError BillingSetupError DateError FieldError HeaderError InternalError MutateError QuotaError RequestError

HTTP 要求

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

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
customerId

string

必要欄位。要套用帳單設定變更作業的客戶 ID。

要求主體

要求主體的資料會採用以下結構:

JSON 表示法
{
  "operation": {
    object (BillingSetupOperation)
  }
}
欄位
operation

object (BillingSetupOperation)

必要欄位。要執行的作業。

回應主體

帳單設定作業的回應訊息。

如果成功,回應主體即會包含具有以下結構的資料:

JSON 表示法
{
  "result": {
    object (MutateBillingSetupResult)
  }
}
欄位
result

object (MutateBillingSetupResult)

指出受 change 請求影響的資源的結果。

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱 OAuth 2.0 總覽

BillingSetupOperation

一項帳單設定作業,其中說明如何取消現有的帳單設定。

JSON 表示法
{

  // Union field operation can be only one of the following:
  "create": {
    object (BillingSetup)
  },
  "remove": string
  // End of list of possible types for union field operation.
}
欄位
聯集欄位 operation。只能設定以下其中一個作業。不支援「更新」作業。operation 只能是下列其中一項:
create

object (BillingSetup)

建立帳單設定。新的帳單設定不可包含任何資源名稱。

remove

string

要移除的帳單設定資源名稱。如要移除設定,除非設定處於待處理狀態,或是已排定的開始時間設在未來。資源名稱類似 customers/{customerId}/billingSetups/{billing_id}

MutateBillingSetupResult

單一帳單設定發生變化。

JSON 表示法
{
  "resourceName": string
}
欄位
resourceName

string

傳回成功的作業。