Skip to main content

Partners

Auth: Brand API authentication

publisher/publisher_list

KeyDescriptionRequiredType
publisher_group_account_idPublisher Group Account ID (formerly publisher_id)Noint
publisher_idPublisher ID (formerly channel_id)Noint
statusStatusNostring
pagePageNoint
page_sizePage SizeNoint

Request:

{
"publisher_group_account_id": 109271,
"publisher_id": 40837,
"status": "joined",
"page": 1,
"page_size": 20
}

Response fields

KeyDescriptionType
publisher_idPublisher IDstring
publisher_namePublisher Namestring
statusStatusstring
titleTitlestring
hostHoststring
wordWordarray
useridUser IDstring
medium_idMedium IDstring
categoryCategoryarray
descriptionPublisher Descriptionstring
promotion_methodPromotion Methodarray
publisher_group_accountPublisher Group Accountobject
publisher_group_account.publisher_group_account_idPublisher Group Account IDstring
publisher_group_account.publisher_group_account_namePublisher Group Account Namestring
publisher_group_account.descriptionPublisher Group Account Descriptionstring

Response (abbreviated):

{
"code": 0,
"msg": "success",
"data": [
{
"publisher_id": "40837",
"publisher_name": "aaa_bait",
"status": "adopt",
"title": "s1",
"host": "http://s1.host",
"word": ["2123", "2413213"],
"userid": "109271",
"medium_id": "PB00040837",
"category": ["Food & Drink"],
"description": "",
"promotion_method": ["affiliate"],
"publisher_group_account": {
"publisher_group_account_id": "109271",
"publisher_group_account_name": "aaa_bai",
"description": ""
}
}
]
}

publisher/maintenance

Approve, reject, block, or terminate publisher channels.

KeyDescriptionRequiredType
userIdUser id (One of userId and site_ids is required)Yesstring
site_idsSite ids (One of userId and site_ids is required)Yesstring
mail_idMail idNostring
auto_approveAuto ApproveNoint
statusStatus (adopt / unblock / terminated / refuse)Yesstring

Request:

{
"site_ids": "40828",
"auto_approve": 1,
"status": "adopt"
}

Response:

{ "code": 0, "data": null, "msg": "success" }

Error codes

CodeDescription
0Success
1000Publisher does not exist
1001Invalid token
1002Call frequency too high
1003Missing required parameters or incorrect format