File Name : AddBillingSetup.php
We are encountering an issue when setting up billing for a customer account using the Google Ads API. Specifically, the following error occurs:
ApiException was thrown with message '{
"
message": "Request contains an invalid argument.",
"code": 3,
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.ads.googleads.v16.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"billingSetupError": "FUTURE_START_TIME_PROHIBITED"
},
"message": "A start time in the future cannot be used because there is currently no active billing setup for this customer.",
"location": {
"fieldPathElements": [
{
"fieldName": "operation"
},
{
"fieldName": "create"
},
{
"fieldName": "start_time"
}
]
}
}
],
"requestId": "1Z_7PyJ9cNH0rJKVvEdGuQ"
}
]
}'.
he above error occurs only when we attempt to create the billing setup through the API. However, the issue does not occur if we log in to the Google Ads account manually, select the relevant customer ID, and click on the Billing section. After doing this, the API request works correctly.
This behavior forces us to manually log in and click the Billing option every time we create a new account, which is not feasible as we need to create and set up billing for over 500 accounts using the API.
My server timezone is UTC and my account setup timezone is IST is it affect any on API call
Hi,
Thank you for reaching out to Google Ads API Support.
By reviewing your concern, I can see that you’ve received a BillingSetupError FUTURE_START_TIME_PROHIBITED error which states that a start time in the future cannot be used because there is currently no active billing setup for this customer. Kindly double check your request if you are not setting the future date as compared to when the API call was made. To avoid this error, you would need to avoid setting a start date in future with respect to API call request time. Also, as a side note, you may double check the latest billing setup ID in your request that has a valid start date and end date that doesn’t extend beyond its billing setup.
In order to investigate your issue further, kindly provide us with the complete API logs (request and response logs with request-id and request header) generated at your end.
Since you are using the PHP client library, if you haven't enabled the logging yet, I would request you to enable it by referring to this guide on PHP.
Reply privately to the author option, or direct private reply to this email.
![]() |
Google Ads API Team |