Encoding ">" in query

2023-07-12 Thread Henrik Ravnskjær
Thi smight not be the correct place to post, but I try anyway. I have a string encoding problem in my c# console app. I have this code: ... GoogleAdsServiceClient googleAdsService = client.GetService(Services.V14.GoogleAdsService); string query = "SELECT " +

Re: the caller does not have permission error

2023-07-03 Thread Henrik Ravnskjær
Replied to all, so others can see my solution Enabling logging showed me the problem. Code: // Detailed logs. TraceUtilities.Configure(TraceUtilities.DETAILED_REQUEST_LOGS_SOURCE, "D:\\temp\\Google\\detail.log", System.Diagnostics.SourceLevels.All); // Summary logs.

Re: missing refresh_token error even though it's there

2023-06-28 Thread Henrik Ravnskjær
Instead of using app.config I changed the code to include a config when I create the client. GoogleAdsConfig config = new GoogleAdsConfig() { OAuth2Mode = Google.Ads.Gax.Config.OAuth2Flow.APPLICATION, OAuth2ClientId = ClientId, OAuth2ClientSecret = ClientSecret,

Missing refresh_token error even though it's there

2023-06-26 Thread Henrik Ravnskjær
First off. I'm really new to Google Ads API. I'm trying to created a small C# console app to retrieve some basic ads info (clicks, impressions..) I have created a cloud app to get a client ID and secret. Enabled Google Ad API. I have the developer token from Google Ads API Center. (It is still