Hello! I have a problem with example from Google Ads PHP library. When I'm trying to run example via console I have an error like: " 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":"yZbhEFXVZpZkKw6fCu2Rig"} Request with ID 'yZbhEFXVZpZkKw6fCu2Rig' has failed. Google Ads failure details: request_error: The error code is not in this version. "
And I found that this is the problem with $start_time variable: In the example we have $startDate = time(); on line 252, and if we run as is (current time, current date) - it's return error. But if we manitpulate this variable until we get tomorrow date (like $startDate = time() + 86400; on line 252 OR $billingSetup->setStartDateTime(date('Y-m-d', strtotime('+1 day', $startDate))); instead $billingSetup->setStartDateTime(date('Y-m-d', $startDate)); on 254) - it OK, its works. And therefore this problem generate another: AddAccountBudgetProposal works with tomorrow day only, because of your billing setup. And if we use tommorow's date to make AddAccountBudgetProposal example works - we will see the blank sreen in your google ads account in billing section (for today, tomorrow it will be OK, you'll your billing setup and budget). So, my question is: What could be wrong with AddBillingSetup.php? Why only tomorrow date? P.S. I've tried to add +1 hour, +1 minute, +1 second, etc. But it works only in case, when you add enough seconds to get tomorrow's date. P.P.S. Other examples works perfect for me. Including AddAccountBudgetProposal if you add Billing Setup manually via your cabinet. Thnx! -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/f357b5bb-07dd-42c2-a4d4-e6370cd38ba1n%40googlegroups.com.