groups.update
Update Groups attributes (name, CPC etc.).
Parameters
struct |
user { |
|
string |
session |
Session (as retrieved from client.loginByToken() )
|
int |
userId |
(optional) Managed user ID
|
|
} |
|
|
array |
groups ( |
|
struct |
{ |
|
string |
name |
(optional) Change group name
|
string |
status |
(optional) Change group status:
-
active :
Active
-
suspend :
Suspended
|
int |
cpc |
(optional) Group max. CPC (in halers)
|
int |
cpt |
(optional) Group cost per thousand impressions,
|
int |
maxUserDailyImpression |
(optional) Max impressions of group per one user per one day
|
struct |
devicesPriceRatio { |
(optional) Specify max CPC/CPT for target devices, in whole percents relative to group's CPC/CPT.
|
int |
desktop |
(optional) (can be null) Desktop/Notebook devices
|
int |
mobile |
(optional) (can be null) Smartphones/Mobile devices
|
int |
tablet |
(optional) (can be null) Tablet devices
|
int |
other |
(optional) (can be null) Other devices
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
Response
struct |
{ |
|
string |
statusMessage |
Status code description
|
string |
session |
Refreshed session
|
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:
campaign_name_missing
floating_invalid_attribute
group_access_denied
group_cpc_is_too_high
group_cpc_is_too_low
group_cpm_out_of_range
group_maxUserDailyImpression_out_of_range
group_name_duplicity
group_name_missing
not_allowed_for_campaign_type
simple_ads_invalid_attribute
user_access_denied