Method: FacebookAds::Test::Fixtures#create_creative
- Defined in:
- lib/facebook_ads/test/fixtures.rb
#create_creative(image = nil, params = {}) ⇒ Object
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/facebook_ads/test/fixtures.rb', line 73 def create_creative(image = nil, params = {}) image ||= create_image ad_account.adcreatives.create({ name: randomize('Test Creative'), object_story_spec: { page_id: config.page_id, link_data: { message: 'try it out', link: config.app_url, caption: 'www.example.com', image_hash: image.hash, } } }) end |