Skip to main content
Toggle navigation menu
English (US)
日本語
한국어(대한민국)
简体中文
Contact us
Sign in
Product updates
Check out the latest updates on Moloco Ads features.
Search
Moloco Ads release note
Promoted article
Moloco Ads release note (24.9.12)
Moloco Ads release note (24.8.22)
Moloco Ads release note (24.8.8)
Moloco Ads release note (24.7.25)
Moloco Ads release note (24.7.18)
Moloco Ads release note (24.7.11)
See all 75 articles
<% if (style === 'banner') { %> <% var isOnBottom = locations.indexOf('home-top') === -1 && locations.indexOf('home-middle') === -1; %>
<% if (heading) { %>
<%= heading %>
<% } %> <% if (body) { %>
<%= body %>
<% } %>
<%= label %>
<% } else if (style === 'boxed') { %>
<% if (heading) { %>
<%= heading %>
<% } %> <% if (body) { %>
<%= body %>
<% } %>
<%= label %>
<% } else if (style === 'boxed-image') { %>
<% if (heading) { %>
<%= heading %>
<% } %> <% if (body) { %>
<%= body %>
<% } %>
<%= label %>
<% } %>
<% categories.forEach(function(category) { %>
<% var categoryName = window.categoryNames && window.categoryNames.hasOwnProperty(category.name) ? window.categoryNames[category.name] : category.name %> <% if (category.id === activeCategoryId) { %>
<%= categoryName %>
<% } else { %>
<%= categoryName %>
<% } %> <% if (category.sections.length) { %>
<% category.sections.forEach(function(section) { %>
<%= section.name %>
<% }); %>
<% } %>
<% }); %>
Categories
<% categories.forEach(function(category, index) { %>
<%= category.name %>
<%= partial('partial-article-list-sections', { id: 'category-' + category.id, parentId: '#sidebar-navigation', sections: category.sections, activeCategoryId: activeCategoryId, activeSectionId: activeSectionId, activeArticleId: activeArticleId, partial: partial }) %>
<% }); %>
<% var activeCategory = categories.filter(function(category) { return category.isActive; })[0] || null; %> <% if (typeof maxArticles === 'undefined' || !maxArticles) maxArticles = 5; %> <% if (activeCategory && activeCategory.sections.length) { %>
Toggle navigation menu
<% activeCategory.sections.forEach(function(section) { %>
<%= section.name %>
<%= partial('partial-section-list-sections', { id: 'section-' + section.id, parentId: 'section-' + section.id, sections: section.sections, activeCategoryId: activeCategoryId, activeSectionId: activeSectionId, activeArticleId: activeArticleId, maxArticles: maxArticles, partial: partial }) %> <% if (section.articles.length) { %>
<% section.articles.slice(0, maxArticles).forEach(function(article) { %>
<%= article.title %>
<% }); %> <% if (section.articles.length > maxArticles) { %>
Show all articles
<% } %>
<% } %>
<% }); %>
<% } %>
Categories
Categories
<% categories.forEach(function(category) { %>
<%= category.name %>
<% }); %>
<% if (sections.length) { %>
<% sections.forEach(function(section) { %>
<%= section.name %>
<%= partial('partial-article-list-sections', { id: 'section-' + section.id, parentId: '#' + id, sections: section.sections, activeCategoryId: activeCategoryId, activeSectionId: activeSectionId, activeArticleId: activeArticleId, partial: partial }) %> <% if (section.articles.length) { %>
<% section.articles.forEach(function(article) { %>
<%= article.title %>
<% }); %>
<% } %>
<% }); %>
<% } %>
<% if (sections.length) { %>
<% sections.forEach(function(section) { %>
<%= section.name %>
<%= partial('partial-section-list-sections', { id: 'section-' + section.id, parentId: '#' + id, sections: section.sections, activeCategoryId: activeCategoryId, activeSectionId: activeSectionId, activeArticleId: activeArticleId, maxArticles: maxArticles, partial: partial }) %> <% if (section.articles.length) { %>
<% section.articles.slice(0, maxArticles).forEach(function(article) { %>
<%= article.title %>
<% }); %> <% if (section.articles.length > maxArticles) { %>
See all articles
<% } %>
<% } %>
<% }); %>
<% } %>