def CreateFeedItemAddOperation(name, price, date, adgroup_id, ad_customizer_feed):
 feed_item = {'feedId': ad_customizer_feed['feedId'], 'adGroupTargeting': {'TargetingAdGroupId': adgroup_id}, 'attributeValues': [{'feedAttributeId': ad_customizer_feed['feedAttributes'][0]['id'], 'stringValue': name}, {'feedAttributeId': ad_customizer_feed['feedAttributes'][1]['id'], 'stringValue': price}, {'feedAttributeId': ad_customizer_feed['feedAttributes'][2]['id'], 'stringValue': date}]}
 return {'operator': 'ADD', 'operand': feed_item}

def CreateFeedItemAddOperation ( name , price , date , adgroup_id , ad_customizer_feed ) : feed_item = { 'feedId' : ad_customizer_feed [ 'feedId' ] , 'adGroupTargeting' : { 'TargetingAdGroupId' : adgroup_id } , 'attributeValues' : [ { 'feedAttributeId' : ad_customizer_feed [ 'feedAttributes' ] [ 0 ] [ 'id' ] , 'stringValue' : name } , { 'feedAttributeId' : ad_customizer_feed [ 'feedAttributes' ] [ 1 ] [ 'id' ] , 'stringValue' : price } , { 'feedAttributeId' : ad_customizer_feed [ 'feedAttributes' ] [ 2 ] [ 'id' ] , 'stringValue' : date } ] } return { 'operator' : 'ADD' , 'operand' : feed_item }
creates a feeditemoperation .