interests.update
Set interest attributes.
interestCategoryId cannot be changed; if you need so, remove it
and create a new one.
Parameters
struct |
user { |
|
string |
session |
Session (as retrieved from client.loginByToken() )
|
int |
userId |
(optional) Managed user ID
|
|
} |
|
|
array |
interests ( |
|
struct |
{ |
|
int |
interestId |
Id of updated interest.
|
int |
cpc |
(optional) (can be null) Change interest maximal CPC (in halers) or nil to use group default
|
int |
cpt |
(optional) (can be null) Change interest maximal CPM (in halers) or nil to use group default
|
string |
status |
(optional) Change interest status:
-
active :
Active
-
suspend :
Suspended
|
|
} |
|
|
|
) |
|
|
Response
struct |
{ |
|
int |
status |
Status code (see bellow)
|
string |
statusMessage |
Status code description
|
string |
session |
(optional) Refreshed session
|
int |
count |
Number of updated interests
|
array |
diagnostics ( |
(optional) Various diagnostics (warnings, errors, other information)
|
|
) |
|
|
|
} |
|
|
Response status codes:
List of all possible response status codes:
200: OK
206: Partially OK
301: User is serviced
400: Bad arguments
401: Invalid session
403: Access Denied
404: Not found
406: Bad values of attributes
413: Too many items requested.
429: Too many requests. Has to wait.
500: Server Error.
409: Conflict
Diagnostics:
List of all possible diagnostics:
entity_already_exists
group_access_denied
interest_no_access
interest_not_exist
model_error
not_allowed_for_campaign_type
too_big_cpc
too_big_cpt
too_low_cpc
too_low_cpt
user_access_denied