Method: Naver::Searchad::Api::AdKeyword::Service#update_ad_keywords
- Defined in:
- lib/naver/searchad/api/ad-keyword/service.rb
#update_ad_keywords(ad_keywords, field: '', options: nil, &block) ⇒ Object
56 57 58 59 60 61 62 63 |
# File 'lib/naver/searchad/api/ad-keyword/service.rb', line 56 def update_ad_keywords(ad_keywords, field: '', options: nil, &block) ad_keywords.each { |kw| validates_presence_of(%w[nccKeywordId nccAdgroupId], kw) } command = make_command(:put, 'keywords', ) command.query['fields'] = field command.request_object = ad_keywords execute_command(command, &block) end |