Module: VistarClient::API::CreativeCaching
Overview
Creative Caching API methods for pre-fetching and caching creative assets.
This module implements the Vistar Media Creative Caching API which allows media owners to request and cache creatives in advance. This is beneficial for poor internet connectivity scenarios and bandwidth optimization.
Returns all creatives that qualify to run on a venue over the next 30 hours.
Instance Method Summary collapse
-
#get_asset(device_id:, venue_id:, display_time:, display_area:, **options) ⇒ Hash
Request creative assets for caching in advance.
Instance Method Details
#get_asset(device_id:, venue_id:, display_time:, display_area:, **options) ⇒ Hash
Request creative assets for caching in advance.
Returns all creatives that qualify to run on the specified venue over the next 30 hours based on campaign targeting. Recommended to call once daily combined with downloading assets on first sight for dynamic creatives.
72 73 74 75 76 77 78 79 |
# File 'lib/vistar_client/api/creative_caching.rb', line 72 def get_asset(device_id:, venue_id:, display_time:, display_area:, **) validate_get_asset_params!(device_id, venue_id, display_time, display_area) payload = build_get_asset_payload(device_id, venue_id, display_time, display_area, ) response = connection.post('/api/v1/get_asset/json', payload) response.body end |