/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"
}
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | sid | 店铺ID | number | — | Optional | 店铺ID,sid和profile_id必传一个 |
| 2 | profile_id | 广告配置Profile ID | number | — | Optional | 广告配置Profile ID,sid和profile_id必传一个 |
| 3 | productAds | 商品广告列表 | array<object> | — | Required | 商品广告列表,单次最多1000 |
| 3.1 | adId | 商品广告id | number | — | Required | 商品广告id |
| 3.2 | state | 商品广告状态 | string | — | Optional | 商品广告状态:enabled-启用 paused-暂停 |
| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | code | code | number | 1 | Required | |
| 2 | success | success | boolean | true | Required | |
| 3 | data | data | object | — | Required | |
| 3.1 | apiResult | apiResult | array<object> | — | Required | |
| 3.1.1 | code | SUCCESS 成功 其他为失败 | string | SUCCESS | Required | SUCCESS 成功 其他为失败 |
| 3.1.2 | ad_id | 成功时返回 广告商品id | string | 987654321 | Optional | 成功时返回 广告商品id |
| 3.1.3 | description | 不成功时返回错误的原因 | string | — | Optional | 不成功时返回错误的原因 |
| 4 | msg | msg | string | success | Required | |
| 5 | traceId | 链路id | string | f0763238_fed4_4f06_ae05_0f864e1c78b2 | Required | 链路id |
The 修改广告商品状态 API (/basicOpen/adReport/manage/putSpProductAds) of 领星ERP is curated by the API asset management module of the Qeasy Cloud data integration platform and kept in sync with 领星ERP version updates.
Qeasy ships with prebuilt adaptation for this API — contact us to start configuring data integration.