lib/sklik-api/campaign_parts/adtext.rb in sklik-api-0.0.13 vs lib/sklik-api/campaign_parts/adtext.rb in sklik-api-0.0.14

- old
+ new

@@ -2,10 +2,14 @@ class SklikApi class Adtext NAME = "ad" + ADDITIONAL_FIELDS = [ + :premiseMode, :premiseID + ] + include Object =begin Example of input hash { :headline => "Super headline", @@ -38,9 +42,15 @@ args[:creative1] = @args[:headline] args[:creative2] = @args[:description1] args[:creative3] = @args[:description2] args[:clickthruText] = @args[:display_url] args[:clickthruUrl] = @args[:url] + + ADDITIONAL_FIELDS.each do |add_info| + field_name = add_info.to_s.underscore.to_sym + args[add_info] = @args[field_name] if @args[field_name] + end + out << args #return output out end