none
bing ads api status none RRS feed

  • Question

  • Trying to use bing ads api with python sdk, get through the authentication but it always complains that NoneType has no attribute report_download_url, here is the full stack trace:

    Traceback (most recent call last):
      File "/Users/purecarscomputer/PycharmProjects/GoogleAdwordsForPositionControl/bing/bing_auth.py", line 200, in <module>
        submit_and_download(report_request)
      File "/Users/purecarscomputer/PycharmProjects/GoogleAdwordsForPositionControl/bing/bing_auth.py", line 173, in submit_and_download
        timeout_in_milliseconds=3600000
      File "/Users/purecarscomputer/anaconda/envs/GoogleAdwordsForPositionControl/lib/python3.5/site-packages/bingads/v11/reporting/reporting_operation.py", line 83, in download_result_file
        url = self.final_status.report_download_url
    AttributeError: 'NoneType' object has no attribute 'report_download_url'

    Can somebody kindly point out what could be the issue?

    This is how my report_request looks like if it helps:

    (KeywordPerformanceReportRequest){
       ExcludeColumnHeaders = None
       ExcludeReportFooter = None
       ExcludeReportHeader = None
       Format = "Csv"
       Language = "English"
       ReportName = "My Keyword Performance Report"
       ReturnOnlyCompleteData = False
       Aggregation = "Daily"
       Columns = 
          (ArrayOfKeywordPerformanceReportColumn){
             KeywordPerformanceReportColumn[] = 
                
                "TimePeriod",
                "AccountId",
                "CampaignId",
                "Keyword",
                "KeywordId",
                "DeviceType",
                "BidMatchType",
                "Clicks",
                "Impressions",
                "Ctr",
                "AverageCpc",
                "Spend",
                "QualityScore",,
          }
       Filter = 
          (KeywordPerformanceReportFilter){
             AccountStatus = None
             AdDistribution = None
             AdGroupStatus = None
             AdRelevance = 
                (ArrayOfint){
                   int[] = <empty>
                }
             AdType = None
             BidMatchType = None
             BidStrategyType = None
             CampaignStatus = None
             DeliveredMatchType = None
             DeviceType = None
             ExpectedCtr = 
                (ArrayOfint){
                   int[] = <empty>
                }
             KeywordStatus = None
             Keywords = 
                (ArrayOfstring){
                   string[] = <empty>
                }
             LandingPageExperience = 
                (ArrayOfint){
                   int[] = <empty>
                }
             LanguageCode = 
                (ArrayOfstring){
                   string[] = <empty>
                }
             QualityScore = 
                (ArrayOfint){
                   int[] = <empty>
                }
          }
       MaxRows = None
       Scope = 
          (AccountThroughAdGroupReportScope){
             AccountIds = 
                (ArrayOflong){
                   long[] = <empty>
                }
             AdGroups = 
                (ArrayOfAdGroupReportScope){
                   AdGroupReportScope[] = <empty>
                }
             Campaigns = 
                (ArrayOfCampaignReportScope){
                   CampaignReportScope[] = <empty>
                }
          }
       Sort = 
          (ArrayOfKeywordPerformanceReportSort){
             KeywordPerformanceReportSort[] = <empty>
          }
       Time = 
          (ReportTime){
             CustomDateRangeEnd = 
                (Date){
                   Day = 31
                   Month = 12
                   Year = 2016
                }
             CustomDateRangeStart = 
                (Date){
                   Day = 1
                   Month = 1
                   Year = 2016
                }
             PredefinedTime = None
          }
     }

    Xiaoyun Yang



    • Edited by Psidom Friday, July 28, 2017 3:35 PM
    • Moved by Dave PatrickMVP Saturday, July 29, 2017 2:59 AM
    Friday, July 28, 2017 3:23 PM

Answers

All replies