# Advertisers who set up blocking

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

SetBlackList

# Functional description

this API The advertiser used to set up the ad blocking of the Mini Program. If you encounter problems during use, you canOpen Platform Service Provider Zone Exchange Zone | WeChat Open CommunityPosting exchanges.

# Note

Where access_Token forauthorizer_access_Token

# Calling mode

# HTTPS call


POST https://api.weixin.qq.com/wxa/初始值_set_black_list&access_token=xxxxxxxxxxxxxxx 

# Request parameters

attribute type Required Introductions
op number yes 1: Set the Shield 2: Remove the shield
list string yes Is a json serialization format, containing the masking type type and identification ID. Among them, type enumeration value: 1: Official Account message template, id represents Official Account message template WeChat ID 2: IOS application, id stands for IOS application APPID 3: Android application, id stands for the application package name of Android application 4: Small Programs/Small game, id stands for original ID. Note: There is a limit to the number of shielding, more than will exceed the times wrong. Official Account message template, Can block up to 20, iOS application, up to 10, Android application, up to 10, mini program/Small game, can block up to 20

# Return parameters

attribute type Introductions
ret number Error code
err_msg string Error message

# Call Example

Example Dxplaination: HTTPS requests

# Sample Request Data


{
    "op": 1,
    "list": "[{"type":1,"id":"gh_f23fc177abe4"}]"
} 

# Return Data Example


{
    "ret": 0,
    "err_msg": "" // Returns only when an interface call fails
} 

# Error code

Error code Error code Solutions
0 ok ok
1700 Parameter error Verify that the input parameters conform to the documentation
1701 Parameter error Verify that the input parameters conform to the documentation
1735 The merchant has not completed the agreement signing process Complete the signing operation
1737 Operating too fast Wait a minute and reoperate
1807 Invalid Flow Master Turn on the traffic master for this appid through the turn on traffic master interface
2009 Invalid Flow Master Turn on the traffic master for this appid through the turn on traffic master interface
2035 Exceed the blocking limit of the type of advertiser Remove advertisers who no longer need to be blocked
2056 The service provider does not open an account in the cash area Launch services in the monetization area of the third-party platform page
3004 Official Account message template Advertiser block enter WeChat ID error Check that the WeChat ID is entered correctly
3005 Mini Program game wide host input original ID error Check that the original ID was entered correctly
3006 Mask IOS app input APPID error Check that the input APPID is correct
3007 Blocking Android Apps Enter App Pack Name Error Check that the name of the application is correct.