banners.update
Set banners attributes. If you modify any essential
attribute (file) new banner shall be created.
Parameters
struct |
user { |
|
string |
session |
Session (as retrieved from client.loginByToken() )
|
int |
userId |
(optional) User ID
|
|
} |
|
|
array |
banners ( |
|
struct |
{ |
|
string |
name |
(optional) Banner name (title)
|
string |
clickthruUrl |
(optional) Target URL
|
string |
status |
(optional) Status:
|
binary |
file |
(optional) Image data (jpg, png, gif)
|
array |
schedule ( |
(optional) (can be null) Delivery schedule of banner. Array of 7 days, week starts at monday.
|
) |
|
|
|
} |
|
|
|
) |
|
|
Response
struct |
{ |
|
string |
statusMessage |
Status code description
|
string |
session |
Refreshed session
|
array |
newIds ( |
IDs of newly created banners
|
|
) |
|
|
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:
ad_attribute_no_change
bad_url
bad_url_text
banner_access_denied
banner_already_removed
clickthruUrl_is_too_long
file_missing
file_size_too_large
invalid_file_format
invalid_image_format
invalid_schedule_day_size
invalid_schedule_size
invalid_size
not_allowed_for_campaign_type
schedule_value_too_large
schedule_value_too_low
user_access_denied