Module Expr Str ImportFrom alias FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr 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 SubscriptLoad NameLoad Index Str AugAssignAdd AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Break 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
N/A N/A This code example gets all audience segments.

To create audience segments, run create_audience_segments.py.
 googleads dfp main N/A N/A client N/A N/A N/A client N/A N/A N/A dfp DfpClient LoadFromStorage N/A audience_segment_service N/A N/A client GetService AudienceSegmentService version v201602 N/A statement N/A N/A dfp FilterStatement N/A True N/A N/A response N/A N/A audience_segment_service getAudienceSegmentsByStatement N/A N/A statement ToStatement N/A N/A results response N/A N/A segment N/A response N/A results N/A N/A N/A Audience segment with id '%s' and name '%s' of size %s was found. N/A N/A segment N/A id N/A segment N/A name N/A segment N/A size N/A N/A statement offset N/A dfp SUGGESTED_PAGE_LIMIT N/A N/A N/A N/A 
Number of results found: %s N/A response N/A totalResultSetSize 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