I have an ad customizer feed setup in my account and I want to change the 
value of one Item in that feed. I tried doing that using the "SET" 
operation in the 'FeedItemService'

PFA code:

fi_service = adwords_client.GetService('FeedItemService', version = 'v201809')

fi_operator = {                 
                'feedId': 1234,
                'feedItemId': 5678,                
                'attributeValues': [
                                    {                                     
                                     'feedAttributeId':111,
                                     'stringValue': '1000'}                     
                 
                                    ]
        }
fi_creator_operation = {'operator': 'SET',                        
                        'operand': fi_operator}                
fi_call_response = fi_service.mutate(feed_creator_operation)

Here is the traceback of the error:

Traceback (most recent call last):

  File "<ipython-input-57-892b092f7b88>", line 15, in <module>
    fi_call_response = fi_service.mutate(feed_creator_operation)

  File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
1381, in MakeSoapRequest
    packed_args = self._PackArguments(method_name, args)

  File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
1239, in _PackArguments
    for ((_, param), param_data) in izip(op_params, args)]

  File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
1284, in _PackArgumentsHelper
    elem_type, type_override is not None, data_formatted, set_type_attrs)

  File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
1351, in _CreateComplexTypeFromData
    for k, v in data if k != 'xsi_type'}

  File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
1351, in <dictcomp>
    for k, v in data if k != 'xsi_type'}

  File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
1284, in _PackArgumentsHelper
    elem_type, type_override is not None, data_formatted, set_type_attrs)

  File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
1351, in _CreateComplexTypeFromData
    for k, v in data if k != 'xsi_type'}

  File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
1351, in <dictcomp>
    for k, v in data if k != 'xsi_type'}

KeyError: 'feedAttributes'

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/71085bd2-6473-4a83-b96a-c9e805f044ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • KeyErro... 'Ketan Ingle' via AdWords API and Google Ads API Forum
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... 'Ketan Ingle' via AdWords API and Google Ads API Forum
    • RE... Google Ads API Forum Advisor Prod

Reply via email to