<s> """<STR_LIT>""" <EOL> from googleads import dfp <EOL> USER_ID = '<STR_LIT>' <EOL> def main ( client , user_id ) : <EOL> user_team_association_service = client . GetService ( <EOL> '<STR_LIT>' , version = '<STR_LIT>' ) <EOL> values = [ { <EOL> '<STR_LIT:key>' : '<STR_LIT>' , <EOL> '<STR_LIT:value>' : { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:value>' : user_id <EOL> } <EOL> } ] <EOL> query = '<STR_LIT>' <EOL> statement = dfp . FilterStatement ( query , values ) <EOL> response = user_team_association_service . getUserTeamAssociationsByStatement ( <EOL> statement . ToStatement ( ) ) <EOL> user_team_associations = response [ '<STR_LIT>' ] if '<STR_LIT>' in response else [ ] <EOL> for user_team_association in user_team_associations : <EOL> print ( '<STR_LIT>' <EOL> '<STR_LIT>' % ( user_team_association [ '<STR_LIT>' ] , <EOL> user_team_association [ '<STR_LIT>' ] ) ) <EOL> print ( '<STR_LIT>' % <EOL> len ( user_team_associations ) ) <EOL> result = user_team_association_service . performUserTeamAssociationAction ( <EOL> { '<STR_LIT>' : '<STR_LIT>' } , <EOL> { '<STR_LIT>' : query , '<STR_LIT>' : values } ) <EOL> if result and int ( result [ '<STR_LIT>' ] ) > <NUM_LIT:0> : <EOL> print ( '<STR_LIT>' <EOL> % result [ '<STR_LIT>' ] ) <EOL> else : <EOL> print '<STR_LIT>' <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> dfp_client = dfp . DfpClient . LoadFromStorage ( ) <EOL> main ( dfp_client , USER_ID ) </s>
