{"id":27829,"date":"2022-06-09T08:01:28","date_gmt":"2022-06-09T08:01:28","guid":{"rendered":"http:\/\/create-in-video-ads-in-nuxt.js"},"modified":"2022-06-09T08:01:28","modified_gmt":"2022-06-09T08:01:28","slug":"create-in-video-ads-in-nuxt-js","status":"publish","type":"post","link":"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/","title":{"rendered":"Create In-Video Ads in NuxtJS"},"content":{"rendered":"<div class=\"wp-block-cloudinary-markdown \"><p>The popularity of video marketing stems from people\u2019s preference of video over text media. It\u2019s human nature: watching something enjoyable and easy to understand is more accessible than reading something.<\/p>\n<p>Using in-video advertising, anyone can get a competitive advantage over their market competitors.<\/p>\n<p>In this post, we\u2019ll learn how to create in-video ads in Nuxt.js using Cloudinary as our video hosting service.<\/p>\n<h2>Sandbox<\/h2>\n<p>We completed this project in a <a href=\"https:\/\/codesandbox.io\/s\/distracted-boyd-ez3fz5\">Code<\/a><a href=\"https:\/\/codesandbox.io\/s\/distracted-boyd-ez3fz5\">S<\/a><a href=\"https:\/\/codesandbox.io\/s\/damp-bird-56fx74?file=\/pages\/index.vue\">andbox<\/a>. Fork and run it to quickly get started.<\/p>\n<\/div>\n  \n  <div class=\"wp-block-cloudinary-code-sandbox \">\n    <iframe\n      src=\"https:\/\/codesandbox.io\/embed\/damp-bird-56fx74?theme=dark&amp;codemirror=1&amp;highlights=&amp;editorsize=50&amp;fontsize=14&amp;expanddevtools=0&amp;hidedevtools=0&amp;eslint=0&amp;forcerefresh=0&amp;hidenavigation=0&amp;initialpath=%2F&amp;module=&amp;moduleview=0&amp;previewwindow=&amp;view=&amp;runonclick=1\"\n      height=\"500\"\n      style=\"width: 100%;\"\n      title=\"Create in-video ads in Nuxt.js\"\n      loading=\"lazy\"\n      allow=\"accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking\"\n      sandbox=\"allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts\"\n    ><\/iframe>\n  <\/div>\n\n  <div class=\"wp-block-cloudinary-markdown \"><h2>GitHub repository<\/h2>\n<p><a href=\"https:\/\/github.com\/Olanetsoft\/in-video-ad-nuxtjs\">https:\/\/github.com\/Olanetsoft\/in-video-ad-nuxtjs<\/a><\/p>\n<h1>Getting started with Nuxt.js<\/h1>\n<p><a href=\"https:\/\/nuxtjs.org\/\">Nuxt.js<\/a> is the bedrock of our Vue.js project, providing structure and flexibility while allowing us to scale with confidence.<\/p>\n<p>It is extensible, offering a robust module ecosystem and hooks engine that makes it simple to integrate our REST or GraphQL endpoints, favorite CMS, CSS frameworks, and other third-party applications.<\/p>\n<h1>Project setup and installation<\/h1>\n<p>To create a new project, we will use the command below to scaffold a new project:<\/p>\n<pre class=\"js-syntax-highlighted\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml shcb-wrap-lines\">    npx create-nuxt-app <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">project-name<\/span>&gt;<\/span>\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTML, XML<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">xml<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n<p>A series of prompts will appear as a result of the command. Here are the defaults we recommend:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/c_limit,w_2000\/f_auto\/q_auto\/media_jams\/s_CCAE46C5A34EA8D553A524BD2BA3EABCE310387028638A528EEB1DF8D53E8695_1652534038302_Screenshot+2022-05-12+at+21.40.49.png\" alt=\"Create in-video ads in Nuxt\" loading=\"lazy\" class=\"c-transformed-asset\"  width=\"1311\" height=\"420\"\/><\/p>\n<p>The command creates a Nuxt.js project with TailwindCSS called <code>video-ad-nuxtjs<\/code>.<\/p>\n<p><a href=\"https:\/\/tailwindcss.com\/\">TailwindCSS<\/a> is a CSS framework containing a lot of classes to help us customize our website\u2019s style.<\/p>\n<p>Next, we need to navigate into the project directory and start the development server using the command below.<\/p>\n<pre class=\"js-syntax-highlighted\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml shcb-wrap-lines\">    cd <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">project<\/span> <span class=\"hljs-attr\">name<\/span>&gt;<\/span> &amp;&amp; yarn dev\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTML, XML<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">xml<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n<p>Nuxt.js will start a hot-reloading development environment accessible by default at <code>http:\/\/localhost:3000<\/code><\/p>\n<h1>Configuring Cloudinary in Nuxt.js<\/h1>\n<p>We need to modify the <code>nuxt.config.js<\/code> file by adding Cloudinary CDNs to the <code>link<\/code> and <code>script<\/code> sections, as shown below:<\/p>\n<pre class=\"js-syntax-highlighted\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">    head: {\n        ...\n        htmlAttrs: {\n         ...\n        },\n        <span class=\"hljs-attr\">meta<\/span>: &#91;\n          ...\n        ],\n        <span class=\"hljs-attr\">link<\/span>: &#91;\n          { <span class=\"hljs-attr\">rel<\/span>: <span class=\"hljs-string\">'icon'<\/span>, <span class=\"hljs-attr\">type<\/span>: <span class=\"hljs-string\">'image\/x-icon'<\/span>, <span class=\"hljs-attr\">href<\/span>: <span class=\"hljs-string\">'\/favicon.ico'<\/span> },\n          {\n            <span class=\"hljs-attr\">rel<\/span>: <span class=\"hljs-string\">'stylesheet'<\/span>,\n            <span class=\"hljs-attr\">href<\/span>: <span class=\"hljs-string\">'https:\/\/unpkg.com\/cloudinary-video-player@1.5.9\/dist\/cld-video-player.min.css'<\/span>,\n          },\n        ],\n        <span class=\"hljs-attr\">script<\/span>: &#91;\n          {\n            <span class=\"hljs-attr\">src<\/span>: <span class=\"hljs-string\">'https:\/\/unpkg.com\/cloudinary-core@latest\/cloudinary-core-shrinkwrap.min.js'<\/span>,\n          },\n          {\n            <span class=\"hljs-attr\">src<\/span>: <span class=\"hljs-string\">'https:\/\/unpkg.com\/cloudinary-video-player@1.5.9\/dist\/cld-video-player.min.js'<\/span>,\n          },\n        ],\n      },\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n<p>Next, we need to include Cloudinary\u2019s cloud name as an environment variable. To do this, we need to create a <code>.env<\/code> file in the root directory, and in this file, add the snippet below:<\/p>\n<pre class=\"js-syntax-highlighted\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml shcb-wrap-lines\">    NUXT_ENV_CLOUDINARY_CLOUD_NAME=<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">YOUR<\/span> <span class=\"hljs-attr\">CLOUD<\/span> <span class=\"hljs-attr\">NAME<\/span> <span class=\"hljs-attr\">HERE<\/span>&gt;<\/span>\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTML, XML<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">xml<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n<h2>Creating the in-video ads<\/h2>\n<p>We modify the <code>index.vue<\/code> file in the pages folder to the following:<\/p>\n<p><a href=\"https:\/\/gist.github.com\/Olanetsoft\/a91e57eb66e896a64480321bb434ca0b\">https:\/\/gist.github.com\/Olanetsoft\/a91e57eb66e896a64480321bb434ca0b<\/a><\/p>\n<p><a href=\"https:\/\/gist.github.com\/Olanetsoft\/a91e57eb66e896a64480321bb434ca0b\">https:\/\/gist.github.com\/Olanetsoft\/a91e57eb66e896a64480321bb434ca0b<\/a><\/p>\n<p>The code snippet above did the following:<\/p>\n<ul>\n<li>Created data properties for managing the Cloudinary instance, video element, toggling the ad, monitoring the video player, and showing the ad.<\/li>\n<li>Created a <code>Cloudinary<\/code> instance, initialized the <code>video player<\/code>, <code>ad video player<\/code>, assigned a source to the video using the uploaded video\u2019s <code>publicId,<\/code> and played the video upon page load using the <code>mounted<\/code> lifecycle method.<\/li>\n<li>To close and show the advertisement, created a <code>closeShowAds<\/code> and <code>openShowAds<\/code> method.<\/li>\n<li>To monitor the video, used the <code>created<\/code> lifecycle function to show an advertisement after <code>5<\/code> seconds and closed it after another <code>15<\/code> seconds.<\/li>\n<\/ul>\n<p>After testing our application, we should get something similar to what we have below.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/c_limit,w_2000\/f_auto\/q_auto\/media_jams\/s_CCAE46C5A34EA8D553A524BD2BA3EABCE310387028638A528EEB1DF8D53E8695_1652535404262_Screenshot+2022-05-14+at+14.33.39.png\" alt=\"Create in-video ads in Nuxt - Before Advert\" loading=\"lazy\" class=\"c-transformed-asset\"  width=\"1953\" height=\"1154\"\/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/c_limit,w_2000\/f_auto\/q_auto\/media_jams\/s_CCAE46C5A34EA8D553A524BD2BA3EABCE310387028638A528EEB1DF8D53E8695_1652535404277_Screenshot+2022-05-14+at+14.34.22.png\" alt=\"Create in-video ads in Nuxt - During Advert\" loading=\"lazy\" class=\"c-transformed-asset\"  width=\"1827\" height=\"1111\"\/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/c_limit,w_2000\/f_auto\/q_auto\/media_jams\/s_CCAE46C5A34EA8D553A524BD2BA3EABCE310387028638A528EEB1DF8D53E8695_1652535404299_Screenshot+2022-05-14+at+14.35.37.png\" alt=\"Create in-video ads in Nuxt - After Advert\" loading=\"lazy\" class=\"c-transformed-asset\"  width=\"1709\" height=\"1037\"\/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/c_limit,w_2000\/f_auto\/q_auto\/media_jams\/s_CCAE46C5A34EA8D553A524BD2BA3EABCE310387028638A528EEB1DF8D53E8695_1652624799586_video-ad-nuxtjs.gif\" alt=\"Create in-video ads in Nuxt\" loading=\"lazy\" class=\"c-transformed-asset\"  width=\"1280\" height=\"720\"\/><\/p>\n<h1>Conclusion<\/h1>\n<p>This post demonstrated how to create in-video ads in Nuxt.js.<\/p>\n<h1>Resources<\/h1>\n<p>You may also find these resources helpful.<\/p>\n<ul>\n<li>\n<a href=\"https:\/\/cloudinary.com\/documentation\/transformation_reference\">Cloudinary transformation URL reference<\/a>\n<\/li>\n<li>\n<a href=\"https:\/\/cloudinary.com\/documentation\">Cloudinary Documentation<\/a>\n<\/li>\n<\/ul>\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":41,"featured_media":27830,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_cloudinary_featured_overwrite":false,"footnotes":""},"categories":[1],"tags":[134,372,371,303],"class_list":["post-27829","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-guest-post","tag-nuxtjs","tag-under-review","tag-video"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.6 (Yoast SEO v26.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Create In-Video Ads in NuxtJS<\/title>\n<meta name=\"description\" content=\"This post demonstrated how to create in-video ads in Nuxt.js.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create In-Video Ads in NuxtJS\" \/>\n<meta property=\"og:description\" content=\"This post demonstrated how to create in-video ads in Nuxt.js.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudinary Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-09T08:01:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681926154\/Web_Assets\/blog\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d.jpg?_i=AA\" \/>\n\t<meta property=\"og:image:width\" content=\"1732\" \/>\n\t<meta property=\"og:image:height\" content=\"1155\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"NewsArticle\",\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/\"},\"author\":{\"name\":\"\",\"@id\":\"\"},\"headline\":\"Create In-Video Ads in NuxtJS\",\"datePublished\":\"2022-06-09T08:01:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/\"},\"wordCount\":5,\"publisher\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681926154\/Web_Assets\/blog\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d.jpg?_i=AA\",\"keywords\":[\"Guest Post\",\"NuxtJS\",\"Under Review\",\"Video\"],\"inLanguage\":\"en-US\",\"copyrightYear\":\"2022\",\"copyrightHolder\":{\"@id\":\"https:\/\/cloudinary.com\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/\",\"url\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/\",\"name\":\"Create In-Video Ads in NuxtJS\",\"isPartOf\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681926154\/Web_Assets\/blog\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d.jpg?_i=AA\",\"datePublished\":\"2022-06-09T08:01:28+00:00\",\"description\":\"This post demonstrated how to create in-video ads in Nuxt.js.\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/#primaryimage\",\"url\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681926154\/Web_Assets\/blog\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d.jpg?_i=AA\",\"contentUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681926154\/Web_Assets\/blog\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d.jpg?_i=AA\",\"width\":1732,\"height\":1155},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudinary.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create In-Video Ads in NuxtJS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#website\",\"url\":\"https:\/\/cloudinary.com\/blog\/\",\"name\":\"Cloudinary Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudinary.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\",\"name\":\"Cloudinary Blog\",\"url\":\"https:\/\/cloudinary.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA\",\"contentUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA\",\"width\":312,\"height\":60,\"caption\":\"Cloudinary Blog\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Create In-Video Ads in NuxtJS","description":"This post demonstrated how to create in-video ads in Nuxt.js.","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:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/","og_locale":"en_US","og_type":"article","og_title":"Create In-Video Ads in NuxtJS","og_description":"This post demonstrated how to create in-video ads in Nuxt.js.","og_url":"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/","og_site_name":"Cloudinary Blog","article_published_time":"2022-06-09T08:01:28+00:00","og_image":[{"width":1732,"height":1155,"url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681926154\/Web_Assets\/blog\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d.jpg?_i=AA","type":"image\/jpeg"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/#article","isPartOf":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/"},"author":{"name":"","@id":""},"headline":"Create In-Video Ads in NuxtJS","datePublished":"2022-06-09T08:01:28+00:00","mainEntityOfPage":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/"},"wordCount":5,"publisher":{"@id":"https:\/\/cloudinary.com\/blog\/#organization"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/#primaryimage"},"thumbnailUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681926154\/Web_Assets\/blog\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d.jpg?_i=AA","keywords":["Guest Post","NuxtJS","Under Review","Video"],"inLanguage":"en-US","copyrightYear":"2022","copyrightHolder":{"@id":"https:\/\/cloudinary.com\/#organization"}},{"@type":"WebPage","@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/","url":"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/","name":"Create In-Video Ads in NuxtJS","isPartOf":{"@id":"https:\/\/cloudinary.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/#primaryimage"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/#primaryimage"},"thumbnailUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681926154\/Web_Assets\/blog\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d.jpg?_i=AA","datePublished":"2022-06-09T08:01:28+00:00","description":"This post demonstrated how to create in-video ads in Nuxt.js.","breadcrumb":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/#primaryimage","url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681926154\/Web_Assets\/blog\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d.jpg?_i=AA","contentUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681926154\/Web_Assets\/blog\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d.jpg?_i=AA","width":1732,"height":1155},{"@type":"BreadcrumbList","@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-in-video-ads-in-nuxt-js\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudinary.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Create In-Video Ads in NuxtJS"}]},{"@type":"WebSite","@id":"https:\/\/cloudinary.com\/blog\/#website","url":"https:\/\/cloudinary.com\/blog\/","name":"Cloudinary Blog","description":"","publisher":{"@id":"https:\/\/cloudinary.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudinary.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/cloudinary.com\/blog\/#organization","name":"Cloudinary Blog","url":"https:\/\/cloudinary.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA","contentUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA","width":312,"height":60,"caption":"Cloudinary Blog"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":""}]}},"jetpack_featured_media_url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681926154\/Web_Assets\/blog\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d\/7696e7e21eed7f5c5b5b843ef38d6ae44e05b594-1732x1155-1_27830cbb4d.jpg?_i=AA","_links":{"self":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/27829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/comments?post=27829"}],"version-history":[{"count":0,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/27829\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/media\/27830"}],"wp:attachment":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/media?parent=27829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/categories?post=27829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/tags?post=27829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}