def BuildCampaignOperations(batch_job_helper, budget_operations, number_of_campaigns=1):
 budget_id = budget_operations[0]['operand']['budgetId']
 campaign_operations = [{'xsi_type': 'CampaignOperation', 'operand': {'name': ('Batch Campaign #%s' % uuid.uuid4()), 'status': 'PAUSED', 'id': batch_job_helper.GetId(), 'advertisingChannelType': 'SEARCH', 'budget': {'budgetId': budget_id}, 'biddingStrategyConfiguration': {'biddingStrategyType': 'MANUAL_CPC'}}, 'operator': 'ADD'} for _ in range(number_of_campaigns)]
 return campaign_operations

def BuildCampaignOperations ( batch_job_helper , budget_operations , number_of_campaigns = 1 ) : budget_id = budget_operations [ 0 ] [ 'operand' ] [ 'budgetId' ] campaign_operations = [ { 'xsi_type' : 'CampaignOperation' , 'operand' : { 'name' : ( 'Batch Campaign #%s' % uuid . uuid4 ( ) ) , 'status' : 'PAUSED' , 'id' : batch_job_helper . GetId ( ) , 'advertisingChannelType' : 'SEARCH' , 'budget' : { 'budgetId' : budget_id } , 'biddingStrategyConfiguration' : { 'biddingStrategyType' : 'MANUAL_CPC' } } , 'operator' : 'ADD' } for _ in range ( number_of_campaigns ) ] return campaign_operations
builds the operations needed to create a new campaign .