May 19, 2021 WeChat Mini Program Development Document
This interface should be called on the server side, as detailed in the Service Side API.
This interface supports cloud calls. Developer tool version required . . . 1.02.1904090 (latest stable download)
wx-server-sdk >= 0.4.0
Ads create data sources
WeChat advertising document: https://ad.weixin.qq.com/guide/457
The corresponding interface https://api.weixin.qq.com/marketing/user_action_sets/add
There may be only a definition in the form of HTTP in the outer chain document, which is called in the same way as the parameters of the HTTP requirement, but there is no need to pass in access_token, and all parameters, regardless of get/post, need only be passed in as a field in the interface parameter JS object.
For FormData requests, if the type of an argument is Buffer, its fields should be passed in to objects with the following fields:
Property | Type | The default | Required | Description |
---|---|---|---|---|
contentType | string | Is | Data type, incoming MIME Type | |
value | Buffer | Is | File Buffer |
Example
Assuming that the chain document requirement is the POST method, the following parameters are required to be passed in
Property | Type | Position | Description |
---|---|---|---|
Xxx | string | URL parameters | ... |
yyy | number | JSON body | ... |
An example of a call is as follows:
cloud.openapi.ad.addUserActionSet({
xxx: '字符串',
yyy: 100,
})
Assuming that the chain document requirement is POST FormData, the following parameters are required to be passed in
Property | Type | Position | Description |
---|---|---|---|
Xxx | string | URL parameters | ... |
media | buffer | FormData | Picture buffer |
An example of a call is as follows:
cloud.openapi.ad.addUserActionSet({
xxx: '字符串',
media: {
contentType: 'image/png',
value: Buffer
},
})