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
<https://github.com/googleads/googleads-python-lib#how-do-i-log-soap-interactions>
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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
On 05/08/19 18:21:14 sabr...@channable.com 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 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.
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
<https://groups.google.com/d/msgid/adwords-api/fb33dc13-bbad-4c39-b73d-3a262f9d634c%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/ijlio4vjl00000010pn4e800049dt4w74mjcd1h6oo30c1g68r30c1p%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.