#NEWLINE# def main( client , campaign_id1 , campaign_id2 , label_id ) : #NEWLINE# #INDENT# campaign_service = client . GetService ( 'CampaignService' , version = 'v201509' ) #NEWLINE# operations = [ { #NEWLINE# #INDENT# 'operator' : 'ADD' , #NEWLINE# 'operand' : { #NEWLINE# #INDENT# 'campaignId' : campaign_id1 , #NEWLINE# 'labelId' : label_id , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'operator' : 'ADD' , #NEWLINE# 'operand' : { #NEWLINE# #INDENT# 'campaignId' : campaign_id2 , #NEWLINE# 'labelId' : label_id , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ] #NEWLINE# result = campaign_service . mutateLabel ( operations ) #NEWLINE# for label in result [ 'value' ] : #NEWLINE# #INDENT# print ( ( "CampaignLabel with campaignId '%s' and labelId '%s' was added." % ( label [ 'campaignId' ] , label [ 'labelId' ] ) ) )