Hello! 
I have a problem with an 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 manipulate 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 generates another: AddAccountBudgetProposal 
works with tomorrow's day only, because of your billing setup. And if we 
use tomorrow's date to make AddAccountBudgetProposal example works - we 
will see the blank screen in your google ads account in the 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's 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 work perfectly 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9d77de70-104c-49bd-bc97-b23dd198d8cen%40googlegroups.com.
  • Pr... Алексей Рябиков
    • ... Алексей Рябиков
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
          • ... Алексей Рябиков
            • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
              • ... Алексей Рябиков

Reply via email to