Service
/domain-listprofile
Method
GETParameters
Service
/profile
Method
POST/PUT
Name | Type | Required | Description | |
---|---|---|---|---|
idname | intstring | NY | Domain List Id. | |
advertiser_id | int | Y | If this is set, it will only return the domain lists where the name contains the advertiser id. |
Response
Example where the advertiser id is 12345.
Code Block |
---|
{
"response":{
"status":"OK",
"domainlists":[{
"id":1,
"name":"[12345] name",
"description":"short description",
"type":"white",
"last_modified":"2014-08-27 11:57:08",
"domains":[
"domain1.com",
"domain2.com"
],
"num_domains":2
},{...}
]
}
} |
Service
/domain-list
Method
POST
Parameters
Name | Type | Required | Description |
---|---|---|---|
name | string | Y | The name of the domain list as specified by the user |
description | string | N | A description of the domain list as specified by the user |
type | string | Y | The type of domain list, possible values are "black" and "white. This is strictly informational. |
domains | string | N | String of domains where each domain is on a new line ("\n) |
advertiser_id | int | Y | Used as a prefix for the name |
Service
/domain-list
Method
PUT
Parameters
Same as POST.
Name | Type | Required | Description | |||
---|---|---|---|---|---|---|
id | int | Y | The internal system identifier for the domain liststate | string | N | active/inactive Default: active |
currency | string | Y | ||||
daily_budget | double | N | ||||
lifetime_budget | double | N | ||||
enable_pacing | boolean | N | Default: true | |||
start_date | string | N | Default: null, corresponds to "immediately". | |||
end_date | string | N | Default: null, corresponds to "immediately". | |||
run_indefinitely | boolean | N | Default: false | |||
pixels | array | N | Conversion pixel ids. (key: id, state) | |||
timezone | string | N | ||||
profile_id | int | N | See Profile Service |