{"id":10830,"date":"2024-08-27T17:49:25","date_gmt":"2024-08-27T15:49:25","guid":{"rendered":"https:\/\/refinery89.com\/docs\/ios-monetize-app-sdk-documentation\/user-manual\/ad-formats\/outstream\/"},"modified":"2024-08-27T17:55:31","modified_gmt":"2024-08-27T15:55:31","slug":"outstream","status":"publish","type":"docs","link":"https:\/\/refinery89.com\/fr\/docs\/ios-monetize-app-sdk-documentation\/user-manual\/ad-formats\/outstream\/","title":{"rendered":"Hors-flux"},"content":{"rendered":"<h1 id=\"Prerequisites\" data-renderer-start-pos=\"1\">Prerequisites<\/h1>\n<ul class=\"ak-ul\" data-indent-level=\"1\">\n<li>\n<p data-renderer-start-pos=\"18\"><a class=\"cc-1rn59kg\" title=\"https:\/\/refinery89.atlassian.net\/wiki\/x\/HgD7P\" href=\"https:\/\/refinery89.com\/fr\/docs\/monetize-app-sdk-documentation-ios\/user-manual\/commencer-optimiser-revenus-publicitaires\/\" target=\"_blank\" rel=\"noopener\" data-testid=\"link-with-safety\" data-renderer-mark=\"true\">Commencer<\/a>.<\/p>\n<\/li>\n<\/ul>\n<h2 id=\"Wrapper\" data-renderer-start-pos=\"34\">Wrapper<\/h2>\n<p data-renderer-start-pos=\"43\">For creating a wrapper, you can follow this small guide: <a class=\"cc-1rn59kg\" title=\"\/wiki\/spaces\/R8P\/pages\/1027014821\" href=\"https:\/\/refinery89.com\/fr\/docs\/monetize-app-sdk-documentation-ios\/user-manual\/creating-a-wrapper\/\" target=\"_blank\" rel=\"noopener\" data-testid=\"link-with-safety\" data-renderer-mark=\"true\">Creating a Wrapper<\/a>.<\/p>\n<h1 id=\"Show-the-Ad\" data-renderer-start-pos=\"121\">Show the Ad<\/h1>\n<div class=\"ak-editor-panel cc-tqp4ke sdk-info\" data-panel-type=\"info\">\n<div class=\"ak-editor-panel__content\">\n<p data-renderer-start-pos=\"135\">In the example we are using a Test Id.<\/p>\n<p data-renderer-start-pos=\"176\">If you are not testing the app, change it for the proper ID that you got from us.<\/p>\n<\/p><\/div>\n<\/div>\n<p><\/br><\/p>\n<p data-renderer-start-pos=\"260\">The method below will add an Ad to the provided wrapper.<\/p>\n<div class=\"code-block\">\n<pre>\r\nfunc addOutstrem(wrapper:UIView){\r\n    let configurationID = ConfigBuilder.companion.VIDEO_OUTSTREAM_TEST_R89_CONFIG_ID\r\n    RefineryAdFactory.shared.createVideoOutstreamBanner(\r\n       configurationID: configurationID, \r\n       wrapper: wrapper,\r\n       lifecycleCallbacks: nil)\r\n}\r\n    <\/pre>\n<\/div>\n<div class=\"code-block cc-15qwbrk\"><\/div>\n<h1 id=\"Lifecycle-Events\" data-renderer-start-pos=\"589\">Lifecycle Events<\/h1>\n<p data-renderer-start-pos=\"607\">You can subscribe to these events with the same method by passing a new instance of <code class=\"code cc-1o5d2cw\" data-renderer-mark=\"true\">BannerEventListener<\/code> as a <code class=\"code cc-1o5d2cw\" data-renderer-mark=\"true\">lifecycleCallbacks<\/code>parameter to the <code class=\"code cc-1o5d2cw\" data-renderer-mark=\"true\">createBanner<\/code> method. Details about this object can be found in the <a class=\"cc-1rn59kg\" title=\"\/wiki\/spaces\/R8P\/pages\/1023180848\" href=\"https:\/\/refinery89.com\/fr\/docs\/monetize-app-sdk-documentation-ios\/code-reference\/\" target=\"_blank\" rel=\"noopener\" data-testid=\"link-with-safety\" data-renderer-mark=\"true\">Reference<\/a>.<\/p>\n<p data-renderer-start-pos=\"830\">Here is what the implementation looks like.<\/p>\n<p data-renderer-start-pos=\"875\">First, extend from the <code class=\"code cc-1o5d2cw\" data-renderer-mark=\"true\">BannerEventListener<\/code>.<\/p>\n<div class=\"code-block\">\n<pre>\r\n        class BannerEventLogger: BannerEventListener {\r\n            override func onLayoutChange(width: Int32, height: Int32) {\r\n                print(\u201conLayoutChange\u201d,\u201dwidth=\\(width)\u201d,\u201dheight=\\(height)\u201d)\r\n            }\r\n\r\n            override func onLoaded() {\r\n                print(\u201conLoaded\u201d)\r\n            }\r\n\r\n            override func onOpen() {\r\n                print(\u201conOpen\u201d)\r\n            }\r\n\r\n            override func onClick() {\r\n                print(\u201conClick\u201d)\r\n            }\r\n\r\n            override func onClose() {\r\n                print(\u201conClose\u201d)\r\n            }\r\n\r\n            override func onImpression() {\r\n                print(\u201conImpression\u201d)\r\n            }\r\n\r\n            override func onFailedToLoad(error: R89LoadError) {\r\n                print(\u201conFailedToLoad\u201d,\u201derror=\\(error)\u201d)\r\n            }\r\n        }   \r\n    <\/pre>\n<\/div>\n<div class=\"code-block cc-15qwbrk\"><\/div>\n<p data-renderer-start-pos=\"1534\">Next, provide the instance of <code class=\"code cc-1o5d2cw\" data-renderer-mark=\"true\">BannerEventLogger<\/code> to <code class=\"code cc-1o5d2cw\" data-renderer-mark=\"true\">createBanner<\/code> method, via <code class=\"code cc-1o5d2cw\" data-renderer-mark=\"true\">lifecycleCallbacks<\/code> parameter.<\/p>\n<div class=\"code-block\">\n<pre>\r\n        func addOutstrem(wrapper:UIView){\r\n            let configurationID = ConfigBuilder.companion.VIDEO_OUTSTREAM_TEST_R89_CONFIG_ID\r\n            let bannerEventLogger = BanneEventLogger()\r\n            RefineryAdFactory.shared.createVideoOutstreamBanner(configurationID: configurationID, wrapper: wrapper, lifecycleCallbacks: bannerEventLogger)\r\n        }\r\n    <\/pre>\n<\/div>\n<div class=\"code-block cc-15qwbrk\"><\/div>","protected":false},"featured_media":0,"parent":10819,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-10830","docs","type-docs","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Outstream | Refinery89<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/refinery89.com\/fr\/docs\/ios-monetize-app-sdk-documentation\/user-manual\/formats-publicitaires\/outstream\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Outstream | Refinery89\" \/>\n<meta property=\"og:description\" content=\"Prerequisites Get Started. Wrapper For creating a wrapper, you can follow this small guide: Creating a Wrapper. Show the Ad In the example we are using a Test Id. If you are not testing the app, change it for the proper ID that you got from us. The method below will add an Ad to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/refinery89.com\/fr\/docs\/ios-monetize-app-sdk-documentation\/user-manual\/formats-publicitaires\/outstream\/\" \/>\n<meta property=\"og:site_name\" content=\"Refinery89\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Refinery89\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-27T15:55:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/refinery89.com\/wp-content\/uploads\/2025\/08\/r89-thumbnail.png\" \/>\n\t<meta property=\"og:image:width\" content=\"200\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@refinery89\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/refinery89.com\/docs\/ios-monetize-app-sdk-documentation\/user-manual\/ad-formats\/outstream\/\",\"url\":\"https:\/\/refinery89.com\/docs\/ios-monetize-app-sdk-documentation\/user-manual\/ad-formats\/outstream\/\",\"name\":\"Outstream | Refinery89\",\"isPartOf\":{\"@id\":\"https:\/\/refinery89.com\/#website\"},\"datePublished\":\"2024-08-27T15:49:25+00:00\",\"dateModified\":\"2024-08-27T15:55:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/refinery89.com\/docs\/ios-monetize-app-sdk-documentation\/user-manual\/ad-formats\/outstream\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/refinery89.com\/docs\/ios-monetize-app-sdk-documentation\/user-manual\/ad-formats\/outstream\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/refinery89.com\/docs\/ios-monetize-app-sdk-documentation\/user-manual\/ad-formats\/outstream\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/refinery89.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"IOS &#8211; Monetize App SDK Documentation\",\"item\":\"https:\/\/refinery89.com\/it\/docs\/ios-monetize-app-sdk-documentation\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Privato: User Manual\",\"item\":\"https:\/\/refinery89.com\/it\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Ad Formats\",\"item\":\"https:\/\/refinery89.com\/docs\/ios-monetize-app-sdk-documentation\/user-manual\/ad-formats\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Outstream\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/refinery89.com\/#website\",\"url\":\"https:\/\/refinery89.com\/\",\"name\":\"Refinery89\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/refinery89.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/refinery89.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/refinery89.com\/#organization\",\"name\":\"Refinery89\",\"alternateName\":\"R89\",\"url\":\"https:\/\/refinery89.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/refinery89.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/refinery89.com\/wp-content\/uploads\/2025\/08\/r89-thumbnail.png\",\"contentUrl\":\"https:\/\/refinery89.com\/wp-content\/uploads\/2025\/08\/r89-thumbnail.png\",\"width\":200,\"height\":200,\"caption\":\"Refinery89\"},\"image\":{\"@id\":\"https:\/\/refinery89.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Refinery89\/\",\"https:\/\/x.com\/refinery89\",\"https:\/\/www.linkedin.com\/company\/refinery89\/\",\"https:\/\/www.youtube.com\/@refinery89\",\"https:\/\/www.instagram.com\/refinery_89\/\",\"https:\/\/www.reddit.com\/user\/Refinery89\/\",\"https:\/\/share.google\/K8hFf3ktmUrTi1XCa\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Outstream | Refinery89","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/refinery89.com\/fr\/docs\/ios-monetize-app-sdk-documentation\/user-manual\/formats-publicitaires\/outstream\/","og_locale":"fr_FR","og_type":"article","og_title":"Outstream | Refinery89","og_description":"Prerequisites Get Started. Wrapper For creating a wrapper, you can follow this small guide: Creating a Wrapper. Show the Ad In the example we are using a Test Id. If you are not testing the app, change it for the proper ID that you got from us. The method below will add an Ad to [&hellip;]","og_url":"https:\/\/refinery89.com\/fr\/docs\/ios-monetize-app-sdk-documentation\/user-manual\/formats-publicitaires\/outstream\/","og_site_name":"Refinery89","article_publisher":"https:\/\/www.facebook.com\/Refinery89\/","article_modified_time":"2024-08-27T15:55:31+00:00","og_image":[{"width":200,"height":200,"url":"https:\/\/refinery89.com\/wp-content\/uploads\/2025\/08\/r89-thumbnail.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@refinery89","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/refinery89.com\/docs\/ios-monetize-app-sdk-documentation\/user-manual\/ad-formats\/outstream\/","url":"https:\/\/refinery89.com\/docs\/ios-monetize-app-sdk-documentation\/user-manual\/ad-formats\/outstream\/","name":"Outstream | Refinery89","isPartOf":{"@id":"https:\/\/refinery89.com\/#website"},"datePublished":"2024-08-27T15:49:25+00:00","dateModified":"2024-08-27T15:55:31+00:00","breadcrumb":{"@id":"https:\/\/refinery89.com\/docs\/ios-monetize-app-sdk-documentation\/user-manual\/ad-formats\/outstream\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/refinery89.com\/docs\/ios-monetize-app-sdk-documentation\/user-manual\/ad-formats\/outstream\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/refinery89.com\/docs\/ios-monetize-app-sdk-documentation\/user-manual\/ad-formats\/outstream\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/refinery89.com\/"},{"@type":"ListItem","position":2,"name":"IOS &#8211; Monetize App SDK Documentation","item":"https:\/\/refinery89.com\/it\/docs\/ios-monetize-app-sdk-documentation\/"},{"@type":"ListItem","position":3,"name":"Privato: User Manual","item":"https:\/\/refinery89.com\/it\/"},{"@type":"ListItem","position":4,"name":"Ad Formats","item":"https:\/\/refinery89.com\/docs\/ios-monetize-app-sdk-documentation\/user-manual\/ad-formats\/"},{"@type":"ListItem","position":5,"name":"Outstream"}]},{"@type":"WebSite","@id":"https:\/\/refinery89.com\/#website","url":"https:\/\/refinery89.com\/","name":"Refinery89","description":"","publisher":{"@id":"https:\/\/refinery89.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/refinery89.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/refinery89.com\/#organization","name":"Refinery89","alternateName":"R89","url":"https:\/\/refinery89.com\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/refinery89.com\/#\/schema\/logo\/image\/","url":"https:\/\/refinery89.com\/wp-content\/uploads\/2025\/08\/r89-thumbnail.png","contentUrl":"https:\/\/refinery89.com\/wp-content\/uploads\/2025\/08\/r89-thumbnail.png","width":200,"height":200,"caption":"Refinery89"},"image":{"@id":"https:\/\/refinery89.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Refinery89\/","https:\/\/x.com\/refinery89","https:\/\/www.linkedin.com\/company\/refinery89\/","https:\/\/www.youtube.com\/@refinery89","https:\/\/www.instagram.com\/refinery_89\/","https:\/\/www.reddit.com\/user\/Refinery89\/","https:\/\/share.google\/K8hFf3ktmUrTi1XCa"]}]}},"comment_count":0,"_links":{"self":[{"href":"https:\/\/refinery89.com\/fr\/wp-json\/wp\/v2\/docs\/10830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/refinery89.com\/fr\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/refinery89.com\/fr\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/refinery89.com\/fr\/wp-json\/wp\/v2\/comments?post=10830"}],"version-history":[{"count":0,"href":"https:\/\/refinery89.com\/fr\/wp-json\/wp\/v2\/docs\/10830\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/refinery89.com\/fr\/wp-json\/wp\/v2\/docs\/10819"}],"wp:attachment":[{"href":"https:\/\/refinery89.com\/fr\/wp-json\/wp\/v2\/media?parent=10830"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/refinery89.com\/fr\/wp-json\/wp\/v2\/doc_tag?post=10830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}