lib/blurb/bid_recommendation.rb in blurb-0.1.2 vs lib/blurb/bid_recommendation.rb in blurb-0.2.0
- old
+ new
@@ -2,23 +2,23 @@
class BidRecommendation < BaseResource
def self.ad_group_recommendations(params = {}, opts = {})
# required argument checks
raise ArgumentError.new("params hash must contain an adGroupId") unless params["adGroupId"]
- get_request("/v1/adGroups/#{params["adGroupId"]}/bidRecommendations")
+ get_request("/v2/adGroups/#{params["adGroupId"]}/bidRecommendations")
end
def self.keyword_recommendations(params = {}, opts = {})
# required argument checks
raise ArgumentError.new("params hash must contain an keywordId") unless params["keywordId"]
- get_request("/v1/keywords/#{params["keywordId"]}/bidRecommendations")
+ get_request("/v2/keywords/#{params["keywordId"]}/bidRecommendations")
end
def self.bulk_keyword_recommendations(params = {}, opts = {})
# required argument checks
raise ArgumentError.new("params hash must contain an array of keywordIds") unless params["keywordIds"]
- post_request("/v1/keywords/bidRecommendations", params["keywordIds"])
+ post_request("/v2/keywords/bidRecommendations", params["keywordIds"])
end
end
end