/basicOpen/adReport/manage/putSpProductAds{
"operation": {
"method": "POST",
"path": "/basicOpen/adReport/manage/putSpProductAds"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": "curl --location 'https://openapi.lingxing.com/basicOpen/adReport/manage/putSpProductAds?access_token=value×tamp=value&sign=value&app_key=value' \\\n--header 'Content-Type: application/json' \\\n--data '{\n \"sid\": 123456,\n \"productAds\": [\n {\n \"adId\": 987654321,\n \"state\": \"enabled\"\n },\n {\n \"adId\": 987654322,\n \"state\": \"paused\"\n }\n ]\n}'",
"responseExample": {
"code": 1,
"success": true,
"data": {
"apiResult": [
{
"code": "SUCCESS",
"ad_id": "987654321",
"description": ""
}
]
},
"msg": "success",
"traceId": "f0763238_fed4_4f06_ae05_0f864e1c78b2"
}
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | sid | 店铺ID | number | — | 可选 | 店铺ID,sid和profile_id必传一个 |
| 2 | profile_id | 广告配置Profile ID | number | — | 可选 | 广告配置Profile ID,sid和profile_id必传一个 |
| 3 | productAds | 商品广告列表 | array<object> | — | 必填 | 商品广告列表,单次最多1000 |
| 3.1 | adId | 商品广告id | number | — | 必填 | 商品广告id |
| 3.2 | state | 商品广告状态 | string | — | 可选 | 商品广告状态:enabled-启用 paused-暂停 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | code | number | 1 | 必填 | |
| 2 | success | success | boolean | true | 必填 | |
| 3 | data | data | object | — | 必填 | |
| 3.1 | apiResult | apiResult | array<object> | — | 必填 | |
| 3.1.1 | code | SUCCESS 成功 其他为失败 | string | SUCCESS | 必填 | SUCCESS 成功 其他为失败 |
| 3.1.2 | ad_id | 成功时返回 广告商品id | string | 987654321 | 可选 | 成功时返回 广告商品id |
| 3.1.3 | description | 不成功时返回错误的原因 | string | — | 可选 | 不成功时返回错误的原因 |
| 4 | msg | msg | string | success | 必填 | |
| 5 | traceId | 链路id | string | f0763238_fed4_4f06_ae05_0f864e1c78b2 | 必填 | 链路id |
领星ERP的接口:修改广告商品状态(/basicOpen/adReport/manage/putSpProductAds),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。