Module Expr Str ImportFrom alias Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore ListLoad Dict Str Str Str Dict Str Str Str NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Index Num Assign NameStore IfExp CompareIn Str NameLoad SubscriptLoad NameLoad Index Str NameLoad If NameLoad body For NameStore NameLoad body Print BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Dict Str Str Call AttributeLoad NameLoad attr Index Num Print BinOpMod Str SubscriptLoad NameLoad Index Str decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad
N/A N/A This code example deletes content metadata key hierarchies.

To determine which content metadata key hierarchies exist, run
get_all_content_metadata_key_hierarchies.py.

This feature is only available to DFP video publishers.

The LoadFromStorage method is pulling credentials and properties from a
"googleads.yaml" file. By default, it looks for this file in your home
directory. For more information, see the "Caching authentication information"
section of our README.

 googleads dfp N/A CONTENT_METADATA_KEY_HIERARCHY_ID INSERT_CONTENT_METADATA_KEY_HIERARCHY_ID_HERE main N/A N/A client content_metadata_key_hierarchy_id N/A N/A N/A content_metadata_key_hierarchy_service N/A N/A client GetService ContentMetadataKeyHierarchyService version v201508 N/A values N/A N/A key value id N/A xsi_type value NumberValue content_metadata_key_hierarchy_id N/A query WHERE id = :id ORDER BY id ASC N/A statement N/A N/A dfp FilterStatement query values 1 N/A response N/A N/A N/A content_metadata_key_hierarchy_service getContentMetadataKeyHierarchiesByStatement N/A N/A statement ToStatement N/A 0 N/A content_metadata_key_hierarchies N/A N/A results response N/A response N/A results None N/A content_metadata_key_hierarchies N/A N/A content_metadata_key_hierarchy content_metadata_key_hierarchies N/A N/A N/A Content metadata key hierarchy with ID '%s' and name '%s' will be deleted. N/A N/A content_metadata_key_hierarchy N/A id N/A content_metadata_key_hierarchy N/A name N/A result N/A N/A N/A content_metadata_key_hierarchy_service performContentMetadataKeyHierarchyAction N/A type DeleteContentMetadataKeyHierarchies N/A N/A statement ToStatement N/A 0 N/A N/A Number of content metadata key hierarchies deleted: %s N/A result N/A numChanges N/A N/A N/A __name__ __main__ N/A N/A dfp_client N/A N/A N/A dfp DfpClient LoadFromStorage N/A N/A main dfp_client CONTENT_METADATA_KEY_HIERARCHY_ID