For anyone finding this thread but no answer (like we did), one solution is 
to not attempt updating the matching function via its components (like the 
original poster and we attempted) but to build your own matching function 
string and update just that. This worked for our case, mutating a 
CustomerFeed.

PHP example, relevant parts marked green:

*        $matchingString = "$operator($leftOperand,$rightOperand)"; // --> 
e.g. IN(FEED_ITEM_ID,{1000001,1000002,1000003})*

*        $matchingFunction = new MatchingFunction();*
*        $matchingFunction->setFunctionString((new 
StringValue())->setValue($matchingString));*
*        ...*
*        $updateMask = (new 
FieldMask())->setPaths(['matching_function.function_string']);*
*        $operation->setUpdateMask($updateMask);*

Good luck!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/ce4826e5-a283-48ff-a145-8cf5cbe6043bo%40googlegroups.com.

Reply via email to