Re: Problem with AddBillingSetup.php example

2023-01-22 Thread Алексей Рябиков
Hi! 
Wow, thank you! 
I'll be waiting :)

пятница, 20 января 2023 г. в 23:03:42 UTC+3, adsapi: 

> Hello - 
>
> Thanks for bringing this issue up! I'm a developer relations engineer 
> jumping in to help out here. The internal error I see for your request ID 
> is CUSTOMER_BILLING_ERROR_CANNOT_CREATE_IN_PAST, which is kind of confusing 
> since you are setting the start date the same as the date of the request. 
>
> This actually does not appear to be specific to the PHP library, we use 
> the same pattern in Python 
> 
>  
> and other languages, and I've seen other users encounter this problem.
>
> Currently the issue has been escalated to the Billing team, who is 
> exposing that internal error and also helping resolve the discrepancy 
> between our example and the API's behavior.
>
> Once I have more details I'll follow up to let you know.
>
> Thanks!
> [image: Google Logo] 
> Ben Karl 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2hzeYR:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2a2b91c0-de7d-4e7f-8648-9d13e6776674n%40googlegroups.com.


Re: Problem with AddBillingSetup.php example

2023-01-20 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hello -

Thanks for bringing this issue up! I'm a developer relations engineer jumping 
in to help out here. The internal error I see for your request ID is 
CUSTOMER_BILLING_ERROR_CANNOT_CREATE_IN_PAST, which is kind of confusing since 
you are setting the start date the same as the date of the request.

This actually does not appear to be specific to the PHP library, we use the 
same pattern in Python and other languages, and I've seen other users encounter 
this problem.

Currently the issue has been escalated to the Billing team, who is exposing 
that internal error and also helping resolve the discrepancy between our 
example and the API's behavior.

Once I have more details I'll follow up to let you know.

Thanks!

Ben Karl
Google Ads API Team
ref:_00D1U1174p._5004Q2hzeYR:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/pKQPI0ROSVPO00V1b4gWFqSZC3g3wSJcVCYA%40sfdc.net.


Re: Problem with AddBillingSetup.php example

2023-01-19 Thread Алексей Рябиков
Thank you! 
I'll be waiting :)

четверг, 19 января 2023 г. в 12:30:10 UTC+3, adsapi: 

> Hi,
>
> Thank you for getting back to us. I hope that you are doing well today.
>
> Please allow me to raise this concern to the rest of our team. Rest 
> assured that we will get back to you once we have an update.
>
> Kind regards, 
> [image: Google Logo] 
> Sherwin Vincent 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2hzeYR:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/05bf1091-8a71-449c-b0bb-d4b463099341n%40googlegroups.com.


Re: Problem with AddBillingSetup.php example

2023-01-19 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Thank you for getting back to us. I hope that you are doing well today.

Please allow me to raise this concern to the rest of our team. Rest assured 
that we will get back to you once we have an update.

Kind regards,

Sherwin Vincent
Google Ads API Team
ref:_00D1U1174p._5004Q2hzeYR:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/zy2XE0ROQ7PS00g15bovlnT1-YfUMiHhOk8A%40sfdc.net.


RE: Problem with AddBillingSetup.php example

2023-01-18 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Thanks for reaching out to the Google Ads API team. I hope you are doing well 
today.


With regards to your concern, the budget start time is the same day that you 
made the budget proposal. Does this error occur when you give a future date as 
a start time? According to our documentation (look lower down by 
startDateTime), only a future time is allowed.

If you follow that and you are still getting an error, then you may send us the 
complete request and response logs with the request-id when you encounter the 
error, so our team can better check? If you haven't yet, logging can be enabled 
by navigating to the Client libraries > Your client library (ex. PHP) > Logging 
documentation, which you can access from this link.


You may then send the requested information via the Reply privately to author 
option. If this option is not available, you may send the details directly to 
our googleadsapi-supp...@google.com alias instead.


Regards,

Darwin
Google Ads API Team
ref:_00D1U1174p._5004Q2hzeYR:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/GyCV70ROORUV00flhR_V7aS3aQoLGwAV05yA%40sfdc.net.


Problem with AddBillingSetup.php example

2023-01-17 Thread Алексей Рябиков
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 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/9d77de70-104c-49bd-bc97-b23dd198d8cen%40googlegroups.com.


Problem with AddBillingSetup.php example

2023-01-17 Thread Алексей Рябиков
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.