Create a new affiliate blocked

HTTP method Endpoint
POST /v1/affiliate_blocks

Request body parameters

Field Type Description Nullable
advertiser_id integer The unique id for the advertiser.
Note: if the category is 2,must set the advertiser_id.
No
offer_id integer The unique id for the offer.
Note: if the setting is for All Offer, just simply set offer_id as 0.
No
affiliate_id integer The unique id for the affiliate No
category string The type for this affiliate blocked.
Allow type:
1 Offer
2 Advertiser
No
type integer The type for this affiliate blocked.
Allow type:
1 Source ID
2 Aff Sub1
3 Aff Sub2
4 Aff Sub3
5 Aff Sub4
6 Aff Sub5
No
value string The value for the affiliate blocked. No
list_type string Allow Values:
1 Blacklist;
2 Whitelist.
Note:if list_type=1, all the clicks and conversions with this value will be rejected. If list_type=2, all the clicks and conversions won't success without this value.
No

Response body parameters

Field Type Description
id integer The unique id for the block.
affiliate_id integer The unique id for the affiliate.
offer_id integer The unique id for the offer.
type integer The type for this affiliate blocked.
Allow type:
1 Source ID
2 Aff Sub1
3 Aff Sub2
4 Aff Sub3
5 Aff Sub4
6 Aff Sub5
value string The value for the affiliate blocked.
create_time integer Create time.
update_time integer Update time.
advertiser_id integer The unique id for the advertiser.
category string The type for this affiliate blocked.
Allow type:
1 Offer
2 Advertiser
list_type string Allow Values:
1 Blacklist;
2 Whitelist.
Note:if list_type=1, all the clicks and conversions with this value will be rejected. If list_type=2, all the clicks and conversions won't success without this value.
No

Example request

Request POST https://{networkname}.api.offerslook.com/v1/affiliate_blocks


Request POST http://{networkname}.api.offerslook.com/v1/affiliate_blocks



    {
  "advertiser_id":0,
  "affiliate_id": 5547,
  "category": "1",
  "offer_id": 36077,
  "type": "1",
  "value": "string",
  "list_type":"1"
}

Example response


    {
    "code": 0,
    "message": "Success",
    "data": {
        "affiliate_block": {
            "id": 9,
            "affiliate_id": 5547,
            "offer_id": 36077,
            "type": 1,
            "value": "string",
            "create_time": 1533022310,
            "update_time": 0,
            "advertiser_id": 0,
            "category": 1,
            "list_type":"1"

        }
    }
}

results matching ""

    No results matching ""