lib/naver/searchad/api/ad/service.rb in naver-searchad-api-0.0.2 vs lib/naver/searchad/api/ad/service.rb in naver-searchad-api-0.0.3
- old
+ new
@@ -35,10 +35,10 @@
command.request_object = ad
execute_command(command, &block)
end
def update_ad(ad, field: '', options: nil, &block)
- validates_presence_of(%w[nccAdId adAttr], ad)
+ validates_presence_of(%w[nccAdId], ad)
command = make_command(:put, 'ads/{ad_id}', options)
command.params['ad_id'] = ad['nccAdId']
command.query['fields'] = field
command.request_object = ad