Module: BingAdsRubySdk

Defined in:
lib/bing_ads_ruby_sdk.rb,
lib/bing_ads_ruby_sdk/api.rb,
lib/bing_ads_ruby_sdk/header.rb,
lib/bing_ads_ruby_sdk/railtie.rb,
lib/bing_ads_ruby_sdk/version.rb,
lib/bing_ads_ruby_sdk/http_client.rb,
lib/bing_ads_ruby_sdk/log_message.rb,
lib/bing_ads_ruby_sdk/soap_client.rb,
lib/bing_ads_ruby_sdk/string_utils.rb,
lib/bing_ads_ruby_sdk/configuration.rb,
lib/bing_ads_ruby_sdk/errors/errors.rb,
lib/bing_ads_ruby_sdk/services/base.rb,
lib/bing_ads_ruby_sdk/services/bulk.rb,
lib/bing_ads_ruby_sdk/oauth2/fs_store.rb,
lib/bing_ads_ruby_sdk/augmented_parser.rb,
lib/bing_ads_ruby_sdk/services/reporting.rb,
lib/bing_ads_ruby_sdk/preprocessors/order.rb,
lib/bing_ads_ruby_sdk/services/ad_insight.rb,
lib/bing_ads_ruby_sdk/errors/error_handler.rb,
lib/bing_ads_ruby_sdk/postprocessors/snakize.rb,
lib/bing_ads_ruby_sdk/preprocessors/camelize.rb,
lib/bing_ads_ruby_sdk/wsdl_operation_wrapper.rb,
lib/bing_ads_ruby_sdk/services/customer_billing.rb,
lib/bing_ads_ruby_sdk/oauth2/authorization_handler.rb,
lib/bing_ads_ruby_sdk/services/campaign_management.rb,
lib/bing_ads_ruby_sdk/services/customer_management.rb,
lib/bing_ads_ruby_sdk/postprocessors/cast_long_arrays.rb

Defined Under Namespace

Modules: Errors, OAuth2, Postprocessors, Preprocessors, Services, StringUtils Classes: Api, AugmentedParser, Configuration, Header, HttpClient, LogMessage, Railtie, SoapClient, WsdlOperationWrapper

Constant Summary collapse

TYPE_KEY =
"@type"
ROOT_PATH =
File.join(__dir__, "..")
VERSION =
"1.5.2"
DEFAULT_SDK_VERSION =
:v13

Class Method Summary collapse

Class Method Details

.configObject



13
14
15
# File 'lib/bing_ads_ruby_sdk.rb', line 13

def self.config
  @configuration ||= BingAdsRubySdk::Configuration.new
end

.configure {|config| ... } ⇒ Object

Yields:



17
18
19
# File 'lib/bing_ads_ruby_sdk.rb', line 17

def self.configure
  yield(config)
end

.log(level, *args, &block) ⇒ Object



21
22
23
24
# File 'lib/bing_ads_ruby_sdk.rb', line 21

def self.log(level, *args, &block)
  return unless config.log
  config.logger.send(level, *args, &block)
end

.root_pathObject



26
27
28
# File 'lib/bing_ads_ruby_sdk.rb', line 26

def self.root_path
  ROOT_PATH
end

.type_keyObject



30
31
32
# File 'lib/bing_ads_ruby_sdk.rb', line 30

def self.type_key
  TYPE_KEY
end