Re: {'error': 'invalid_grant', 'error_description': 'Bad Request'}

2024-02-22 Thread dimas ilham
Hi, i got same error, this might be cause my refresh token got expired, but 
when i want to reapply it, i got error like this:

[image: Screenshot 2024-02-22 165248.png]
is there any ways to solve it?

Pada Rabu, 20 Desember 2023 pukul 05.58.59 UTC+7 Google Ads API Forum 
Advisor menulis:

> Hi,
>
> Thank you for getting back to us.
>
> After reviewing your concern, I understand that you are encountering the 
> invalid_grant 
> 
>  error 
> while creating a campaign via the Google Ads API.
>
> The common cause for this error is that, a Google Cloud Platform project 
> with an OAuth consent screen configured for an external user type and a 
> publishing status of "Testing" is issued a refresh token expiring in 7 
> days. So, in order to handle this error, go to the Google API Console and 
> navigate to the OAuth consent screen. Then change the publishing status to 
> "In production" to avoid the refresh token expiring in 7 days.
>
> If you still encounter any issues, please provide us with the complete API 
> logs (request 
> 
>  and response 
> 
>  with request-id 
> 
>  and request header 
> )
>  
> generated at your end to better assist you.
>
> If you are using a client library and haven't enabled the logging yet, I 
> would request you to enable logging for the specific client library that 
> you are using. You can refer to the guides* Java* 
> 
> ,* .Net* 
> 
> ,* PHP* 
> 
> ,* Python* 
> 
> ,* Ruby* 
> 
>  or* Perl* 
>  
> to 
> enable logging at your end. For REST interface requests, you can enable 
> logging via the curl command by using the -i flag.
>   
> This message is in relation to case "ref:!00D1U01174p.!5001U0XWCTf:ref"
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>  
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ca985dfa-5bbc-4f2c-93dc-18f318106ac6n%40googlegroups.com.


Re: {'error': 'invalid_grant', 'error_description': 'Bad Request'}

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

Thank you for getting back to us.

After reviewing your concern, I understand that you are encountering the 
invalid_grant error while creating a campaign via the Google Ads API.

The common cause for this error is that, a Google Cloud Platform project with 
an OAuth consent screen configured for an external user type and a publishing 
status of "Testing" is issued a refresh token expiring in 7 days. So, in order 
to handle this error, go to the Google API Console and navigate to the OAuth 
consent screen. Then change the publishing status to "In production" to avoid 
the refresh token expiring in 7 days.

If you still encounter any issues, please provide us with the complete API logs 
(request and response with request-id and request header) generated at your end 
to better assist you.

If you are using a client library and haven't enabled the logging yet, I would 
request you to enable logging for the specific client library that you are 
using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to 
enable logging at your end. For REST interface requests, you can enable logging 
via the curl command by using the -i flag.
This message is in relation to case "ref:!00D1U01174p.!5001U0XWCTf:ref"

Thanks,

Google Ads API Team

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


Re: {'error': 'invalid_grant', 'error_description': 'Bad Request'}

2023-12-19 Thread 'ReVo' via Google Ads API and AdWords API Forum
Hi there,

What if the error  {"error": "invalid_grant", "error_description": "Bad 
Request"} appears when trying to exchange code for access and refresh 
tokens? I've already tried a bunch of possible solutions including 
generating a new client secret, but it didn't help. Here are the parameters 
that I pass. Thanks a lot. [image: Screenshot 2023-12-19 223228.png]

Best regards,
Jerry
On Tuesday, March 24, 2020 at 7:13:50 PM UTC+2 Google Ads API Forum Advisor 
Prod wrote:

> Hi Diana,
>
> Can you please provide your complete detailed request and response logs of 
> your API call *via Reply privately to author *so that I can further 
> investigate the issue? You can find information on enabling logging in the 
> ReadMe of your client library 
> .
>
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5001UXWCTf: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/133ff33a-ed54-492c-8e69-a701abe347c4n%40googlegroups.com.


RE: {'error': 'invalid_grant', 'error_description': 'Bad Request'}

2020-03-24 Thread Google Ads API Forum Advisor Prod
Hi Diana,

Can you please provide your complete detailed request and response logs of your 
API call via Reply privately to author so that I can further investigate the 
issue? You can find information on enabling logging in the ReadMe of your 
client library.

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5001UXWCTf: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 
"AdWords API and Google Ads 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/bdxR10Q7PJUE001W30PRj3QKG991CM9PO1yg%40sfdc.net.


Re: {'error': 'invalid_grant', 'error_description': 'Bad Request'}

2020-03-24 Thread Diana Dziubak

>
> Hi!


Thanks for your answer. But I still have a problem with this.

 My email address - petrovna.netp...@gmail.com

 My client customer ID - 864-831-5368

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/bbaca45f-469a-4a08-8e47-678041c3555f%40googlegroups.com.