Posts tagged with postman
Google Ads API request return as AUHENTICATION_FAILED error
I want to use reporting HTTP endpoints for that I send a request with postman But every time I getting AUTHENTICATION_ERROR.
My oAuth2 response :
{"token":{"access_token":"ya29.a0AfH6SMCyU5L******","refresh_token":"1//09Iryk6eZYKj0CgYIA********","scope":"https://www.googleapis.com/auth/youtube.upload https://www.googleapis.com/auth/youtube.readonly https://www.googleapis.com/auth/adwords","token_type":"Bearer","expiry_date":1624622265323}}
I used "ya29.a0AfH6SMCyU5L******" as access_token for request header.
And my postman request like that:
Where did I make mistake? How can I solve this issue?
Get WhatsApp Business API up and running (using Postman)
I am trying to set up the WhatsApp business API client. I followed this instruction https://developers.facebook.com/docs/whatsapp/getting-started/#client-setup
At step 2 I installed "single instance" using this instruction https://developers.facebook.com/docs/whatsapp/installation/dev-single-instance
At Step 6 of the "single instance" instruction, I started Postman https://developers.facebook.com/docs/whatsapp/guides/postman.
At Step 4 of "Postman Collection" I configured AdminUsername (admin), AdminPassword (secret), NewAdminPassword (****) and URL (https://localhost:9090 [the example says 7901, but that results in error]). Response: some headers and "Status 401 Unauthorized".
Maybe this helps to find the cause: Following this post Whatsapp Business API production setup not working I ran this command docker-compose logs > debug_output.txt
. This was the output: https://drive.google.com/file/d/1eXeaTeNiAiPW3A5bZ54gOg70UIPfF-vt/view?usp=sharing. (It doesn't make much sense to me...). I do have a MySQL WorkBench installed. No clue if it is installed in the same 'instance'.
Token has expired or revoked - Google Ads
Hi I have been using rest methods to integrate Google Ads API in C#. Everything seemed to be working fine but all of sudden I started getting 400 response with the error message.
{ "error": "invalid_grant", "error_description": "Token has been expired or revoked." }
As mentioned above that I am not using client library but instead using restsharp and testing all my end points using postman also.
Any reason why it is happening? My refresh token is also valid. I have been using this for one week. I have also not reached to the limit of refresh token as I have only generated refresh token 3 to 4 times when I was trying to set up the accounts.
I believe the validity of refresh token is life long then why it is happening?
Google Ads API Single Client Integration
I am currently trying to integrate single Google Ads account for my client using RestSharp in C# (don't want to use client libraries). I have found the useful link to generate access token by providing client ID , Client secret and Refresh token.
https://developers.google.com/google-ads/api/docs/rest/auth
I am now trying to test on Postman first before I start developing code in C# but failing to get access token. The screen shot below shows the call I am doing to get access token using Post man.
I also tried CURL in postman which was mentioned in the link above but getting the same error.
FYI it is a Desktop app chosen in google console to generate client ID and secrete because I will be creating console app to integrate Google Ads API.