def adwords
      return @adwords if @adwords

      #
      # select profile
      #
      options = {}
      if @options.config_name
        options[:config_file] = @options.config_name
      end
      @adwords = Sem4r::Adwords.new(@options.profile, options)
      if @options.verbose
        puts "using #{@adwords.profile} profile"
        puts "config file is #{@adwords.config_file}"
      end
      #
      # Extracts dump soap options
      #
      if @options.default_logging
        config_dir = File.join(ENV['HOME'], ".sem4r")
        unless File.exists?(config_dir)
          puts "Directory #{config_dir} not exists"
          FileUtils.mkdir(config_dir)
        end
        dir                             = File.join(config_dir, Time.new.strftime("%Y%m%d-soap-dump"))
        @options.dump_soap_to_directory = dir

        file                            = File.join(config_dir, Time.new.strftime("%Y%m%d-sem4r-log"))
        @options.logger                 = file
      end

      if @options.dump_soap_to_file
        filename = @options.dump_soap_to_file
        o        = {:file => filename}
        @adwords.dump_soap_options(o)
      end
      if @options.dump_soap_to_directory
        dir = @options.dump_soap_to_directory
        o   = {:directory => dir, :format => true}
        @adwords.dump_soap_options(o)
      end
      if @options.verbose and adwords.dump_soap?
        puts "Logging soap conversation to '#{adwords.dump_soap_where}'"
      end
      if !@adwords.dump_soap?
        puts "it is highly recommended to activate the dump soap log"
      end

      #
      # Extracts log options
      #
      # filename = File.join( tmp_dirname, File.basename(example_file).sub(/\.rb$/, ".log") )
      if @options.logger
        # filename = "sem.log"
        @adwords.logger = @options.logger
      end
      if @adwords.logger
        puts "Logger is active" if @options.verbose
      end
      @adwords
    end
def adwords
      return @adwords if @adwords

      #
      # select profile
      #
      options = {}
      if @options.config_name
        options[:config_file] = @options.config_name
      end
      @adwords = Sem4r::Adwords.new(@options.profile, options)
      if @options.verbose
        puts "using #{@adwords.profile} profile"
        puts "config file is #{@adwords.config_file}"
      end
      #
      # Extracts dump soap options
      #
      if @options.default_logging
        config_dir = File.join(ENV['HOME'], ".sem4r")
        unless File.exists?(config_dir)
          puts "Directory #{config_dir} not exists"
          FileUtils.mkdir(config_dir)
        end
        dir                             = File.join(config_dir, Time.new.strftime("%Y%m%d-soap-dump"))
        @options.dump_soap_to_directory = dir

        file                            = File.join(config_dir, Time.new.strftime("%Y%m%d-sem4r-log"))
        @options.logger                 = file
      end

      if @options.dump_soap_to_file
        filename = @options.dump_soap_to_file
        o        = {:file => filename}
        @adwords.dump_soap_options(o)
      end
      if @options.dump_soap_to_directory
        dir = @options.dump_soap_to_directory
        o   = {:directory => dir, :format => true}
        @adwords.dump_soap_options(o)
      end
      if @options.verbose and adwords.dump_soap?
        puts "Logging soap conversation to '#{adwords.dump_soap_where}'"
      end
      if !@adwords.dump_soap?
        puts "it is highly recommended to activate the dump soap log"
      end

      #
      # Extracts log options
      #
      # filename = File.join( tmp_dirname, File.basename(example_file).sub(/\.rb$/, ".log") )
      if @options.logger
        # filename = "sem.log"
        @adwords.logger = @options.logger
      end
      if @adwords.logger
        puts "Logger is active" if @options.verbose
      end
      @adwords
    end
initialize adwords according to command line options
 return [Sem4r::Adwords]