Module Expr Str ImportFrom alias FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AugAssignAdd AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Break If NameLoad body Assign NameStore Dict Assign NameStore BinOpMod Str Call AttributeLoad Str attr ListComp Call NameLoad SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareIn Str NameLoad body For NameStore NameLoad body For NameStore SubscriptLoad NameLoad Index Str body If CompareEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body If CompareNotIn SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Str ListLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Str attr NameLoad AugAssignAdd AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Break For NameStore NameLoad body Print BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If CompareIn SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr body For NameStore SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Str body Print BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str orelse Print Str decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad
N/A N/A This example gets all custom targeting keys and the values.

To create custom targeting keys and values, run
create_custom_targeting_keys_and_values.py. googleads dfp main N/A N/A client N/A N/A N/A custom_targeting_service N/A N/A client GetService CustomTargetingService version v201505 N/A targeting_key_statement N/A N/A dfp FilterStatement N/A all_keys N/A N/A True N/A N/A response N/A N/A custom_targeting_service getCustomTargetingKeysByStatement N/A N/A targeting_key_statement ToStatement N/A N/A results response N/A N/A N/A N/A all_keys extend N/A response N/A results N/A N/A targeting_key_statement offset N/A dfp SUGGESTED_PAGE_LIMIT N/A N/A N/A all_keys N/A N/A key_value_map N/A N/A query N/A WHERE customTargetingKeyId IN (%s) N/A N/A ,  join N/A N/A str N/A key N/A id N/A key all_keys N/A targeting_value_statement N/A N/A dfp FilterStatement query N/A True N/A N/A response N/A N/A custom_targeting_service getCustomTargetingValuesByStatement N/A N/A targeting_value_statement ToStatement N/A N/A results response N/A N/A key all_keys N/A N/A value N/A response N/A results N/A N/A N/A N/A key N/A id N/A value N/A customTargetingKeyId N/A N/A N/A N/A key N/A id N/A N/A key_value_map keys N/A N/A N/A key_value_map N/A N/A key N/A id N/A N/A N/A N/A N/A key_value_map N/A N/A key N/A id append value N/A N/A targeting_value_statement offset N/A dfp SUGGESTED_PAGE_LIMIT N/A N/A N/A key all_keys N/A N/A N/A Custom targeting key with id '%s', name '%s', display name '%s', and type '%s' was found. N/A N/A key N/A id N/A key N/A name N/A key N/A displayName N/A key N/A type N/A N/A N/A key N/A id N/A N/A key_value_map keys N/A N/A value N/A key_value_map N/A N/A key N/A id N/A N/A N/A 	Custom targeting value with id '%s', name '%s', and display name '%s' was found. N/A N/A value N/A id N/A value N/A name N/A value N/A displayName N/A N/A No keys were found. 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