<s> """<STR_LIT>""" <EOL> from googleads import dfp <EOL> PLACEMENT_ID = '<STR_LIT>' <EOL> def main ( client , placement_id ) : <EOL> placement_service = client . GetService ( '<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>' : placement_id <EOL> } <EOL> } ] <EOL> query = '<STR_LIT>' <EOL> statement = dfp . FilterStatement ( query , values , <NUM_LIT:1> ) <EOL> placements = placement_service . getPlacementsByStatement ( <EOL> statement . ToStatement ( ) ) <EOL> for placement in placements : <EOL> print ( '<STR_LIT>' <EOL> '<STR_LIT>' % ( placement [ '<STR_LIT:id>' ] , placement [ '<STR_LIT:name>' ] , <EOL> placement [ '<STR_LIT:status>' ] ) ) <EOL> result = placement_service . performPlacementAction ( <EOL> { '<STR_LIT>' : '<STR_LIT>' } , statement . ToStatement ( ) ) <EOL> if result and int ( result [ '<STR_LIT>' ] ) > <NUM_LIT:0> : <EOL> print '<STR_LIT>' % 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 , PLACEMENT_ID ) </s>
