<s> """<STR_LIT>""" <EOL> from googleads import dfp <EOL> RATE_CARD_ID = '<STR_LIT>' <EOL> def main ( client , rate_card_id ) : <EOL> base_rate_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>' : rate_card_id <EOL> } <EOL> } ] <EOL> query = '<STR_LIT>' <EOL> statement = dfp . FilterStatement ( query , values ) <EOL> while True : <EOL> response = base_rate_service . getBaseRatesByStatement ( <EOL> statement . ToStatement ( ) ) <EOL> if '<STR_LIT>' in response : <EOL> for base_rate in response [ '<STR_LIT>' ] : <EOL> print ( '<STR_LIT>' <EOL> '<STR_LIT>' % ( <EOL> base_rate [ '<STR_LIT:id>' ] , <EOL> dfp . DfpClassType ( base_rate ) , <EOL> base_rate [ '<STR_LIT>' ] ) ) <EOL> statement . offset += dfp . SUGGESTED_PAGE_LIMIT <EOL> else : <EOL> break <EOL> print '<STR_LIT>' % response [ '<STR_LIT>' ] <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> dfp_client = dfp . DfpClient . LoadFromStorage ( ) <EOL> main ( dfp_client , RATE_CARD_ID ) </s>
