Sha256: 929b585b08dc032aefaadad782dee188b64139fafcc58c60a2c4b6dd9980d8f9
Contents?: true
Size: 914 Bytes
Versions: 4
Compression:
Stored size: 914 Bytes
Contents
module Blurb 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("/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("/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("/v2/keywords/bidRecommendations", params["keywordIds"]) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
blurb-0.2.3 | lib/blurb/bid_recommendation.rb |
blurb-0.2.2 | lib/blurb/bid_recommendation.rb |
blurb-0.2.1 | lib/blurb/bid_recommendation.rb |
blurb-0.2.0 | lib/blurb/bid_recommendation.rb |