/pb/openapi/newad/apiLogStandard{
"operation": {
"method": "POST",
"path": "/pb/openapi/newad/apiLogStandard"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 10,
"text": ""
},
"responseExample": "{\n \"code\": 0,\n \"message\": \"操作成功\",\n \"error_details\": [],\n \"request_id\": \"worweoeiruxlkjsrwUEWRk\",\n \"response_time\": \"2023-04-18 10:51:37\",\n \"total\": 1\n \"data\": [\n {\n \"profile_id\": 121923590660074,\n \"sponsored_type\": \"sp\",\n \"operate_type\": \"campaigns\",\n \"campaign_id\": 75412355765106,\n \"campaign_name\": \"campaign-1118\",\n \"ad_group_id\": null,\n \"object_id\": 75412355765106,\n \"ad_group_name\": null,\n \"object_name\": \"campaign-dk-0111\",\n \"function_name\": \"WebPage\",\n \"change_type\": \"更新\",\n \"operate_before\": [\n {\n \"code\": \"BUDGET_AMOUNT\",\n \"value\": \"1.01\"\n },\n {\n \"code\": \"PORTFOLIO_ID\",\n \"value\": \"0\"\n }\n ],\n \"operate_after\": [\n {\n \"code\": \"BUDGET_AMOUNT\",\n \"value\": \"1.02\"\n },\n {\n \"code\": \"PORTFOLIO_ID\",\n \"value\": \"--\"\n }\n ],\n \"user_id\": 3071,\n \"user_name\": \"谢xx\",\n \"operate_time\": \"2023-04-18 09:56:34\"\n }\n ]\n}"
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | sid | 店铺id | integer | — | 必填 | 店铺id ,对应查询亚马逊店铺列表接口对应字段【sid】 |
| 2 | log_source | 日志来源 | string | — | 必填 | 日志来源: all 包括ERP和亚马逊后台的操作 erp 仅ERP中调整广告的日志 amazon 亚马逊后台的日志 |
| 3 | sponsored_type | 广告类型 | string | — | 必填 | 广告类型: sp 返回sp操作日志 sb 返回sb操作日志 sd 返回sd操作日志 |
| 4 | operate_type | 对象类型 | string | — | 必填 | 对象类型: campaigns 广告活动 adGroups 广告组 productAds 广告 keywords 关键词 negativeKeywords 否定关键词 targets 商品投放 negativeTargets 否定商品投放 profiles 预算设置 |
| 5 | start_date | 起始时间 | string | — | 必填 | 起始时间,格式:Y-m-d【日期间隔不能超过一个月】 |
| 6 | end_date | 结束时间 | string | — | 必填 | 结束时间,格式:Y-m-d【日期间隔不能超过一个月】 |
| 7 | offset | 分页偏移量 | integer | — | 可选 | 分页偏移量,默认0 |
| 8 | length | 分页长度 | integer | — | 可选 | 分页长度,默认15 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | 必填 | 状态码,0 成功 |
| 2 | message | 消息提示 | string | 操作成功 | 必填 | 消息提示 |
| 3 | error_details | 错误信息 | array<any> | — | 必填 | 错误信息 |
| 4 | request_id | 请求链路id | string | WEUHA89F-7996-81F8-8E2F-DE7534EB2AQ2 | 必填 | 请求链路id |
| 5 | response_time | 响应时间 | string | 2023-04-18 10:51:37 | 必填 | 响应时间 |
| 6 | total | 总数 | integer | 8 | 必填 | 总数 |
| 7 | data | 响应数据 | array<object> | — | 必填 | 响应数据 |
| 7.1 | profile_id | 亚马逊店铺数字ID | number | 121923590660074 | 必填 | 亚马逊店铺数字ID |
| 7.2 | sponsored_type | 广告类型 | string | sp | 必填 | 广告类型:sp、sb、sd |
| 7.3 | operate_type | 对象类型 | string | campaigns | 必填 | 对象类型 |
| 7.4 | campaign_id | 广告活动id | number | 75412355765106 | 必填 | 广告活动id |
| 7.5 | campaign_name | 广告活动名称 | number | campaign-dk-0111 | 必填 | 广告活动名称 |
| 7.6 | ad_group_id | 广告组id | number | 800000000000137100 | 必填 | 广告组id |
| 7.7 | object_id | 广告对象id | number | 75412355765106 | 必填 | 广告对象id |
| 7.8 | ad_group_name | 广告组名称 | string | AD_GROUP | 必填 | 广告组名称 |
| 7.9 | object_name | 广告对象名称 | string | campaign-dk-0111 | 必填 | 广告对象名称 |
| 7.10 | function_name | 功能来源 | string | WebPage | 必填 | 功能来源 |
| 7.11 | change_type | 操作类型 | string | update | 必填 | 操作类型:create 创建,update 更新 |
| 7.12 | operate_before | 操作前 | array<object> | — | 必填 | 操作前 |
| 7.12.1 | code | 操作类型编码 | string | BUDGET_AMOUNT | 必填 | 操作类型编码 |
| 7.12.2 | value | 操作对象值 | string | 1.01 | 必填 | 操作对象值 |
| 7.13 | operate_after | 操作后 | array<object> | — | 必填 | 操作后 |
| 7.13.1 | code | 操作类型编码 | string | BUDGET_AMOUNT | 必填 | 操作类型编码 |
| 7.13.2 | value | 操作对象值 | string | 1.02 | 必填 | 操作对象值 |
| 7.14 | user_id | 用户id | integer | 3071 | 必填 | 用户id |
| 7.15 | user_name | 用户名 | string | 谢xx | 必填 | 用户名 |
| 7.16 | operate_time | 操作时间 - 站点时间 | string | 2023-04-18 09:56:34 | 必填 | 操作时间 - 站点时间 |
领星ERP的接口:操作日志(新)(/pb/openapi/newad/apiLogStandard),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。