Hi!
Thanks for your response
Yes, but it's not about "
the budget start time is the same day that you made the budget proposal", but about billing setup: It's works only if I change date in example script (sic!):
Comment on line 251 says clearly: "... the only acceptable start date time is today."
But, unfortunately, it doesn't work :)
In attach you can see error in console, when I'm trying to run example php /home/bitrix/www/google-ads-php/examples/Billing/AddBillingSetup.php --customerId ***** --paymentsAccountId '****'
(customerId and paymentsAccountId - correct, because they work in case with tomorrow's date).
And text of response (except warnings of php 8.1 version):
[2023-01-18T17:22:58.128672+00:00] google-ads.INFO: Request made: Host: "
googleads.googleapis.com", Method: "/google.ads.googleads.v12.services.GoogleAdsService/SearchStream", CustomerId:
9427904266, RequestId: "UwCv_xC-Nal98SaZ0InHJw", IsFault: 0, FaultMessage: "None"
[2023-01-18T17:22:58.842060+00:00] google-ads.WARNING: Request made: Host: "
googleads.googleapis.com", Method: "/google.ads.googleads.v12.services.BillingSetupService/MutateBillingSetup", CustomerId:
9427904266, RequestId: "NhMQ-9qCyuS4pWKwyH-AhQ", IsFault: 1, FaultMessage: "["The error code is not in this version."]"
[2023-01-18T17:22:58.844041+00:00] google-ads.NOTICE: Request
-------
Method Name: /google.ads.googleads.v12.services.BillingSetupService/MutateBillingSetup
Host:
googleads.googleapis.comHeaders: {
"x-goog-api-client": "gl-php\/8.1.13 gccl\/17.1.0 gapic\/17.1.0 gax\/1.17.0 grpc\/1.51.1 rest\/1.17.0 pb\/3.21.12+c",
"x-goog-request-params": "customer_id=
9427904266",
"developer-token": "REDACTED",
"login-customer-id": "
5074588743"
}
Request:
{"customerId":"
9427904266","operation":{"create":{"paymentsAccount":"customers/
9427904266/paymentsAccounts/5448-8273-0617-4024","startDateTime":"2023-01-18","endDateTime":"2023-01-19"}}}
Response
-------
Headers: {
"request-id": "NhMQ-9qCyuS4pWKwyH-AhQ",
"date": "Wed, 18 Jan 2023 17:22:58 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":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\""
}
Fault
-------
Status code: 3
Details: Request contains an invalid argument.
Failure: {"errors":[{"errorCode":{"requestError":"UNKNOWN"},"message":"The error code is not in this version.","location":{"fieldPathElements":[{"fieldName":"operation"},{"fieldName":"create"},{"fieldName":"start_time"}]}}],"requestId":"NhMQ-9qCyuS4pWKwyH-AhQ"}
Request with ID 'NhMQ-9qCyuS4pWKwyH-AhQ' has failed.
Google Ads failure details:
request_error: The error code is not in this version.
P.S. It's just an example from the library, not my own code. It's really strange :(
среда, 18 января 2023 г. в 17:50:03 UTC+3, adsapi: