Hi, 

I exchanged some private messages about this problem in May and I was told 
that it was work in progress.
Do you maybe have other news about it? 

Thank you in advance.

Regards,
Sabrina

On Wednesday, May 8, 2019 at 11:07:11 PM UTC+2, Sabrina Fontanella wrote:
>
> Hi,
>
> We are running into problems while trying to target AdCustomizers (aka a 
> Feed with FeedItems).
>
> Instead of targeting after we create the FeedItems with FeedItemTargets, 
> we would like to pre-target these FeedItems. At the London Google Ads API 
> workshop, we asked if this was possible, and a dev (Nick Birnie) told us 
> this would be possible if we used an AdGroupFeed with a proper 
> `matchingFunction`.
>
> We tried several matchingFunctions, but we are always getting the error 
> `INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA`, and we don’t understand what 
> is going wrong.
>
> I will try to make an example in Python of what we are doing using the 
> functionString `IN(FEED_ITEM_ID,{1000001,1000002,1000003})` that I found 
> here 
> <https://developers.google.com/adwords/api/docs/guides/feed-matching-functions>
> :
>
> client = get_adwords_client(customer_id)                                 
>                                                                             
>                                                
> adgroup_feed_service = client.GetService('AdGroupFeedService', version=
> 'v201809')                                                               
>                                                     
>
>     adgroup_feed = [
>
>         {
>
>             'operator': 'ADD',
>
>             'operand': {
>
>                 'feedId': 94609766,
>
>                 'adGroupId': 72306866320,
>
>                 'matchingFunction': {
>
>                     'functionString': 
> 'IN(FEED_ITEM_ID,{1000001,1000002,1000003})'
>
>                 },
>
>                 'placeholderTypes': ['10'],
>
>             },
>
>         }
>
>     ]
>
> result = adgroup_feed_service.mutate(adgroup_feed)  
>
>
> This is the error that I am obtaining:
>
> {
>
>     'ListReturnValue.Type': 'AdGroupFeedReturnValue',
>
>     'value': [
>
>         None
>
>     ],
>
>     'partialFailureErrors': [
>
>         {
>
>             'fieldPath': 'operations[0].operand.matchingFunction',
>
>             'fieldPathElements': [
>
>                 {
>
>                     'field': 'operations',
>
>                     'index': 0
>
>                 },
>
>                 {
>
>                     'field': 'operand',
>
>                     'index': None
>
>                 },
>
>                 {
>
>                     'field': 'matchingFunction',
>
>                     'index': None
>
>                 }
>
>             ],
>
>             'trigger': 'Function{operator=IN, 
> lhsOperand=[RequestContextOperand{contextType=FEED_ITEM_ID}], 
> lhsOperandOps=null, rhsOperand=[ConstantOperand{type=INTEGER, unit=NONE, 
> longValue=1000001, doubleValue=null, booleanValue=null, stringValue=null}, 
> ConstantOperand{type=INTEGER, unit=NONE, longValue=1000002, 
> doubleValue=null, booleanValue=null, stringValue=null}, 
> ConstantOperand{type=INTEGER, unit=NONE, longValue=1000003, 
> doubleValue=null, booleanValue=null, stringValue=null}], 
> rhsOperandOps=null, functionString=null}',
>
>             'errorString': 
> 'FunctionError.INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA',
>
>             'ApiError.Type': 'FunctionError',
>
>             'reason': 'INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA'
>
>         }
>
>     ]
>
> }
>
>
> Do you see something wrong with what we are doing? 
>
> Furthermore, if you would have also other suggestion for doing 
> pre-targeting that would be also helpful.
>
> Thank you for the help,
>
> Sabrina
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/c91122c5-e939-4621-8a0d-2f250dd75077%40googlegroups.com.

Reply via email to