UNPKG

@mediarithmics/plugins-nodejs-sdk

Version:

This is the mediarithmics nodejs to help plugin developers bootstrapping their plugin without having to deal with most of the plugin boilerplate

37 lines (36 loc) 1.06 kB
import { AdRendererRequest, ClickUrlInfo, ItemProposal } from '../../mediarithmics'; export interface URLHandlebarsRootContext { REQUEST: AdRendererRequest; CREATIVE: HandlebarsRootContextCreative; IAS_CLIENT_ID?: string; ORGANISATION_ID: string; AD_GROUP_ID?: string; MEDIA_ID?: string; ENCODED_MEDIA_ID?: string; CAMPAIGN_ID?: string; CREATIVE_ID: string; CACHE_BUSTER: string; CB: string; } export interface HandlebarsRootContext extends URLHandlebarsRootContext { ENCODED_CLICK_URL: string; CLICK_URL: string; ADDITIONAL_HTML?: string; } export interface RecommendationsHandlebarsRootContext extends HandlebarsRootContext { private: { redirectUrls: ClickUrlInfo[]; clickableContents: ClickableContent[]; }; RECOMMENDATIONS: ItemProposal[]; } export interface ClickableContent { item_id?: string; catalog_token: string; $content_id: number; } export interface HandlebarsRootContextCreative { CLICK_URL?: string; WIDTH: string; HEIGHT: string; }