Sha256: d08a15b012ba01c02532b51c50f98f00ce653e0259db920f5e1f6cf5148e65df
Contents?: true
Size: 899 Bytes
Versions: 3
Compression:
Stored size: 899 Bytes
Contents
module Blurb class BidRecommendation < BaseResource 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 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 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
blurb-0.3.2 | lib/blurb/bid_recommendation.rb |
blurb-0.3.1 | lib/blurb/bid_recommendation.rb |
blurb-0.3.0 | lib/blurb/bid_recommendation.rb |