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 Dict Str Str Str Str Dict Str Str Str Dict Str Str Str Str 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 For NameStore SubscriptLoad NameLoad Index Str body Print BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str 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
N/A N/A This example deactivates all active line items custom fields.

To determine which custom fields exist, run get_all_custom_fields.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_field_service N/A N/A client GetService CustomFieldService version v201505 N/A values N/A N/A key value entityType N/A xsi_type value TextValue LINE_ITEM N/A key value isActive N/A xsi_type value BooleanValue true N/A query WHERE entityType = :entityType and isActive = :isActive N/A statement N/A N/A dfp FilterStatement query values N/A custom_fields_deactivated 0 N/A True N/A N/A response N/A N/A custom_field_service getCustomFieldsByStatement N/A N/A statement ToStatement N/A N/A results response N/A N/A custom_field N/A response N/A results N/A N/A N/A Custom field with ID '%s' and name '%s' will be deactivated. N/A N/A custom_field N/A id N/A custom_field N/A name N/A result N/A N/A custom_field_service performCustomFieldAction N/A xsi_type DeactivateCustomFields N/A N/A statement ToStatement N/A N/A result N/A N/A int N/A result N/A numChanges 0 N/A N/A custom_fields_deactivated 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 custom_fields_deactivated 0 N/A N/A N/A Number of custom fields deactivated: %s custom_fields_deactivated N/A N/A No custom fields were deactivated. 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