def CreateCampaignWithBiddingStrategy(client, bidding_strategy_id, budget_id):
 campaign_service = client.GetService('CampaignService', version='v201605')
 campaign = {'name': ('Interplanetary Cruise #%s' % uuid.uuid4()), 'budget': {'budgetId': budget_id}, 'biddingStrategyConfiguration': {'biddingStrategyId': bidding_strategy_id}, 'advertisingChannelType': 'SEARCH', 'networkSetting': {'targetGoogleSearch': 'true', 'targetSearchNetwork': 'true', 'targetContentNetwork': 'true'}}
 operation = {'operator': 'ADD', 'operand': campaign}
 response = campaign_service.mutate([operation])
 new_campaign = response['value'][0]
 print ("Campaign with name '%s', ID '%s' and bidding scheme ID '%s' was created." % (new_campaign['name'], new_campaign['id'], new_campaign['biddingStrategyConfiguration']['biddingStrategyId']))
 return new_campaign

def CreateCampaignWithBiddingStrategy ( client , bidding_strategy_id , budget_id ) : campaign_service = client . GetService ( 'CampaignService' , version = 'v201605' ) campaign = { 'name' : ( 'Interplanetary Cruise #%s' % uuid . uuid4 ( ) ) , 'budget' : { 'budgetId' : budget_id } , 'biddingStrategyConfiguration' : { 'biddingStrategyId' : bidding_strategy_id } , 'advertisingChannelType' : 'SEARCH' , 'networkSetting' : { 'targetGoogleSearch' : 'true' , 'targetSearchNetwork' : 'true' , 'targetContentNetwork' : 'true' } } operation = { 'operator' : 'ADD' , 'operand' : campaign } response = campaign_service . mutate ( [ operation ] ) new_campaign = response [ 'value' ] [ 0 ] print ( "Campaign with name '%s', ID '%s' and bidding scheme ID '%s' was created." % ( new_campaign [ 'name' ] , new_campaign [ 'id' ] , new_campaign [ 'biddingStrategyConfiguration' ] [ 'biddingStrategyId' ] ) ) return new_campaign
create a campaign with a shared bidding strategy .