Conversion: insert
在 DoubleClick Search 中插入一批新的转化。
立即试用。
请求
HTTP 请求
POST https://www.googleapis.com/doubleclicksearch/v2/conversion
授权
此请求需要获得以下范围的授权:
范围 |
https://www.googleapis.com/auth/doubleclicksearch |
如需了解详情,请参阅身份验证和授权页面。
请求正文
在请求正文中,提供具有以下属性的 Conversion 资源:
属性名称 |
值 |
说明 |
备注 |
必需属性 |
conversion[].conversionId |
string |
对于线下转化,广告客户需提供此 ID。广告客户可以指定对他们有意义的任何 ID。请求中的每次转化都必须指定一个唯一 ID,并且 ID 和时间戳的组合在广告客户的所有转化中必须是唯一的。 对于线上转化,DS 会根据广告客户的 Floodlight 说明,将 dsConversionId 或 floodlightOrderId 复制到此媒体资源中。 |
|
conversion[].conversionTimestamp |
unsigned long |
转化发生的时间,以新纪元毫秒数 UTC 为单位。 |
|
conversion[].segmentationType |
string |
此转化的细分类型(例如 FLOODLIGHT )。
可接受的值为:
<ph type="x-smartling-placeholder">
|
|
试试看!
请使用下面的 API Explorer 针对实际数据调用此方法并查看响应。
或者,您也可以尝试
独立广告
Explorer。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-20。
[null,null,["最后更新时间 (UTC):2024-08-20。"],[[["Inserts a batch of new conversions into DoubleClick Search using the provided Conversion resource and requires authorization with the `doubleclicksearch` scope."],["Each conversion requires a unique ID, timestamp, and segmentation type (e.g., FLOODLIGHT)."],["Successful requests return a Conversion resource in the response body."],["The API allows insertion of both offline and online conversions, with specific ID handling for each."],["Developers can test the method using the provided APIs Explorer or the standalone Explorer."]]],["This outlines how to insert new conversions into DoubleClick Search using a POST request to the specified endpoint. Authorization with the `https://www.googleapis.com/auth/doubleclicksearch` scope is required. The request body should include a Conversion resource containing properties like `conversionId` (unique identifier), `conversionTimestamp` (time of conversion in UTC), and `segmentationType` (e.g., `FLOODLIGHT`). Successful requests return a Conversion resource in the response body.\n"]]