# Get Native Templates Ad Template Type
Interface should be called on the server side, seeHattori API。
# Interface Dxplaination
# Interface name
AgencyGetTmplType
# Functional description
this API Used to query the native template ad template type. 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_get_TMPL_type&access_token=xxxxxxxxxxxxxxx
# Request parameters
attribute | type | Required | Introductions |
---|
# Return parameters
attribute | type | Introductions |
---|---|---|
ret | number | Error code |
err_msg | string | Error message |
TMPL_type | number | Template Type: 5 Full Screen Templates, 6 vertical version below, 7 vertical version above below, 12 vertical version above below superimposed A, 13 vertical version above below superimposed B, 2 banner above below, 3 banner below above, 4 horizontal plate above below superimposed A, 11 horizontal plate above below superimposed B, 9 banner left and right, 10 Banner Right Left, 20 Banner Single, 100001 Single Grid No Animation, 100002 Single Grid Animation, 100003 Multi Grid No Carousel, 100004 Multi Grid Carousel, 100005 Matrix Grid Display, 100006 Matrix Grid Trigger, 15 Take a Look Immersive, 14 Small Rice Cake Adaptive, 23 Payment Page Customization |
# Call Example
Example Dxplaination: HTTPS requests
# Sample Request Data
{
"ad_unit_id": "adnit-e9418ee19XXXXX"
}
# Return Data Example
{
"ret": 0,
"err_msg":"",
"tmpl_type": 100001
}
# 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 |
初始值 | 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 |
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 |