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 Assign NameStore Num While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareIn Str NameLoad body Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str Assign NameStore BinOpMod Str Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Num body AugAssignAdd NameStore Call NameLoad SubscriptLoad NameLoad Index Str AugAssignAdd AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Break If CompareGt NameLoad Num body Print BinOpMod Str NameLoad orelse Print 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 example deletes custom targeting values for a given custom targeting
key.

To determine which custom targeting keys and values exist, run
get_all_custom_targeting_keys_and_values.py.

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 KEY_ID INSERT_CUSTOM_TARGETING_KEY_ID_HERE main N/A N/A client key_id N/A N/A N/A custom_targeting_service N/A N/A client GetService CustomTargetingService version v201508 N/A filter_values N/A N/A key value keyId N/A xsi_type value NumberValue key_id N/A query WHERE customTargetingKeyId = :keyId N/A statement N/A N/A dfp FilterStatement query filter_values N/A deleted_custom_targeting_values 0 N/A True N/A N/A response N/A N/A custom_targeting_service getCustomTargetingValuesByStatement N/A N/A statement ToStatement N/A N/A results response N/A N/A value_ids N/A N/A value N/A id N/A value N/A response N/A results N/A action N/A xsi_type DeleteCustomTargetingValues N/A value_query N/A WHERE customTargetingKeyId = :keyId AND id IN (%s) N/A N/A ,  join value_ids N/A value_statement N/A N/A dfp FilterStatement value_query filter_values N/A result N/A N/A custom_targeting_service performCustomTargetingValueAction action N/A N/A value_statement ToStatement N/A N/A result N/A N/A int N/A result N/A numChanges 0 N/A N/A deleted_custom_targeting_values N/A int N/A result N/A numChanges N/A N/A statement offset N/A dfp SUGGESTED_PAGE_LIMIT N/A N/A N/A N/A deleted_custom_targeting_values 0 N/A N/A N/A Number of custom targeting values deleted: %s deleted_custom_targeting_values N/A N/A No custom targeting values were deleted. 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 KEY_ID