in lib/facebook_ads/ad_objects/server_side/content.rb [176:206]
def normalize
hash = {}
unless product_id.nil?
hash['id'] = product_id
end
unless quantity.nil?
hash['quantity'] = quantity
end
unless item_price.nil?
hash['item_price'] = item_price
end
unless title.nil?
hash['title'] = title
end
unless description.nil?
hash['description'] = description
end
unless brand.nil?
hash['brand'] = brand
end
unless category.nil?
hash['category'] = category
end
unless delivery_category.nil?
hash['delivery_category'] = FacebookAds::ServerSide::Util.normalize_delivery_category(
delivery_category
)
end
hash
end