INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA error for matchingFunction of AdGroupFeed

31 views
Skip to first unread message

Sabrina Fontanella

unread,
May 8, 2019, 5:07:11 PM5/8/19
to AdWords API and Google Ads API Forum

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:


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


googleadsapi...@google.com

unread,
May 9, 2019, 4:00:42 AM5/9/19
to adwor...@googlegroups.com
Hi Sabrina,

Thank you for contacting support. So I can further investigate, could you provide the complete SOAP request and response logs that were generated when the error occurred? If you haven't yet, you may enable SOAP logging by referring to this guide for Python.

Once enabled, you may send the SOAP logs privately using the Reply privately to author option.

Best regards,
Peter
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/fb33dc13-bbad-4c39-b73d-3a262f9d634c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sabrina Fontanella

unread,
Aug 7, 2019, 8:59:21 AM8/7/19
to AdWords API and Google Ads API Forum
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

Google Ads API Forum Advisor Prod

unread,
Aug 8, 2019, 1:08:46 AM8/8/19
to adwor...@googlegroups.com
Hi Sabrina,

My apologies for the delayed responses and for the inconvenience.

Our team is still looking into this issue. Rest assured that we will provide updates when available.

Regards,
Ejay
Google Ads API Team

ref:_00D1U1174p._5001UEIDGL:ref

Google Ads API Forum Advisor Prod

unread,
Aug 8, 2019, 9:23:20 AM8/8/19
to adwor...@googlegroups.com

Hi Sabrina,

Apologies for the delayed response. The matching function you're using appears valid, it looks like the issue is with the Feed that you're trying to update. Have you been able to successfully update any other Feeds aside from the one mentioned below with ID 94609766? Also do you know if this Feed was created using the API or via the Google Ads website?

Thanks!
Ben, Google Ads API Team



ref:_00D1U1174p._5001UEIDGL:ref
Reply all
Reply to author
Forward
0 new messages