lib/epom/placement.rb in epom-0.9.1 vs lib/epom/placement.rb in epom-0.9.2
- old
+ new
@@ -33,24 +33,32 @@
:body_parameters => [:zoneId, :type, :name, :description, :hash, :timestamp, :username],
:method => :post
},
:update_standard_placement => {
:url => '/rest-api/placements/update/standard.do',
- :body_parameters => [:id, :zoneId, :type, :name, :description, :adUnit, :height, :width, :allowVariableBannerSizes, :defaultCode, :rotateInterval, :hash, :timestamp, :username],
+ :body_parameters => [:id, :zoneId, :type, :name, :description, :adUnitId, :size, 'size.height'.to_sym, 'size.width'.to_sym, :allowVariableBannerSizes, :defaultCode, :rotateInterval, :hash, :timestamp, :username],
:method => :post
},
:create_standard_placement => {
:url => '/rest-api/placements/update/standard.do',
:body_parameters => [:zoneId, :type, :name, :description, :adUnitId, :size, 'size.height'.to_sym, 'size.width'.to_sym, :allowVariableBannerSizes, :defaultCode, :rotateInterval, :hash, :timestamp, :username],
:method => :post
+ },
+ :update_placement => {
+ :url => '/rest-api/placements/update/standard.do',
+ :body_parameters => [:id, :zoneId, :type, :name, :description, :adUnitId, :size, 'size.height'.to_sym, 'size.width'.to_sym, :allowVariableBannerSizes, :defaultCode, :rotateInterval, :hash, :timestamp, :username],
+ :method => :post
+ },
+ :create_placement => {
+ :url => '/rest-api/placements/update/standard.do',
+ :body_parameters => [:zoneId, :type, :name, :description, :adUnitId, :size, 'size.height'.to_sym, 'size.width'.to_sym, :allowVariableBannerSizes, :defaultCode, :rotateInterval, :hash, :timestamp, :username],
+ :method => :post
}
-
-
}
end
def self.replace_params_in_url(url, url_params)
- url.gsub!('PLACEMENT_ID', url_params[:placementId]) if url.include?('PLACEMENT_ID')
+ url.gsub!('PLACEMENT_ID', url_params[:placementId].to_s) if url.include?('PLACEMENT_ID')
url
end
end
end
\ No newline at end of file