Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何获得商品赞助_Php_Google Dfp - Fatal编程技术网

Php 如何获得商品赞助

Php 如何获得商品赞助,php,google-dfp,Php,Google Dfp,如何获得商品赞助价值,即每一商品在所有销售印象中保留的百分比 我正在使用DFP PHP客户端库v201711。您需要查询DFP API,然后检查属性。这是50%赞助行项目中的情况: { "primaryGoal": { "units": 50, "goalType": "DAILY", "unitType": "IMPRESSIONS" }, "orderId": 548040886, "reserveAtCreation": false, "adEx

如何获得商品赞助价值,即每一商品在所有销售印象中保留的百分比

我正在使用DFP PHP客户端库v201711。

您需要查询DFP API,然后检查属性。这是50%赞助行项目中的情况:

{
  "primaryGoal": {
    "units": 50,
    "goalType": "DAILY",
    "unitType": "IMPRESSIONS"
  },
  "orderId": 548040886,
  "reserveAtCreation": false,
  "adExchangeAuctionOpeningPriority": 0,
  "isPrioritizedPreferredDealsEnabled": false,
  "startDateTimeType": "USE_START_DATE_TIME",
  "skipCrossSellingRuleWarningChecks": false,
  "costPerUnit": {
    "currencyCode": "RUB",
    "microAmount": 200000000
  },
  ...
}