Sample-BidResponse
所有文档

          Cloud DSP

          Sample-BidResponse

          下面给出若干个示例返回用于描述在不同场景下系统的返回情况。

          5.1 BidResponse of banner

          {
              "id" : "0123456789ABCEDF0123456789ABCEDF",
              "seatbid" : [
              {
                "bid" : [
                {
                  "impid" : "10000001",
                  "bidtype" : 1,
                  "price" : 6000,
                  "adm" : "<!DOCTYPE html><html><head><meta charset=\"UTF-8\"><title>Baidu</title><meta http-equiv=\"Content-Type\" content=\"text/html\"><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\"><script type=\"text/javascript\">(function() {var impMonitorUrls = [\"http://www.baidu.com\"];var clickMonitorUrls = [\"http://www.baidu.com\"];function visitUrl(url) {var img = new Image();img.src = url;return img;}function visitAllUrls(urls) {for (var i = 0; i < urls.length; i++) {visitUrl(urls[i]);}}function addEventListener(node, event, func, useCapture) {node = node || document;useCapture = useCapture || false;if (node.addEventListener) {node.addEventListener(event, func, useCapture);} else {node.attachEvent('on' + event, func);}}function init() {var imgLink = document.getElementById('img_link');if (imgLink) {addEventListener(imgLink, 'click', function() {visitAllUrls(clickMonitorUrls);}, false);}}window.onload = function() {visitUrl(\"http://www.baidu.com\");visitAllUrls(impMonitorUrls);init();}}) ();</script><style>.product {position: relative;width: 400px;height: 32px;}.adv-logo {position: absolute;bottom: 1px;z-index: 100;}.ad-label {left: 1px;}.dsp-logo {right: 1px;}</style></head><body><div class=\"product\"><a class=\"img_area\" id=\"img_link\" href=\"http://www.baidu.com\" target=\"_blank\"><img src=\"http://www.baidu.com\"width=\"400\" height=\"32\" /></a><img src=\"http://www.baidu.com\" class=\"adv-logo ad-label\"/><img src=\"http://www.baidu.com\" class=\"adv-logo dsp-logo\"/></div></body></html>",
                  "crid" : "10011"
                }
                ],
                "seat" : 1001
              }
              ]
          }

          5.3 BidResponse of native

          {
              "id" : "0123456789ABCEDF0123456789ABCEDF",
              "seatbid" : [
              {
                "bid" : [
                  "impid" : "10000001",
                  "bidtype" : 1,
                  "price" : 6000,
                  "admnative" : {
                    "assets" : [
                    {
                      "id" : 0,
                      "required" : False,
                      "title" : {
                        "text" : "Baidu Browser"
                      }                
                    },
                    {
                      "id" : 1,
                      "required" : True,
                      "img" : {
                        "url" : "http://www.baidu.com/img",
                        "w" : 600,
                        "h" : 400
                      },
                      "link" : {
                        "url" : "http://www.baidu.com/img_click",
                        "clicktrackers" : ["http://www.baidu.com/img_clicked_1", "http://www.baidu.com/img_clicked_2"]
                      }
                    },
                    {
                      "id" : 2,
                      "required" : True,
                      "data" : {
                        "value" : "This is the sample description of the sample native response."
                      }
                    }
                    ],
                    "link" : {
                      "url" : "http://www.baidu.com",
                      "clicktrackers" : ["http://www.baidu.com/clicked_1", "http://www.baidu.com/clicked_2"]
                    },
                    "imptrackers" : ["http://www.baidu.com/tracck.1", "http://www.baidu.com/tracck.2", "http://www.baidu.com/tracck.3"],
                    "dsplogo" : {
                      "url" : "http://www.baidu.com/dsplogo",
                      "w" : 40,
                      "h" : 24
                    },
                    "adlabel" : {
                      "url" : "http://www.baidu.com/adlabel",
                      "w" : 36,
                      "h" : 24
                    },
                    "actiontrackers" : [
                    {
                      "type" : ACTION_APP_DOWNLOAD_COMPLETE,
                      "urls" : ["http://www.baidu.com/download_done_1", "http://www.baidu.com/download_done_2"]
                    },
                    {
                      "type" : ACTION_APP_INSTALL_COMPLETE,
                      "urls" : ["http://www.baidu.com/install_done_1", "http://www.baidu.com/install_done_2"]
                    }
                    ]
                  },
                  "crid" : "100001"
                ]
              }
              ]
          }
          上一篇
          BidResponse
          下一篇
          Appendix