Search code examples
c#.netpostmangoogle-ads-apirestsharp

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. enter image description here

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.


Solution

  • Use Google OAuth 2.0 playground. (note: you have to have Web application for that)