Sha256: f6ffb9a5839c02145ee079c51da2e753e38679317c6a626d2b2c43cf3a6c985c
Contents?: true
Size: 914 Bytes
Versions: 2
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("/v1/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") 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"]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blurb-0.1.2 | lib/blurb/bid_recommendation.rb |
blurb-0.1.1 | lib/blurb/bid_recommendation.rb |