<s> """<STR_LIT>""" <EOL> from googleads import dfp <EOL> ACTIVITY_GROUP_ID = '<STR_LIT>' <EOL> ADVERTISER_COMPANY_ID = '<STR_LIT>' <EOL> def main ( client , activity_group_id , advertiser_company_id ) : <EOL> activity_group_service = client . GetService ( '<STR_LIT>' , <EOL> version = '<STR_LIT>' ) <EOL> values = [ { <EOL> '<STR_LIT:key>' : '<STR_LIT>' , <EOL> '<STR_LIT:value>' : { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:value>' : activity_group_id <EOL> } <EOL> } ] <EOL> query = '<STR_LIT>' <EOL> statement = dfp . FilterStatement ( query , values , <NUM_LIT:1> ) <EOL> response = activity_group_service . getActivityGroupsByStatement ( <EOL> statement . ToStatement ( ) ) <EOL> if '<STR_LIT>' in response : <EOL> updated_activity_groups = [ ] <EOL> for activity_group in response [ '<STR_LIT>' ] : <EOL> activity_group [ '<STR_LIT>' ] . append ( advertiser_company_id ) <EOL> updated_activity_groups . append ( activity_group ) <EOL> activity_groups = activity_group_service . updateActivityGroups ( <EOL> updated_activity_groups ) <EOL> for activity_group in activity_groups : <EOL> print ( ( '<STR_LIT>' ) <EOL> % ( activity_group [ '<STR_LIT:id>' ] , activity_group [ '<STR_LIT:name>' ] ) ) <EOL> else : <EOL> print '<STR_LIT>' <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> dfp_client = dfp . DfpClient . LoadFromStorage ( ) <EOL> main ( dfp_client , ACTIVITY_GROUP_ID , ADVERTISER_COMPANY_ID ) </s>
