def CreateCustomizerFeedItems(client, adgroup_ids, ad_customizer_feed):
 feed_item_service = client.GetService('FeedItemService')
 now = datetime.now()
 mars_date = datetime(now.year, now.month, 1, 0, 0)
 venus_date = datetime(now.year, now.month, 15, 0, 0)
 time_format = '%Y%m%d %H%M%S'
 feed_item_operations = [CreateFeedItemAddOperation('Mars', '$1234.56', mars_date.strftime(time_format), adgroup_ids[0], ad_customizer_feed), CreateFeedItemAddOperation('Venus', '$1450.00', venus_date.strftime(time_format), adgroup_ids[1], ad_customizer_feed)]
 response = feed_item_service.mutate(feed_item_operations)
 if ('value' in response):
  for feed_item in response['value']:
   print ('Added FeedItem with ID %d.' % feed_item['feedItemId'])
 else:
  raise errors.GoogleAdsError('No FeedItems were added.')

def CreateCustomizerFeedItems ( client , adgroup_ids , ad_customizer_feed ) : feed_item_service = client . GetService ( 'FeedItemService' ) now = datetime . now ( ) mars_date = datetime ( now . year , now . month , 1 , 0 , 0 ) venus_date = datetime ( now . year , now . month , 15 , 0 , 0 ) time_format = '%Y%m%d %H%M%S' feed_item_operations = [ CreateFeedItemAddOperation ( 'Mars' , '$1234.56' , mars_date . strftime ( time_format ) , adgroup_ids [ 0 ] , ad_customizer_feed ) , CreateFeedItemAddOperation ( 'Venus' , '$1450.00' , venus_date . strftime ( time_format ) , adgroup_ids [ 1 ] , ad_customizer_feed ) ] response = feed_item_service . mutate ( feed_item_operations ) if ( 'value' in response ) : for feed_item in response [ 'value' ] : print ( 'Added FeedItem with ID %d.' % feed_item [ 'feedItemId' ] ) else : raise errors . GoogleAdsError ( 'No FeedItems were added.' )
creates feeditems for the specified adgroups .