Create billing setup, request failed.

83 views
Skip to first unread message

Cyan

unread,
Jan 7, 2021, 3:07:40 AM1/7/21
to AdWords API and Google Ads API Forum
Hello team,
I am using Google ads api to create a billing setup, but the request failed. I found that the interface failed the first time, and the interface was created successfully the second time, which is incredible. The results are as follows.

First request:
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: "5060762588"
operation {
  create {
    start_time_type: NOW
    payments_account_info {
      payments_account_name: "\346\261\237\350\213\217\346\234\252\350\277\237\346\225\260\345\255\227\346\212\200\346\234\257\346\234\211\351\231\220\345\205\254\345\217\270"
      payments_profile_id: "1624-3300-2040"
    }
  }
}


Response
--------
Headers: Metadata(content-type=application/grpc,request-id=S4M2tB8OyNowdZUwWm3cww,date=Thu, 07 Jan 2021 07:54:10 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 {
    internal_error: INTERNAL_ERROR
  }
  message: "An internal error has occurred."
}

Second request:
SUCCESS REQUEST SUMMARY. Method: google.ads.googleads.v6.services.BillingSetupService/MutateBillingSetup, Endpoint: googleads.googleapis.com:443, CustomerID: 5060762588, RequestID: dlvTZflBhnb-MBadccoBvA, ResponseCode: OK, Fault: null.

Thank you
cyan

Google Ads API Forum Advisor Prod

unread,
Jan 7, 2021, 1:50:33 PM1/7/21
to yunch...@gmail.com, adwor...@googlegroups.com
Hello,

Thanks for providing the log summary. It appears that the internal error you observed was a temporary error. This type of error can often be resolved just by retrying the request, and it appears it did in fact work on the second attempt. 

However, please let us know if the issue persists.

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2AIDCf:ref

Cyan

unread,
Jan 8, 2021, 1:05:21 AM1/8/21
to AdWords API and Google Ads API Forum
Hi Matt,

One of the amazing things I find is when I'm building AccountBudget, If a proposed_spending_limit_micros is equal to 0, then the request fails, and if a proposed_spending_limit_micros is equal to 10_000, then the request succeeds.

Thankyou
cyan


Google Ads API Forum Advisor Prod

unread,
Jan 8, 2021, 11:28:07 AM1/8/21
to yunch...@gmail.com, adwor...@googlegroups.com
Hi Cyan,

Thanks for providing that additional info. As your first issue was related to the billing setup service, and this is related to account budgets, can you confirm if this is a separate issue (as far as which services are being used)? Can you also confirm if you are getting internal errors consistently with the two inputs that you mentioned in your most recent email?

Дмитрий Мачехин

unread,
Mar 16, 2021, 10:36:49 AM3/16/21
to AdWords API and Google Ads API Forum
I have the same problem when create AccountBudget (if proposed_spending_limit_micros=0 request return INTERNAL_ERROR, then 10000 request success)
пятница, 8 января 2021 г. в 19:28:07 UTC+3, adsapiforumadvisor:

Google Ads API Forum Advisor Prod

unread,
Mar 16, 2021, 1:52:03 PM3/16/21
to rai...@gmail.com, adwor...@googlegroups.com
Hello,

Can you please provide us with the complete request and response logs so we can further investigate the issue?
Reply all
Reply to author
Forward
0 new messages