def CreateCustomizerFeed(client, feed_name):
 ad_customizer_feed_service = client.GetService('AdCustomizerFeedService')
 customizer_feed = {'feedName': feed_name, 'feedAttributes': [{'type': 'STRING', 'name': 'Name'}, {'type': 'STRING', 'name': 'Price'}, {'type': 'DATE_TIME', 'name': 'Date'}]}
 feed_service_operation = {'operator': 'ADD', 'operand': customizer_feed}
 response = ad_customizer_feed_service.mutate([feed_service_operation])
 if (response and ('value' in response)):
  feed = response['value'][0]
  feed_data = {'feedId': feed['feedId'], 'nameId': feed['feedAttributes'][0]['id'], 'priceId': feed['feedAttributes'][1]['id'], 'dateId': feed['feedAttributes'][2]['id']}
  print ("Feed with name '%s' and ID %s was added with:\n DCTB Name attribute ID %s and price attribute ID %s and date attributeID %s" % (feed['feedName'], feed['feedId'], feed_data['nameId'], feed_data['priceId'], feed_data['dateId']))
  return feed
 else:
  raise errors.GoogleAdsError('No feeds were added')

def CreateCustomizerFeed ( client , feed_name ) : ad_customizer_feed_service = client . GetService ( 'AdCustomizerFeedService' ) customizer_feed = { 'feedName' : feed_name , 'feedAttributes' : [ { 'type' : 'STRING' , 'name' : 'Name' } , { 'type' : 'STRING' , 'name' : 'Price' } , { 'type' : 'DATE_TIME' , 'name' : 'Date' } ] } feed_service_operation = { 'operator' : 'ADD' , 'operand' : customizer_feed } response = ad_customizer_feed_service . mutate ( [ feed_service_operation ] ) if ( response and ( 'value' in response ) ) : feed = response [ 'value' ] [ 0 ] feed_data = { 'feedId' : feed [ 'feedId' ] , 'nameId' : feed [ 'feedAttributes' ] [ 0 ] [ 'id' ] , 'priceId' : feed [ 'feedAttributes' ] [ 1 ] [ 'id' ] , 'dateId' : feed [ 'feedAttributes' ] [ 2 ] [ 'id' ] } print ( "Feed with name '%s' and ID %s was added with:\n DCTB Name attribute ID %s and price attribute ID %s and date attributeID %s" % ( feed [ 'feedName' ] , feed [ 'feedId' ] , feed_data [ 'nameId' ] , feed_data [ 'priceId' ] , feed_data [ 'dateId' ] ) ) return feed else : raise errors . GoogleAdsError ( 'No feeds were added' )
creates a new adcustomizerfeed .