Hi Francis,

Try 

WHERE campaign.name REGEXP_MATCH \" (?i).Google [[]Ads[]]. \"

"To match a literal [, ], %, or _ using the LIKE operator, surround the 
character in square brackets." source 
https://developers.google.com/google-ads/api/docs/query/grammar 

Hope this helps
On Thursday, April 21, 2022 at 5:15:13 PM UTC+2 [email protected] wrote:

>
>  Hi Jinky,
>
> the suggested regular expression executes without error, but it does not 
> match the string "Google [Ads]". This is because "[" is a reserved 
> caracter. See the screenshots below from a regex tester using the re2 
> syntax. 
>
> I would expect the Google Ads API to match the escaped opening square 
> bracket without error.
>
> Thank you, Francis
>
>
> [image: Regex no escape no match.png][image: Regex escape match.png]
>
>
> Le jeudi 21 avril 2022 à 07:21:22 UTC-4, adsapi a écrit :
>
>> Hi  Francis,
>>
>> Thank you for raising this concern to the Google Ads API forum. With 
>> regard to your concern, could you please try this format below:
>>
>> WHERE campaign.name REGEXP_MATCH \" (?i).Google [Ads]. \"
>>
>> I tried this suggested format and it's working on my end so you can try 
>> it as well.
>>
>> Best regards,
>> [image: Google Logo] 
>> Jinky 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2a5B6j:ref
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0a7de8ce-bdc7-4fa8-9784-a988711adddan%40googlegroups.com.

Reply via email to