Authentication problem in Google Ads API

22 views
Skip to first unread message

Mohammad Ahmad

unread,
Mar 1, 2021, 2:10:27 AM3/1/21
to AdWords API and Google Ads API Forum

I have previously been using the googleads-dotnet-lib library to make calls to google ads without issue. After switching to a new dotnet core project I use my previous credentials set up for the googleads-dotnet-lib library the google-ads-dotnet library throws the following error.

'Google.Ads.GoogleAds.V1.Errors.GoogleAdsException; in System.Private.CoreLib.dll ("Status (StatusCode=PermissionDenied, Detail="Google Ads API has not been used in the project before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/googleads.googleapis.com/overview?project= then retry. If you enabled this API recently, wait a few minutes for the action to propagate tor our systems and retry.")")

I omitted the project number in the above however when I try to visit that page it errors out. Also when I try to add the library to my project in the developer's console I get the following error on the page "API solution not found with service name: googleads.googleapis.com". i then replaced project id with my project id and enabled API but still after trying after 2 day its still not working.
Any help will be really apreciated

Google Ads API Forum Advisor Prod

unread,
Mar 1, 2021, 4:34:35 PM3/1/21
to forlo...@gmail.com, adwor...@googlegroups.com
Hi,

I recommend double checking if you followed all the steps that are mentioned in the guide: https://developers.google.com/google-ads/api/docs/oauth/cloud-project

I suggest enabling the Google Ads API using the incognito mode of Google Chrome.

Thanks,
Google Logo
Lakshmi Prathipati
Google Ads API Team
 


ref:_00D1U1174p._5004Q2DJtZh:ref
Reply all
Reply to author
Forward
0 new messages