def CreateSharedBudget(client):
 budget_service = client.GetService('BudgetService', version='v201609')
 budget = {'name': ('Shared Interplanetary Budget #%s' % uuid.uuid4()), 'amount': {'microAmount': '2000000'}, 'deliveryMethod': 'STANDARD', 'isExplicitlyShared': 'true'}
 operation = {'operator': 'ADD', 'operand': budget}
 response = budget_service.mutate([operation])
 return response['value'][0]

def CreateSharedBudget ( client ) : budget_service = client . GetService ( 'BudgetService' , version = 'v201609' ) budget = { 'name' : ( 'Shared Interplanetary Budget #%s' % uuid . uuid4 ( ) ) , 'amount' : { 'microAmount' : '2000000' } , 'deliveryMethod' : 'STANDARD' , 'isExplicitlyShared' : 'true' } operation = { 'operator' : 'ADD' , 'operand' : budget } response = budget_service . mutate ( [ operation ] ) return response [ 'value' ] [ 0 ]
creates an explicit budget to be used only to create the campaign .