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 " +
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.
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,
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