<s> """<STR_LIT>""" <EOL> from googleads import dfp <EOL> LABEL_ID = '<STR_LIT>' <EOL> def main ( client , label_id ) : <EOL> creative_wrapper_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>' : label_id <EOL> } <EOL> } , { <EOL> '<STR_LIT:key>' : '<STR_LIT:status>' , <EOL> '<STR_LIT:value>' : { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:value>' : '<STR_LIT>' <EOL> } <EOL> } ] <EOL> query = '<STR_LIT>' <EOL> statement = dfp . FilterStatement ( query , values ) <EOL> creative_wrappers_deactivated = <NUM_LIT:0> <EOL> while True : <EOL> response = creative_wrapper_service . getCreativeWrappersByStatement ( <EOL> statement . ToStatement ( ) ) <EOL> if '<STR_LIT>' in response : <EOL> for creative_wrapper in response [ '<STR_LIT>' ] : <EOL> print ( '<STR_LIT>' <EOL> '<STR_LIT>' % <EOL> ( creative_wrapper [ '<STR_LIT:id>' ] , <EOL> creative_wrapper [ '<STR_LIT>' ] , <EOL> creative_wrapper [ '<STR_LIT:status>' ] ) ) <EOL> result = creative_wrapper_service . performCreativeWrapperAction ( <EOL> { '<STR_LIT>' : '<STR_LIT>' } , statement . ToStatement ( ) ) <EOL> if result and int ( result [ '<STR_LIT>' ] ) > <NUM_LIT:0> : <EOL> creative_wrappers_deactivated += int ( result [ '<STR_LIT>' ] ) <EOL> statement . offset += dfp . SUGGESTED_PAGE_LIMIT <EOL> else : <EOL> break <EOL> if creative_wrappers_deactivated > <NUM_LIT:0> : <EOL> print ( '<STR_LIT>' % <EOL> creative_wrappers_deactivated ) <EOL> else : <EOL> print '<STR_LIT>' <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> dfp_client = dfp . DfpClient . LoadFromStorage ( ) <EOL> main ( dfp_client , LABEL_ID ) </s>
