Sha256: 88845977e28e587b0340d1dad0f9e5e8241101c51467b5f6259bfda6c7bed214

Contents?: true

Size: 559 Bytes

Versions: 4

Compression:

Stored size: 559 Bytes

Contents

require 'soapy_bing/ads/reports'

module SoapyBing
  class Ads
    attr_reader :oauth_credentials, :account

    def initialize(oauth: {}, account: {})
      @oauth_credentials = OauthCredentials.new(oauth)
      @account = Account.new(account)
    end

    def campaign_performance_report(date_start:, date_end:, settings: {})
      Reports::CampaignPerformanceReport.new(
        oauth_credentials: oauth_credentials,
        account: account,
        date_start: date_start,
        date_end: date_end,
        settings: settings
      )
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
soapy_bing-0.0.4 lib/soapy_bing/ads.rb
soapy_bing-0.0.3 lib/soapy_bing/ads.rb
soapy_bing-0.0.2 lib/soapy_bing/ads.rb
soapy_bing-0.0.1 lib/soapy_bing/ads.rb