<s> """<STR_LIT>""" <EOL> import uuid <EOL> from googleads import dfp <EOL> HIERARCHY_LEVEL_ONE_KEY_ID = '<STR_LIT>' <EOL> HIERARCHY_LEVEL_TWO_KEY_ID = '<STR_LIT>' <EOL> def main ( client , hierarchy_level_one_key_id , hierarchy_level_two_key_id ) : <EOL> content_metadata_key_hierarchy_service = client . GetService ( <EOL> '<STR_LIT>' , version = '<STR_LIT>' ) <EOL> hierarchy_level_1 = { <EOL> '<STR_LIT>' : hierarchy_level_one_key_id , <EOL> '<STR_LIT>' : '<STR_LIT:1>' <EOL> } <EOL> hierarchy_level_2 = { <EOL> '<STR_LIT>' : hierarchy_level_two_key_id , <EOL> '<STR_LIT>' : '<STR_LIT:2>' <EOL> } <EOL> hierarchy_levels = [ hierarchy_level_1 , hierarchy_level_2 ] <EOL> content_metadata_key_hierarchy = { <EOL> '<STR_LIT:name>' : '<STR_LIT>' % uuid . uuid4 ( ) , <EOL> '<STR_LIT>' : hierarchy_levels <EOL> } <EOL> content_metadata_key_hierarchies = ( <EOL> content_metadata_key_hierarchy_service <EOL> . createContentMetadataKeyHierarchies ( [ content_metadata_key_hierarchy ] ) ) <EOL> for content_metadata_key_hierarchy in content_metadata_key_hierarchies : <EOL> print ( '<STR_LIT>' <EOL> '<STR_LIT>' % ( content_metadata_key_hierarchy [ '<STR_LIT:id>' ] , <EOL> content_metadata_key_hierarchy [ '<STR_LIT:name>' ] ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> dfp_client = dfp . DfpClient . LoadFromStorage ( ) <EOL> main ( dfp_client , HIERARCHY_LEVEL_ONE_KEY_ID , HIERARCHY_LEVEL_TWO_KEY_ID ) </s>
