when I query the click_view table Im getting this error message: Request 
contains an invalid argument


 try
            {
                // Constructs the query.
              

                string query = @"
               SELECT
                    click_view.ad_group_ad, click_view.gclid
               FROM
                click_view  WHERE click_view.gclid = 
'xxxxxxxxaTpppppppppppppppp";



              


                // Creates the search request.
                SearchGoogleAdsRequest searchRequest = new 
SearchGoogleAdsRequest()
                {
                    Query = query
                };

                // Issues the search request and gets the first result.
                //SearchGoogleAdsResponse searchResponse =
                  //  googleAdsClient.GetService<GoogleAdsServiceClient, 
GoogleAdsServiceSettings, GoogleAdsConfig>().Search(searchRequest);

                GoogleAdsServiceClient googleAdsService = 
googleAdsClient.GetService( Services.V12.GoogleAdsService);

                List<string> items = new List<string>();
                Task t = googleAdsService.SearchStreamAsync("111111", query,
                delegate (SearchGoogleAdsStreamResponse resp)
                {
                    foreach (GoogleAdsRow googleAdsRow in resp.Results)
                    {
                        Console.WriteLine(googleAdsRow);
                        //string item = 
googleAdsRow.ConversionAction.Id.ToString();
                        string item = $"{googleAdsRow.ConversionAction.Id} 
- {googleAdsRow.ConversionAction.Name} - 
{googleAdsRow.ConversionAction.Status}";
                        items.Add(item);
                    }
                }
                );
                await t;
                var x = items;

            

                Uploading(googleAdsClient);
            }
            catch (GoogleAdsException ex)
            {
                Console.WriteLine($"Failed to retrieve conversion action 
ID. {ex}");
            }

when I query this below code is working   //string query = $@"SELECT 
conversion_action.id, conversion_action.name
                //                  FROM conversion_action
                //                  WHERE conversion_action.status = 
'ENABLED'
                //                  AND 
conversion_action.name='xxxxxxxMLinks' ";
could you please help me?
Many Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e017e5a3-0986-4e25-89bb-6bf4b591205cn%40googlegroups.com.

Reply via email to