Python Adwords API suds.sudsobject解析响应是否包含空索引键?

Python Adwords API suds.sudsobject解析响应是否包含空索引键?,python,soap,google-ads-api,suds,adwords-apiv201402,Python,Soap,Google Ads Api,Suds,Adwords Apiv201402,我有一个肥皂水对象: <class 'suds.sudsobject.AdGroupPage'> 我正在尝试使用Google Adwords API创建一个SET操作,以使用Adwords API mutate操作将adgroup出价更改为其他出价 这是我在PYTHON中的尝试: operations = [{ 'operator': 'SET', 'operand': { 'id': 38496562285, 'biddingStr

我有一个肥皂水对象:

<class 'suds.sudsobject.AdGroupPage'>
我正在尝试使用Google Adwords API创建一个
SET
操作,以使用Adwords API mutate操作将adgroup出价更改为其他出价

这是我在PYTHON中的尝试:

operations = [{
    'operator': 'SET',
    'operand': {
        'id': 38496562285,
        'biddingStrategyConfiguration': {
            'bids': [{
                'bid': {
                    'microAmount': 4560000
                    }
                }]
            }
        }
    }]
我的请求中的错误是:

suds.TypeNotFound: Type not found: 'bid'
下面是一个成功运作的简单示例:

operations = [{
      'operator': 'SET',
      'operand': {
          'id': ad_group_id,
          'status': 'PAUSED'
      }
  }]

我的问题是,我不知道如何处理suds响应中的
bids[]
语法。如何修改字典以使用空列表键?

看起来我必须包含一个名为
xsi_type
的内容。如果有人偶然发现这个问题,这就是我的
操作
对象的样子:

operations = [{
      'operator': 'SET',
      'operand': {
        'id': 38496562285,
        'biddingStrategyConfiguration': {
          'bids': [{
            'xsi_type': 'CpcBid',
            'bid': {'microAmount': 4560000}
            }]
          }
        }
      }]
这里是一个链接。它没有提到
xsi_类型
,但如果遇到类似
bids[]
的字段,您现在知道如何在操作中定义
xsi_类型

operations = [{
      'operator': 'SET',
      'operand': {
        'id': 38496562285,
        'biddingStrategyConfiguration': {
          'bids': [{
            'xsi_type': 'CpcBid',
            'bid': {'microAmount': 4560000}
            }]
          }
        }
      }]