Bing Ads API错误:CampaignPerformanceReportRequest - 空结果集 [英] Bing Ads API Bug: CampaignPerformanceReportRequest - Empty Result Set

查看:108
本文介绍了Bing Ads API错误:CampaignPerformanceReportRequest - 空结果集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Bing Ads Team,

Hello Bing Ads Team,

如果我是,我道歉将此信息发布到错误的位置 - 我在查找特定于Bing Ads API的广告时遇到了一些问题。

I apologize if I am posting this to the wrong location- I was having some trouble finding a thread specific to the Bing Ads API.

我在从CampaignPerformanceReportRequest报告中提取数据时遇到了一些问题。我通过API提交了一个请求,该请求会在自定义
日期范围内提取"CampaignId","支出","点击次数","展示次数","转化次数"和"状态"列。我注意到,如果在所选日期范围内展示次数等于零(点击次数,支出和转化次数也等于零),则结果表中不会返回任何数据。 

I am having some issues pulling data from the CampaignPerformanceReportRequest report. I am, through the API, submitting a request which pulls the columns 'CampaignId', 'Spend', 'Clicks', 'Impressions', 'Conversions', and 'Status' over a custom date range. I have noticed that when the impressions are equal to zero (clicks, spend, and conversions are equal zero too in this case) over the selected date range, no data is returned in the result Table. 

例如,以下是来自请求的XML响应   展示次数:

For example, here is the XML response from a request with impressions:

object(SimpleXMLElement)#56(4){

  [" @ attributes"] =& gt;

  array(7){

    [" ReportName"] =& gt;

    string(5)"Tests"

    [" ReportTime"] =& gt;

    string(18)" 1/1 / 2015,11 / 5/2015"

    [" TimeZone"] =& gt;

    string(38)"(GMT-05:00)Eastern Time(US& amp; Canada)"

    [" ReportAggregation"] =& gt;

    string(5)"Daily"

    [" LastCompletedAvailableDay"] =& gt;

    string(25)" 1/4/2016 6:55:00 PM(GMT)"

    [" LastCompletedAvailableHour"] =& gt;

    string(25)" 1/4/2016 6:55:00 PM(GMT)"

    [" PotentialIncompleteData"] =& gt;

    string(4)"true"

  }

 对象(SimpleXMLElement)#50(1){

    [" Column"] =& gt;

   数组(6){

      [0] =& gt;

     对象(SimpleXMLElement)#45(1){

        [" @ attributes"] =& gt;

       数组(1){

          [" name"] =& gt;

          string(10)" CampaignId"

        }

      [1] =& gt;

     对象(SimpleXMLElement)#61(1){

        [" @ attributes"] =& gt;

       数组(1){

          [" name"] =& gt;

          string(5)"花费"

        }

      [2] =& gt;

     对象(SimpleXMLElement)#62(1){

        [" @ attributes"] =& gt;

       数组(1){

          [" name"] =& gt;

          string(6)" Clicks"

        }

      [3] =& gt;

     对象(SimpleXMLElement)#63(1){

        [" @ attributes"] =& gt;

       数组(1){

          [" name"] =& gt;

          string(11)"Impressions"

        }

      [4] =& gt;

      object(SimpleXMLElement)#64(1){

        [" @ attributes"] =& gt;

       数组(1){

          [" name"] =& gt;

          string(11)"Conversions"

        }

      [5] =& gt;

     对象(SimpleXMLElement)#65(1){

        [" @ attributes"] =& gt;

       数组(1){

          [" name"] =& gt;

          string(6)"Status"

        }

    }

  [" Table"] =& gt;

  object(SimpleXMLElement)#46(1){

    [" Row"] =& gt;

   对象(SimpleXMLElement)#65(6){

      [" CampaignId"] =& gt;

      object(SimpleXMLElement)#64(1){

        [" @ attributes"] =& gt;

       数组(1){

          [" value"] =& gt;

         字符串(9)"出于隐私原因排除"

        }

      [" Spend"] =& gt;

     对象(SimpleXMLElement)#63(1){

        [" @ attributes"] =& gt;

       数组(1){

          [" value"] =& gt;

          string(4)" 0.00"

        }

      [" Clicks"] =& gt;

     对象(SimpleXMLElement)#62(1){

        [" @ attributes"] =& gt;

       数组(1){

          [" value"] =& gt;

          string(1)" 0"

        }

      [" Impressions"] =& gt;

     对象(SimpleXMLElement)#61(1){

        [" @ attributes"] =& gt;

       数组(1){

          [" value"] =& gt;

          string(1)" 5"

        }

      [" Conversions"] =& gt;

     对象(SimpleXMLElement)#45(1){

        [" @ attributes"] =& gt;

       数组(1){

          [" value"] =& gt;

          string(1)" 0"

        }

      [" Status"] =& gt;

     对象(SimpleXMLElement)#66(1){

        [" @ attributes"] =& gt;

       数组(1){

          [" value"] =& gt;

          string(6)"Active"

        }

    }

  ["版权所有] =& gt;

  string(58)"Âé©2016 Microsoft Corporation。版权所有。 "

}

object(SimpleXMLElement)#56 (4) {
  ["@attributes"]=>
  array(7) {
    ["ReportName"]=>
    string(5) "Tests"
    ["ReportTime"]=>
    string(18) "1/1/2015,11/5/2015"
    ["TimeZone"]=>
    string(38) "(GMT-05:00) Eastern Time (US & Canada)"
    ["ReportAggregation"]=>
    string(5) "Daily"
    ["LastCompletedAvailableDay"]=>
    string(25) "1/4/2016 6:55:00 PM (GMT)"
    ["LastCompletedAvailableHour"]=>
    string(25) "1/4/2016 6:55:00 PM (GMT)"
    ["PotentialIncompleteData"]=>
    string(4) "true"
  }
  ["CampaignPerformanceReportColumns"]=>
  object(SimpleXMLElement)#50 (1) {
    ["Column"]=>
    array(6) {
      [0]=>
      object(SimpleXMLElement)#45 (1) {
        ["@attributes"]=>
        array(1) {
          ["name"]=>
          string(10) "CampaignId"
        }
      }
      [1]=>
      object(SimpleXMLElement)#61 (1) {
        ["@attributes"]=>
        array(1) {
          ["name"]=>
          string(5) "Spend"
        }
      }
      [2]=>
      object(SimpleXMLElement)#62 (1) {
        ["@attributes"]=>
        array(1) {
          ["name"]=>
          string(6) "Clicks"
        }
      }
      [3]=>
      object(SimpleXMLElement)#63 (1) {
        ["@attributes"]=>
        array(1) {
          ["name"]=>
          string(11) "Impressions"
        }
      }
      [4]=>
      object(SimpleXMLElement)#64 (1) {
        ["@attributes"]=>
        array(1) {
          ["name"]=>
          string(11) "Conversions"
        }
      }
      [5]=>
      object(SimpleXMLElement)#65 (1) {
        ["@attributes"]=>
        array(1) {
          ["name"]=>
          string(6) "Status"
        }
      }
    }
  }
  ["Table"]=>
  object(SimpleXMLElement)#46 (1) {
    ["Row"]=>
    object(SimpleXMLElement)#65 (6) {
      ["CampaignId"]=>
      object(SimpleXMLElement)#64 (1) {
        ["@attributes"]=>
        array(1) {
          ["value"]=>
          string(9) "excluding for privacy reasons"
        }
      }
      ["Spend"]=>
      object(SimpleXMLElement)#63 (1) {
        ["@attributes"]=>
        array(1) {
          ["value"]=>
          string(4) "0.00"
        }
      }
      ["Clicks"]=>
      object(SimpleXMLElement)#62 (1) {
        ["@attributes"]=>
        array(1) {
          ["value"]=>
          string(1) "0"
        }
      }
      ["Impressions"]=>
      object(SimpleXMLElement)#61 (1) {
        ["@attributes"]=>
        array(1) {
          ["value"]=>
          string(1) "5"
        }
      }
      ["Conversions"]=>
      object(SimpleXMLElement)#45 (1) {
        ["@attributes"]=>
        array(1) {
          ["value"]=>
          string(1) "0"
        }
      }
      ["Status"]=>
      object(SimpleXMLElement)#66 (1) {
        ["@attributes"]=>
        array(1) {
          ["value"]=>
          string(6) "Active"
        }
      }
    }
  }
  ["Copyright"]=>
  string(58) "©2016 Microsoft Corporation. All rights reserved. "
}

以下是日期范围内的响应  没有  展示次数

And here is the response from a date range without impressions

object(SimpleXMLElement)#49(4){

  [" @ attributes"] =& gt;

  array(7){

    [" ReportName"] =& gt;

    string(5)"Tests"

    [" ReportTime"] =& gt;

    string(18)" 1/1 / 2015,11 / 1/2015"

    [" TimeZone"] =& gt;

    string(38)"(GMT-05:00)Eastern Time(US& amp; Canada)"

    [" ReportAggregation"] =& gt;

    string(5)"Daily"

    [" LastCompletedAvailableDay"] =& gt;

    string(25)" 1/4/2016 6:55:00 PM(GMT)"

    [" LastCompletedAvailableHour"] =& gt;

    string(25)" 1/4/2016 6:55:00 PM(GMT)"

    [" PotentialIncompleteData"] =& gt;

    string(4)"true"

  }

 对象(SimpleXMLElement)#48(1){

    [" Column"] =& gt;

   数组(6){

      [0] =& gt;

     对象(SimpleXMLElement)#45(1){

        [" @ attributes"] =& gt;

       数组(1){

          [" name"] =& gt;

          string(10)" CampaignId"

        }

      [1] =& gt;

     对象(SimpleXMLElement)#61(1){

        [" @ attributes"] =& gt;

       数组(1){

          [" name"] =& gt;

          string(5)"花费"

        }

      [2] =& gt;

     对象(SimpleXMLElement)#62(1){

        [" @ attributes"] =& gt;

       数组(1){

          [" name"] =& gt;

          string(6)" Clicks"

        }

      [3] =& gt;

     对象(SimpleXMLElement)#63(1){

        [" @ attributes"] =& gt;

       数组(1){

          [" name"] =& gt;

          string(11)"Impressions"

        }

      [4] =& gt;

      object(SimpleXMLElement)#64(1){

        [" @ attributes"] =& gt;

       数组(1){

          [" name"] =& gt;

          string(11)"Conversions"

        }

      [5] =& gt;

     对象(SimpleXMLElement)#65(1){

        [" @ attributes"] =& gt;

       数组(1){

          [" name"] =& gt;

          string(6)"Status"

        }

    }

  [" Table"] =& gt;

 对象(SimpleXMLElement)#46(0){

  }

  string(58)"Âé©2016 Microsoft Corporation。版权所有。 "

}

object(SimpleXMLElement)#49 (4) {
  ["@attributes"]=>
  array(7) {
    ["ReportName"]=>
    string(5) "Tests"
    ["ReportTime"]=>
    string(18) "1/1/2015,11/1/2015"
    ["TimeZone"]=>
    string(38) "(GMT-05:00) Eastern Time (US & Canada)"
    ["ReportAggregation"]=>
    string(5) "Daily"
    ["LastCompletedAvailableDay"]=>
    string(25) "1/4/2016 6:55:00 PM (GMT)"
    ["LastCompletedAvailableHour"]=>
    string(25) "1/4/2016 6:55:00 PM (GMT)"
    ["PotentialIncompleteData"]=>
    string(4) "true"
  }
  ["CampaignPerformanceReportColumns"]=>
  object(SimpleXMLElement)#48 (1) {
    ["Column"]=>
    array(6) {
      [0]=>
      object(SimpleXMLElement)#45 (1) {
        ["@attributes"]=>
        array(1) {
          ["name"]=>
          string(10) "CampaignId"
        }
      }
      [1]=>
      object(SimpleXMLElement)#61 (1) {
        ["@attributes"]=>
        array(1) {
          ["name"]=>
          string(5) "Spend"
        }
      }
      [2]=>
      object(SimpleXMLElement)#62 (1) {
        ["@attributes"]=>
        array(1) {
          ["name"]=>
          string(6) "Clicks"
        }
      }
      [3]=>
      object(SimpleXMLElement)#63 (1) {
        ["@attributes"]=>
        array(1) {
          ["name"]=>
          string(11) "Impressions"
        }
      }
      [4]=>
      object(SimpleXMLElement)#64 (1) {
        ["@attributes"]=>
        array(1) {
          ["name"]=>
          string(11) "Conversions"
        }
      }
      [5]=>
      object(SimpleXMLElement)#65 (1) {
        ["@attributes"]=>
        array(1) {
          ["name"]=>
          string(6) "Status"
        }
      }
    }
  }
  ["Table"]=>
  object(SimpleXMLElement)#46 (0) {
  }
  ["Copyright"]=>
  string(58) "©2016 Microsoft Corporation. All rights reserved. "
}

如您所见,Table元素为空。如果您的自动系统运行了数千个依赖于此数据的广告系列 - 例如广告系列的状态 - 我相信您可以看到这可能会出现问题。

As you can see, the Table element is empty. When you have an automated system running many thousands of campaigns that relies on this data- for example the Status of a campaign- I'm sure you can see how this could become problematic.

如果我能提供更多信息,请告诉我,并提前感谢您的帮助。

Let me know if I can provide any more information, and thank you in advance for your help.

推荐答案

好问题!目前,我们不提供与
零展示次数相对应的数据
。此请求位于我们2016日历年的路线图上。与此同时,我建议您订阅
API博客发布公告。 

Great question! Currently we do not provide data corresponding to zero impressions. This request is on our road map for calendar year 2016. In the meantime, I suggest that you subscribe to the API blog for announcements. 

感谢您的耐心等待,

Eric


这篇关于Bing Ads API错误:CampaignPerformanceReportRequest - 空结果集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆