Failed to create a bill, associated with an existing account

48 views
Skip to first unread message

Cyan

unread,
Jan 14, 2021, 8:24:12 AM1/14/21
to AdWords API and Google Ads API Forum
HI,

When I created the bill, I was associated with an existing account. The request failed.

Return information:

FAILURE REQUEST DETAIL.
Request
-------
MethodName: google.ads.googleads.v6.services.BillingSetupService/MutateBillingSetup
Headers: {developer-token=REDACTED, login-customer-id=6739876670, x-goog-api-client=gl-java/1.8.0_251 gapic/ gax/1.57.0 grpc/1.30.0}
Body: customer_id: "6477922205"
operation {
  create {
    resource_name: "customers/6477922205/paymentsAccounts/2338-3104-9327-7072"
    start_time_type: NOW
    payments_account: "2338-3104-9327-7072"
  }
}


Response
--------
Headers: Metadata(content-type=application/grpc,request-id=l3H_8382yUeWkpvYQtbheQ,date=Thu, 14 Jan 2021 13:18:52 GMT,alt-svc=h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43")
Body: null
Failure message: errors {
  error_code {
    request_error: RESOURCE_NAME_MALFORMED
  }
  message: "Resource name \'2338-3104-9327-7072\' is malformed: expected \'customers/{customer_id}/paymentsAccounts/{payments_account_id}\'."
}

Status: Status{code=INVALID_ARGUMENT, description=Request contains an invalid argument., cause=null}.
2021-01-14 21:18:52.706 ERROR 12943 --- [nio-8002-exec-4] c.a.g.a.s.GoogleAdsAccountBudgetService  : errors {
  error_code {
    request_error: RESOURCE_NAME_MALFORMED
  }
  message: "Resource name \'2338-3104-9327-7072\' is malformed: expected \'customers/{customer_id}/paymentsAccounts/{payments_account_id}\'."
}


com.google.ads.googleads.v6.errors.GoogleAdsException: errors {
  error_code {
    request_error: RESOURCE_NAME_MALFORMED
  }
  message: "Resource name \'2338-3104-9327-7072\' is malformed: expected \'customers/{customer_id}/paymentsAccounts/{payments_account_id}\'."
}

Thanks
cyan

Google Ads API Forum Advisor Prod

unread,
Jan 14, 2021, 3:58:23 PM1/14/21
to yunch...@gmail.com, adwor...@googlegroups.com

Hi Cyan,

Thank you for reaching out. The correct resource name to mutate BillingSetup is customers/{customer_id}/billingSetups/{billing_setup_id}. Please make the modification and try it again.

Thanks and regards,
Xiaoming, Google Ads API Team



Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2B0GRM:ref
Reply all
Reply to author
Forward
0 new messages