如何获得lineitem赞助

问题描述 投票:0回答:1

如何获得订单项赞助价值,即每个订单项保留所有正在销售的展示次数的百分比?

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

php google-dfp
1个回答
1
投票

您需要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
  },
  ...
}
© www.soinside.com 2019 - 2024. All rights reserved.