#NEWLINE# def main( client , ad_group_id , criterion_id ) : #NEWLINE# #INDENT# ad_group_criterion_service = client . GetService ( 'AdGroupCriterionService' , version = 'v201509' ) #NEWLINE# operations = [ { #NEWLINE# #INDENT# 'operator' : 'REMOVE' , #NEWLINE# 'operand' : { #NEWLINE# #INDENT# 'xsi_type' : 'BiddableAdGroupCriterion' , #NEWLINE# 'adGroupId' : ad_group_id , #NEWLINE# 'criterion' : { #NEWLINE# #INDENT# 'id' : criterion_id , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ] #NEWLINE# result = ad_group_criterion_service . mutate ( operations ) #NEWLINE# for criterion in result [ 'value' ] : #NEWLINE# #INDENT# print ( ( "Ad group criterion with ad group id '%s', criterion id '%s', and type '%s' was deleted." % ( criterion [ 'adGroupId' ] , criterion [ 'criterion' ] [ 'id' ] , criterion [ 'criterion' ] [ 'Criterion.Type' ] ) ) )