groups.create
Create a new Groups in campaigns.
Parameters
struct |
user { |
|
string |
session |
Session (as retrieved from client.loginByToken() )
|
int |
userId |
(optional) Managed user ID
|
|
} |
|
|
array |
groups ( |
|
struct |
{ |
|
int |
campaignId |
Campaign id
|
int |
cpc |
Group default maximal cost per click (in halers)
|
int |
cpt |
(optional) Group cost per thousand impressions,
|
string |
status |
(optional) status of group: [default: active]
-
active :
active state
-
suspend :
suspend state
|
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 |
groupIds ( |
Group IDs of new created groups
|
|
) |
|
|
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_access_denied
campaign_name_missing
floating_invalid_attribute
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