# Set Industry Shield Information
Interface should be called on the server side, seeHattori API。
# Interface Dxplaination
# Interface name
SetAmsCategoryBlackList
# Functional description
this API Used to set the Mini Program advertising industry blocking information. 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/operationams?action=agency_set_mp_amscategory_blacklist&access_token=xxxxxxxxxxxxxxx
# Request parameters
attribute | type | Required | Introductions |
---|---|---|---|
ams_category | string | yes | Shielded industry categories. Enum value: CHESS: Chess GameADULT_SUPPLIES: Adult productsMEDICAL_HEALTH: Medical TreatmentINSURANCE: InsuranceSECURITES: SECURITIESLOAN: LoansLIVING_SERVICES_BEAUTY: Life Service (Beauty)LIVING_SERVICES_ENTERTAIN MENT: Life Service (Leisure Entertainment)LIVING_SERVICES_OTHERS: Life Services (Other)FOOD_INDUSTRY: CateringRETAIL_AND_GENERAL_MERCHANDISE: Retail and General MerchandiseFOOD_AND_DRINK: Food drinkTECHNICAL_SERVICE: Communications and IT Services |
# Return parameters
attribute | type | Introductions |
---|---|---|
ret | number | Error code |
err_msg | string | Error message |
# Call Example
Example Dxplaination: HTTPS requests
# 初始值
{
"ams_category": "CHESS|ADULT_SUPPLIES|MEDICAL_HEALTH|INSURANCE|SECURITES|LOAN|LIVING_SERVICES_BEAUTY|LIVING_SERVICES_ENTERTAINMENT|LIVING_SERVICES_OTHERS|FOOD_INDUSTRY|RETAIL_AND_GENERAL_MERCHANDISE|FOOD_AND_初始值|TECHNICAL_SERVICE "
}
# Return Data Example
{
"ret": 0,
初始值_msg": "", // Returns only when an interface call fails
}
# Error code
Error code | Error code | Solutions |
---|---|---|
0 | ok | ok |
-202 | Internal error | Can be retried after some time |
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 |