1.1.1 Summary

Create or update offer event basic information.
 

1.1.2 Request 

Request Method: POST
Query String Parameters:

Parameter Description Type Data Range
key Network API Key;
*Required
string  

POST Parameters:
Parameter Description Type Data Range System Version
id *Required for Updating Int Single Value 1.0+
offer_id *Required for create
Offer ID
int Single Value 1.4+
e_tkn
 
*Required for create
Event Token
String Only allow letters、numbers、_ - 1.0+
event_name
 
*Required for create
Event Name
String   1.0+
is_private
 
Whether event is private int 0: not private(Default)
1: Private
1.0+
pre_event_id preceder event ID   int -1 is initial event
If it is other event, it should be greater than 0
1.0+
description
 
Event Description String   1.0+
status Event Statues int 0: Inactive
1: Active(default)
 
tracking_method Event Conversion Method String Server Postback URL,
iFrame Pixel,
Image Pixel
1.0+
is_end_point
 
Whether the event is end point int 0: false
1: true
1.0+
revenue_type *Required for create
RevenuePrice Model
String RPA,
RPC,
RPS,
RPI,
RPA+RPS
1.0+
revenue *Required for create
Revenue1
Float   1.0+
revenue_percent Revenue2
Only valid when revenue type is RPA + RPS
Float   1.0+
payout_type *Required for create
Payout Price Model
String CPA,
CPC,
CPS,
CPI,
CPA + CPS
1.0+
payout
 
*Required when create
Payout1
Float   1.0-1.3
payout_percent
 
Payout2.
Only valid when payout type is CPA + CPS
Float   1.4+
can_multiply_conversion can multiply conversion   0: No(Default)
1:Yes
1.0+
need_approval need approval   0: No(Default)
1: Yes
1.0+
conversion_point conversion_point String   1.0+
 

1.1.3 Response

Header:
HTTP Status Object Description Error Code
201   Created Successfully 0
202   Updated Successfully 0
400 Parameter Invalid Parameters 63XX
 
Content Format: JSON
 

1.1.4 Example

Sample Request URL:
http://{your_network_domain}/api/v1/setOfferEventBaseInfo?key=603E3F0E3266E
(POST Data)
 

{
    "httpStatus": 201,
    "data": {
        "id": "441",
        "offer_id": "4",
        "e_id": "3",
        "e_tkn": "E212",
        "event_name": "Event 133",
        "status": "Active",
        "description": "ddd",
        "tracking_method": "",
        "is_end_point": "Yes",
        "revenue_type": "RPA",
        "revenue": "11",
        "payout_type": "CPA + CPS",
        "payout": "22",
        "payout_percent": -1,
        "is_private": "Yes",
        "can_multiply_conversion": "No",
        "need_approval": "False",
        "conversion_point": "Conversion Point Test"
    },
    "errorCode": 0,
    "message": ""
}