lock_advertisement.rb