lib/blurb/bid_recommendation.rb in blurb-0.2.3 vs lib/blurb/bid_recommendation.rb in blurb-0.3.0

- old
+ new

@@ -1,21 +1,21 @@ module Blurb class BidRecommendation < BaseResource - def self.ad_group_recommendations(params = {}, opts = {}) + def ad_group_recommendations(params = {}, opts = {}) # required argument checks raise ArgumentError.new("params hash must contain an adGroupId") unless params["adGroupId"] get_request("/v2/adGroups/#{params["adGroupId"]}/bidRecommendations") end - def self.keyword_recommendations(params = {}, opts = {}) + def keyword_recommendations(params = {}, opts = {}) # required argument checks raise ArgumentError.new("params hash must contain an keywordId") unless params["keywordId"] get_request("/v2/keywords/#{params["keywordId"]}/bidRecommendations") end - def self.bulk_keyword_recommendations(params = {}, opts = {}) + def bulk_keyword_recommendations(params = {}, opts = {}) # required argument checks raise ArgumentError.new("params hash must contain an array of keywordIds") unless params["keywordIds"] post_request("/v2/keywords/bidRecommendations", params["keywordIds"]) end