module AdwordsApi::ApiConfig

Contains helper methods for loading and managing the available services.

Constants

API_NAME

Set other constants

CLIENT_LIB_VERSION
DEFAULT_CONFIG_FILENAME
DEFAULT_VERSION

Set defaults

LATEST_VERSION

Public Class Methods

adhoc_report_download_url(version) click to toggle source

Get the download URL for Ad Hoc reports.

Args:

  • version: the API version (as a symbol)

Returns:

  • The endpoint URL (as a string)

# File lib/adwords_api/api_config.rb, line 213
def self.adhoc_report_download_url(version)
  base = get_wsdl_base(version)
  if base
    base += 'reportdownload/%s' % version.to_s
  end
  return base
end
api_name() click to toggle source
# File lib/adwords_api/api_config.rb, line 181
def self.api_name
  API_NAME
end
config(key) click to toggle source
# File lib/adwords_api/api_config.rb, line 189
def self.config(key)
  @@config[key]
end
default_config_filename() click to toggle source
# File lib/adwords_api/api_config.rb, line 197
def self.default_config_filename
  DEFAULT_CONFIG_FILENAME
end
default_version() click to toggle source

Getters for constants and module variables.

# File lib/adwords_api/api_config.rb, line 173
def self.default_version
  DEFAULT_VERSION
end
headers_config() click to toggle source
# File lib/adwords_api/api_config.rb, line 201
def self.headers_config
  @@headers_config
end
latest_version() click to toggle source
# File lib/adwords_api/api_config.rb, line 177
def self.latest_version
  LATEST_VERSION
end
service_config() click to toggle source
# File lib/adwords_api/api_config.rb, line 185
def self.service_config
  @@service_config
end
subdir_config() click to toggle source
# File lib/adwords_api/api_config.rb, line 193
def self.subdir_config
  @@subdir_config
end