<s> """<STR_LIT>""" <EOL> from googleads import dfp <EOL> PROPOSAL_ID = '<STR_LIT>' <EOL> def main ( client , proposal_id ) : <EOL> proposal_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>' : proposal_id <EOL> } <EOL> } ] <EOL> query = '<STR_LIT>' <EOL> statement = dfp . FilterStatement ( query , values ) <EOL> proposals_approved = <NUM_LIT:0> <EOL> while True : <EOL> response = proposal_service . getProposalsByStatement ( statement . ToStatement ( ) ) <EOL> if '<STR_LIT>' in response : <EOL> for proposal in response [ '<STR_LIT>' ] : <EOL> print ( '<STR_LIT>' <EOL> '<STR_LIT>' % ( proposal [ '<STR_LIT:id>' ] , proposal [ '<STR_LIT:name>' ] , <EOL> proposal [ '<STR_LIT:status>' ] ) ) <EOL> result = proposal_service . performProposalAction ( <EOL> { '<STR_LIT>' : '<STR_LIT>' } , statement . ToStatement ( ) ) <EOL> if result and int ( result [ '<STR_LIT>' ] ) > <NUM_LIT:0> : <EOL> proposals_approved += int ( result [ '<STR_LIT>' ] ) <EOL> statement . offset += dfp . SUGGESTED_PAGE_LIMIT <EOL> else : <EOL> break <EOL> if proposals_approved > <NUM_LIT:0> : <EOL> print '<STR_LIT>' % proposals_approved <EOL> else : <EOL> print '<STR_LIT>' <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> dfp_client = dfp . DfpClient . LoadFromStorage ( ) <EOL> main ( dfp_client , PROPOSAL_ID ) </s>
