Media

class Media(session_kwargs, client, return_type='raw')

Civis API /media endpoint.

Methods

delete_optimizations_runs(id, run_id)

Cancel a run

delete_optimizations_shares_groups(id, group_id)

Revoke the permissions a group has on this object

delete_optimizations_shares_users(id, user_id)

Revoke the permissions a user has on this object

delete_ratecards_shares_groups(id, group_id)

Revoke the permissions a group has on this object

delete_ratecards_shares_users(id, user_id)

Revoke the permissions a user has on this object

delete_spot_orders_shares_groups(id, group_id)

Revoke the permissions a group has on this object

delete_spot_orders_shares_users(id, user_id)

Revoke the permissions a user has on this object

get_optimizations(id)

Show a single optimization

get_optimizations_runs(id, run_id)

Check status of a run

get_ratecards(id)

Get a Ratecard

get_spot_orders(id)

Show a single spot order

list_dmas(*[, name, number])

List all Designated Market Areas

list_optimizations(*[, archived, limit, ...])

List all optimizations

list_optimizations_runs(id, *[, limit, ...])

List runs for the given Optimization job

list_optimizations_runs_logs(id, run_id, *)

Get the logs for a run

list_optimizations_shares(id)

List users and groups permissioned on this object

list_ratecards(*[, archived, filename, ...])

List all ratecards

list_ratecards_shares(id)

List users and groups permissioned on this object

list_spot_orders(*[, id, archived])

List all spot orders

list_spot_orders_shares(id)

List users and groups permissioned on this object

list_targets(*[, name, identifier, data_source])

List all Media Targets

patch_optimizations(id, *[, name, runs, ...])

Edit an existing optimization

patch_ratecards(id, *[, filename, start_on, ...])

Update some attributes of this Ratecard

post_optimizations(runs, *[, name, ...])

Create a new optimization

post_optimizations_clone(id)

Clone an existing optimization

post_optimizations_runs(id)

Start a run

post_ratecards(filename, start_on, end_on, ...)

Create a Ratecard

post_spot_orders(*[, body])

Create a spot order

put_optimizations_archive(id, status)

Update the archive status of this object

put_optimizations_shares_groups(id, ...[, ...])

Set the permissions groups has on this object

put_optimizations_shares_users(id, user_ids, ...)

Set the permissions users have on this object

put_ratecards(id, filename, start_on, ...)

Replace all attributes of this Ratecard

put_ratecards_archive(id, status)

Update the archive status of this object

put_ratecards_shares_groups(id, group_ids, ...)

Set the permissions groups has on this object

put_ratecards_shares_users(id, user_ids, ...)

Set the permissions users have on this object

put_spot_orders(id, *[, body])

Edit the specified spot order

put_spot_orders_archive(id, status)

Update the archive status of this object

put_spot_orders_shares_groups(id, group_ids, ...)

Set the permissions groups has on this object

put_spot_orders_shares_users(id, user_ids, ...)

Set the permissions users have on this object