Skip to content

placements

Column NameTypeCommentDefaultNullRemark
idbigint UNSIGNEDPrimary Key IDNOAuto Increment
plugin_fskeyvarchar(64)CreatorNOWhich plugin created this record
Related field plugins->fskey
placement_typetinyint UNSIGNEDType of targetNO1.User / 2.Group / 3.Hashtag / 4.Post / 5.Comment
Which type of content to read as list page parameter
placement_idbigint UNSIGNEDKey IDNO1.Related field users->id
2.Related field groups->id
3.Related field hashtags->id
4.Related field posts->id
5.Related field comments->id
placement_templatejsonContent TemplateNOCustom number, from the client being used
placement_namevarchar(64)NameNOMultilingual
For example: Sponsor, Advertisement, You Might Be Interested In, etc.
open_typetinyint UNSIGNEDOpen TypeNO1.User Profile / 2.Group Detail / 3.Hashtag Detail
4.Post Detail / 5.Comment Detail / 6.Extension iframe
7.Plugin Page / 8.URL
open_valuevarchar(128)Target ValueNOUser, Group, Hashtag, Post, Comment are the corresponding primary IDs
Inline extension frame is extends->id
Plugin page is fskey, specified URL is URL
positiontinyint UNSIGNEDPlacement Position5NO
starting_attimestampStart TimeYESEmpty means start immediately
expired_attimestampExpiration TimeYESEmpty means valid forever
created_attimestampCreate TimeCURRENT_TIMESTAMPNO
updated_attimestampUpdate TimeYES
deleted_attimestampDelete TimeYES

Position Explanation

  • position=3 means to insert at the 3rd position in the list page. If there are multiple valid records at the same position, all of them will be output as long as they are within the validity period, and the client will decide which one to display.
  • If there are 30 posts per page and the placement position is 35, it means to insert at the 5th position on the 2nd page.

Content Template

json
[
    {
        "appId": "Main program secret key ID, the output template code is determined based on the App ID of the interface request",
        "tplCode": "Template code, can be a numeric number or English letters, string type."
        // The client decides which template to use for displaying the content based on this code.
    },
    {
        "appId": "twvhl69n2uqygnox",
        "tplCode": "1"
    }
]

Released under the Apache-2.0 License