Module Expr Str ImportFrom alias FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore ListLoad Dict Str Str Str Str Str Str Dict Str Str Str Str Str Str Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body For NameStore NameLoad body Print BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str orelse Print Str Assign NameStore ListLoad Dict Str Str Str Str SubscriptLoad NameLoad Index Str Str Str Str Dict Str Str Str Str SubscriptLoad NameLoad Index Str Str Str Str Dict Str Str Str Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Str Str Dict Str Str Str Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Str Str Dict Str Str Str Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Str Str Dict Str Str Str Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body For NameStore NameLoad body Print BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str 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 creates new custom targeting keys and values.

To determine which custom targeting keys and values exist, run
get_all_custom_targeting_keys_and_values.py. To target these custom targeting
keys and values, run target_custom_criteria_example.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 main N/A N/A client N/A N/A N/A custom_targeting_service N/A N/A client GetService CustomTargetingService version v201511 N/A keys N/A N/A displayName name type gender g PREDEFINED N/A displayName name type car model c FREEFORM N/A displayName name type genre genre PREDEFINED N/A keys N/A N/A custom_targeting_service createCustomTargetingKeys keys N/A keys N/A N/A key keys N/A N/A N/A A custom targeting key with id '%s', name '%s', and display name '%s' was created. N/A N/A key N/A id N/A key N/A name N/A key N/A displayName N/A N/A No keys were created. N/A values N/A N/A customTargetingKeyId displayName name matchType N/A keys N/A id male 1 EXACT N/A customTargetingKeyId displayName name matchType N/A keys N/A id female 2 EXACT N/A customTargetingKeyId displayName name matchType N/A N/A keys N/A 1 N/A id honda civic honda civic EXACT N/A customTargetingKeyId displayName name matchType N/A N/A keys N/A 1 N/A id toyota toyota EXACT N/A customTargetingKeyId displayName name matchType N/A N/A keys N/A 2 N/A id comedy comedy EXACT N/A customTargetingKeyId displayName name matchType N/A N/A keys N/A 2 N/A id drama drama EXACT N/A values N/A N/A custom_targeting_service createCustomTargetingValues values N/A values N/A N/A value values N/A N/A N/A A custom targeting value with id '%s', belonging to key with id '%s', name '%s', and display name '%s' was created. N/A N/A value N/A id N/A value N/A customTargetingKeyId N/A value N/A name N/A value N/A displayName N/A N/A No values were created. 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