def BuildAdGroupCriterionOperations(adgroup_id):
 criterion_operations = [{'xsi_type': 'AdGroupCriterionOperation', 'operand': {'xsi_type': 'BiddableAdGroupCriterion', 'adGroupId': adgroup_id, 'criterion': {'xsi_type': 'Keyword', 'text': ('mars%s%s' % (uuid.uuid4(), ('!!!' if ((i % 10) == 0) else ''))), 'matchType': 'BROAD'}}, 'operator': 'ADD'} for i in range(KEYWORD_COUNT)]
 return criterion_operations

def BuildAdGroupCriterionOperations ( adgroup_id ) : criterion_operations = [ { 'xsi_type' : 'AdGroupCriterionOperation' , 'operand' : { 'xsi_type' : 'BiddableAdGroupCriterion' , 'adGroupId' : adgroup_id , 'criterion' : { 'xsi_type' : 'Keyword' , 'text' : ( 'mars%s%s' % ( uuid . uuid4 ( ) , ( '!!!' if ( ( i % 10 ) == 0 ) else '' ) ) ) , 'matchType' : 'BROAD' } } , 'operator' : 'ADD' } for i in range ( KEYWORD_COUNT ) ] return criterion_operations
builds the operations adding a keyword criterion to each adgroup .