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
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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