Skip to content

Commit

Permalink
Support different links for each carousel image, fall back to main link
Browse files Browse the repository at this point in the history
  • Loading branch information
thebrettd committed Jun 29, 2017
1 parent 5d1fd9d commit 04bb5a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/facebook_ads/ad_creative.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def carousel(name:, page_id:, instagram_actor_id: nil, link:, message:, assets:,
'call_to_action' => { 'type' => call_to_action_type },
'child_attachments' => assets.collect do |asset|
{
'link' => link,
'link' => asset[:link] || link,
'image_hash' => asset[:hash],
'name' => asset[:title],
# 'description' => asset[:title],
Expand Down

0 comments on commit 04bb5a4

Please sign in to comment.