ad_manager_api/lib/ad_manager_api/credential_handler.rb
def credentials(credentials_override = nil)
      result = super(credentials_override)
      validate_headers_for_server(result)
      include_utils = @config.read('library.include_utilities_in_user_agent',
          true)
      result[:extra_headers] = {
          'applicationName' => generate_user_agent([], include_utils),
          'networkCode' => result[:network_code]
      }
      return result
    end
def credentials(credentials_override = nil)
      result = super(credentials_override)
      validate_headers_for_server(result)
      include_utils = @config.read('library.include_utilities_in_user_agent',
          true)
      result[:extra_headers] = {
          'applicationName' => generate_user_agent([], include_utils),
          'networkCode' => result[:network_code]
      }
      return result
    end
def credentials ( credentials_override = nil ) result = super ( credentials_override ) validate_headers_for_server ( result ) include_utils = @config . read ( 'library.include_utilities_in_user_agent' , true ) result [ :extra_headers ] = { 'applicationName' => generate_user_agent ( [ ] , include_utils ) , 'networkCode' => result [ :network_code ] } return result end
Create the list of credentials to be used by the auth handler for header
 generation.
Create the list of credentials to be used by the auth handler for header generation .