lib/blurb/campaign.rb in blurb-0.2.2 vs lib/blurb/campaign.rb in blurb-0.2.3

- old
+ new

@@ -29,13 +29,12 @@ raise ArgumentError.new("Only sponsored product campaigns can be created through the api. Sponsored Brands campaigns must be created through the user interface") unless campaign_type == SPONSORED_PRODUCTS post_request("/v2/#{campaign_type}/campaigns", [params]) end - # Deprecated in v2 - # def self.create_bulk(campaign_array, opts = {}) - # post_request("/v1/campaigns", campaign_array) - # end + def self.delete(campaign_id) + delete_request("/v2/campaigns/#{campaign_id}") + end private def self.setup_url_params(params) url_params = ""