import{_ as a,c as e,ag as i,o as n}from"./chunks/framework.C1C4sYC0.js";const k=JSON.parse('{"title":"Carbon Ads","description":"","frontmatter":{},"headers":[],"relativePath":"reference/default-theme-carbon-ads.md","filePath":"en/reference/default-theme-carbon-ads.md","lastUpdated":1719560776000}'),t={name:"reference/default-theme-carbon-ads.md"};function l(p,s,r,h,d,o){return n(),e("div",null,s[0]||(s[0]=[i(`
VitePress has built in native support for Carbon Ads. By defining the Carbon Ads credentials in config, VitePress will display ads on the page.
export default {
themeConfig: {
carbonAds: {
code: 'your-carbon-code',
placement: 'your-carbon-placement'
}
}
}These values are used to call carbon CDN script as shown below.
\`//cdn.carbonads.com/carbon.js?serve=\${code}&placement=\${placement}\`To learn more about Carbon Ads configuration, please visit Carbon Ads website.
`,6)]))}const E=a(t,[["render",l]]);export{k as __pageData,E as default};