Module Expr Str Import alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Str Assign NameStore ListLoad Dict Str Str Str Dict Str Str Str NameLoad Assign NameStore Dict Str Str Str NameLoad Assign NameStore Dict Str Dict Str Str Str Str Str ListLoad Str Str Str ListLoad Str Str Str Str Str Str Str NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print BinOpMod Str NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Print BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr 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 runs a report equal to the "Whole network report" on the
DFP website.
 N/A tempfile googleads dfp googleads errors main N/A N/A client N/A N/A N/A network_service N/A N/A client GetService NetworkService version v201508 N/A report_downloader N/A N/A client GetDataDownloader version v201508 N/A root_ad_unit_id N/A N/A N/A network_service getCurrentNetwork N/A effectiveRootAdUnitId N/A values N/A N/A key value parent_ad_unit_id N/A xsi_type value NumberValue root_ad_unit_id N/A filter_statement N/A query values WHERE PARENT_AD_UNIT_ID = :parent_ad_unit_id values N/A report_job N/A reportQuery N/A dimensions adUnitView columns dateRangeType statement N/A DATE AD_UNIT_NAME HIERARCHICAL N/A AD_SERVER_IMPRESSIONS AD_SERVER_CLICKS DYNAMIC_ALLOCATION_INVENTORY_LEVEL_IMPRESSIONS DYNAMIC_ALLOCATION_INVENTORY_LEVEL_CLICKS TOTAL_INVENTORY_LEVEL_IMPRESSIONS TOTAL_INVENTORY_LEVEL_CPM_AND_CPC_REVENUE LAST_WEEK filter_statement N/A N/A N/A report_job_id N/A N/A report_downloader WaitForReport report_job N/A N/A N/A N/A errors DfpReportError N/A e N/A N/A N/A Failed to generate report. Error was: %s e N/A export_format CSV_DUMP N/A report_file N/A N/A tempfile NamedTemporaryFile suffix .csv.gz delete False N/A N/A N/A report_downloader DownloadReportToFile report_job_id export_format report_file N/A N/A N/A report_file close N/A N/A Report job with id '%s' downloaded to:
%s N/A report_job_id N/A report_file name 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