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 " +
          "metrics.all_conversions, " +
          "metrics.impressions, " +
          "metrics.clicks, " +
          "metrics.cost_micros,  " +
          "segments.device, " +
          "segments.date " +
          "FROM ad_group " +
          "WHERE segments.date => '2023-07-01' " +
          "ORDER BY segments.date DESC " +
          "";
    try
    {
      // Issue a search request.
      googleAdsService.SearchStream("[removed]", query,
          delegate (SearchGoogleAdsStreamResponse resp)
          {
...

But when I run it I get this error:
{
"customerId": "[removed]",
"query": "SELECT metrics.all_conversions, metrics.impressions, 
metrics.clicks, metrics.cost_micros,  segments.device, segments.date FROM 
ad_group WHERE segments.date =\u003e '2023-07-01' ORDER BY segments.date 
DESC ",
"summaryRowSetting": "NO_SUMMARY_ROW"
}

the ">" char is converted to " \u003e" in the where clause.

Any idea how to avoid that?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4c71c7c3-6d72-4c59-94a9-7a0eef2fc5cen%40googlegroups.com.
  • En... Henrik Ravnskjær
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to