Hi Team,
I have a requirement to pass single quotes in query as we have single 
quotes in search terms.
I tried adding a \ symbol for preceding a single quotes but I am getting 
response as below,
{
    "error": {
        "code": 400,
        "message": "Request contains an invalid argument.",
        "status": "INVALID_ARGUMENT",
        "details": [
            {
                "@type": "
type.googleapis.com/google.ads.googleads.v14.errors.GoogleAdsFailure",
                "errors": [
                    {

                        "errorCode": {
                            "queryError": "BAD_VALUE"
                        },
                        "message": "Error in WHERE clause: invalid value '."
                    }
                ],
                "requestId": "xxxxx"
            }
        ]
    }
}

Request as follows,
{"pageSize": 10000,"query": "SELECT ad_group_criterion.keyword.text,
  campaign.name,
  ad_group.name
FROM keyword_view
WHERE ad_group_criterion.keyword.text IN ('Marine\'s Day Video','Video')"}

Could anyone kindly help me on this to pass single quotes in where 
condition? Thanks in advance

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d55de4a6-7e71-4397-82ef-54b1bc2f4950n%40googlegroups.com.
  • Si... 'Jobin Joy' via Google Ads API and AdWords API Forum
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to