<s> """<STR_LIT>""" <EOL> from googleads import dfp <EOL> EXCHANGE_RATE_ID = '<STR_LIT>' <EOL> def main ( client , exchange_rate_id ) : <EOL> exchange_rate_service = client . GetService ( '<STR_LIT>' , <EOL> version = '<STR_LIT>' ) <EOL> values = [ { <EOL> '<STR_LIT:key>' : '<STR_LIT:id>' , <EOL> '<STR_LIT:value>' : { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:value>' : exchange_rate_id <EOL> } <EOL> } ] <EOL> query = '<STR_LIT>' <EOL> statement = dfp . FilterStatement ( query , values , <NUM_LIT:1> ) <EOL> response = exchange_rate_service . getExchangeRatesByStatement ( <EOL> statement . ToStatement ( ) ) <EOL> if '<STR_LIT>' in response : <EOL> exchange_rate = response [ '<STR_LIT>' ] [ <NUM_LIT:0> ] <EOL> exchange_rate [ '<STR_LIT>' ] = long ( <NUM_LIT> ) <EOL> exchange_rates = exchange_rate_service . updateExchangeRates ( [ exchange_rate ] ) <EOL> if exchange_rates : <EOL> for exchange_rate in exchange_rates : <EOL> print ( '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' % ( exchange_rate [ '<STR_LIT:id>' ] , <EOL> exchange_rate [ '<STR_LIT>' ] , <EOL> exchange_rate [ '<STR_LIT>' ] , <EOL> ( float ( exchange_rate [ '<STR_LIT>' ] ) / <EOL> <NUM_LIT> ) ) ) <EOL> else : <EOL> print '<STR_LIT>' <EOL> else : <EOL> print '<STR_LIT>' <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> dfp_client = dfp . DfpClient . LoadFromStorage ( ) <EOL> main ( dfp_client , EXCHANGE_RATE_ID ) </s>
