def CreateBiddingStrategy(client):
 bidding_strategy_service = client.GetService('BiddingStrategyService', version='v201607')
 shared_bidding_strategy = {'name': ('Maximize Clicks %s' % uuid.uuid4()), 'biddingScheme': {'xsi_type': 'TargetSpendBiddingScheme', 'bidCeiling': {'microAmount': '2000000'}}}
 operation = {'operator': 'ADD', 'operand': shared_bidding_strategy}
 response = bidding_strategy_service.mutate([operation])
 new_bidding_strategy = response['value'][0]
 print ("Shared bidding strategy with name '%s' and ID '%s' of type '%s'was created." % (new_bidding_strategy['name'], new_bidding_strategy['id'], new_bidding_strategy['biddingScheme']['BiddingScheme.Type']))
 return new_bidding_strategy

def CreateBiddingStrategy ( client ) : bidding_strategy_service = client . GetService ( 'BiddingStrategyService' , version = 'v201607' ) shared_bidding_strategy = { 'name' : ( 'Maximize Clicks %s' % uuid . uuid4 ( ) ) , 'biddingScheme' : { 'xsi_type' : 'TargetSpendBiddingScheme' , 'bidCeiling' : { 'microAmount' : '2000000' } } } operation = { 'operator' : 'ADD' , 'operand' : shared_bidding_strategy } response = bidding_strategy_service . mutate ( [ operation ] ) new_bidding_strategy = response [ 'value' ] [ 0 ] print ( "Shared bidding strategy with name '%s' and ID '%s' of type '%s'was created." % ( new_bidding_strategy [ 'name' ] , new_bidding_strategy [ 'id' ] , new_bidding_strategy [ 'biddingScheme' ] [ 'BiddingScheme.Type' ] ) ) return new_bidding_strategy
creates a bidding strategy object .