如何获得订单项赞助价值,即每个订单项保留所有正在销售的展示次数的百分比?
我正在使用DFP PHP客户端库v201711。
您需要LineItemService.getLineItemsByStatement来查询DFP API,然后检查primaryGoal属性。这就是online DFP API query tool 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
},
...
}