diff --git a/lib/bing/ads/api/v12/data/report_request.rb b/lib/bing/ads/api/v12/data/report_request.rb index 7bb2297..d205b57 100644 --- a/lib/bing/ads/api/v12/data/report_request.rb +++ b/lib/bing/ads/api/v12/data/report_request.rb @@ -27,7 +27,7 @@ class << self def prepare(type, report_request_raw) report_request_raw[:columns] = prepare_columns( columns: report_request_raw[:columns], - type: type.to_s.classify + type: type.to_s.camelcase ) report_request_raw[:scope] = prepare_scope( @@ -48,7 +48,7 @@ def prepare(type, report_request_raw) :attributes! => { report_request: { "xmlns:i" => "http://www.w3.org/2001/XMLSchema-instance", - "i:type" => "#{namespace_identifier}:#{type.to_s.classify}ReportRequest" + "i:type" => "#{namespace_identifier}:#{type.to_s.camelcase}ReportRequest" } } }