Hi,
I am getting authentication errors with both GetCampaigns and enhanced
conversions
(https://github.com/googleads/google-ads-dotnet/blob/main/Google.Ads.GoogleAds/examples/Remarketing/UploadConversionEnhancement.cs).
In my .NET 6.0 app I'm trying to instatiate a GoogleAdsClient with the
following config (see example code snippet below):
GoogleAdsConfig config = new GoogleAdsConfig()
{
OAuth2Mode = OAuth2Flow.APPLICATION,
OAuth2ClientId = clientId,
OAuth2ClientSecret = clientSecret,
DeveloperToken = developerToken,
LoginCustomerId = "4049465539",
OAuth2RefreshToken = refreshToken,
LinkedCustomerId = "4049465539"
};
- ClientId and Client secret come from ID client OAuth 2.0 I've configured
on Cloud Console.
- DeveloperToken is set to my company's developer token (set in Google Ads
UI dashboard): it's a token with test account access level.
- RefreshToken is obtained from ClientId and ClientSecret programmatically
based on Google's
example:
https://github.com/googleads/google-ads-dotnet/wiki/API-access-using-own-credentials-(desktop-application-flow)
- LoginCustomerId and LinkedCustomerId are the id associated to my account
from my company (my account with that id has admin priviledges)
Even a simple campaigns' listing using googleAdsService.SearchStream()
based on Google's examples fails with:
StatusCode="PermissionDenied", Detail="The caller does not have permission"
My code implementation is ok but I'm pretty sure it's an
authentication/config setup problem.
1) How's that? What config/permission should I check? Is Desktop Oauth 2.0
Client Id supposed to be working in my cases?
2) My final objective is to use Enhanced Conversions (mainly the
https://github.com/googleads/google-ads-dotnet/blob/main/Google.Ads.GoogleAds/examples/Remarketing/UploadConversionEnhancement.cs
example).
Is it even possible to test this API with a developer token using our
production conversions? If it's not possible, how can I create a testing
environment for Enhanced Conversions before requiring a production
developer token? (p.s. we don't have https://workspace.google.com/ which
seems a payment service)
Thanks in advance,
Federico
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/275b42a0-58ad-4103-bc41-b8fc25262899n%40googlegroups.com.