<!doctypehtml><html lang=en-US><meta charset=utf-8><meta content=width=device-width,initial-scale=1.0 name=viewport><link href=/static/images/verizon-media-logo@2x.png rel=apple-touch-icon-precomposed><title>
   Verizon Media Developer Network
  </title><meta content="Developer tools and the support you need to leverage Verizon Media's powerful data and advertising solutions."name=description><meta content="Verizon Media Developer Network"property=og:title><meta content=website property=og:type><meta content=https://developer.verizonmedia.com property=og:url><meta content="Developer tools and the support you need to leverage Verizon Media's powerful data and advertising solutions."property=og:description><meta content=/static/images/devnet-logo-black@2x.png property=og:image><meta content="Verizon Media Developer Network"property=og:site_name><link href=https://s.yimg.com/zz/combo?oo/fe/css/codemirror-min_681d3e3e0.css&oo/fe/css/pure-min_662621f08.css&oo/fe/css/main-min_fd2b1565a.css&oo/fe/css/side-menu-min_d1ff8ca9b.css&oo/fe/css/featherlight.min_2802ef65c.css&oo/fe/css/denali-style-min_e0ef5615c.css&oo/fe/css/less-styles-min_1527735e8.css rel=stylesheet><link rel="shortcut icon"href=/static/images/VM_favicon.ico type=image/png><link href=/static/css/bulma.min.css rel=stylesheet><link href=/static/css/main.css rel=stylesheet><link href=/static/css/side-menu.css rel=stylesheet><link href=/static/css/vmdn.css rel=stylesheet><link href=/static/css/denali-icons-v0.4.1.css rel=stylesheet><link href=/static/css/font-awesome.min.css rel=stylesheet><link href=/static/css/hoverbox.css rel=stylesheet><link href=/static/css/swagger.css rel=stylesheet><script src=/static/js/jquery-3.3.1.min.js></script><script src=/static/js/vendor/bootstrap.bundle.min.js></script><script src=/static/js/vendor/js-cookie.js></script><script async src=https://www.googletagmanager.com/gtag/js?id=UA-86392702-2></script><script>window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());

    gtag('config', 'UA-86392702-2');</script><body class="vmdn documentation"><nav class="nav is-hidden-touch sticky"><div class=container><div class=nav-left><a href=/> <img alt="Verizon Media developer network logo"class=nav-brand src=/static/images/devnet-logo-black@2x.png> </a></div><div class="nav-right is-size-6"><form action=/find/ autocomplete=off class=search-form method=GET><input id=search-input name=q placeholder=Search><div class=search-scope>Native</div><input aria-hidden=true id=search-scope-name name=searchScopeName type=hidden value=Native><input class=hidden name=app value=vmdn><button class=search-ydn><i class="d-icon d-search is-small"> </i></button></form><div class=dropdown><div class=dropdown-trigger><button class="button dialpad"aria-controls=dropdown-menu aria-expanded=false aria-haspopup=true><i class="d-icon d-menu-dialpad"> </i></button></div><div class=dropdown-menu id=dropdown-menu role=menu><div class="dropdown-content columns is-multiline"><div class=column><a class=is-block href=https://developer.yahoo.com rel=noopener role=menuitem tabindex=-1 target=_blank> <span class=is-block> <img alt="Yahoo logo"class=nav-brand src=/static/images/svg/y!.svg> </span> <span class=is-inline-block> Yahoo Developer </span> </a></div><div class=column><a class=is-block href=https://help.verizonmedia.com/platform/Analytics-Reports/Analytics-Reports-Overview.htm rel=noopener role=menuitem tabindex=-1 target=_blank> <span class=is-block> <img alt="AOL logo"class=nav-brand src=/static/images/vzm_favicon.png> </span> <span class=is-inline-block> Analytics Reporting </span> </a></div><div class=column><a class=is-block href=https://dev.vdms.com/ rel=noopener role=menuitem tabindex=-1 target=_blank> <span class=is-block> <img alt="Verizon logo"class=nav-brand src=/static/images/vzm_favicon.png> </span> <span class=is-inline-block> Media Platform Developer </span> </a></div><div class=column><a class=is-block href=https://thingspace.verizon.com/ rel=noopener role=menuitem tabindex=-1 target=_blank> <span class=is-block> <img alt="Verizon logo"class=nav-brand src=/static/images/verizon-icon.png> </span> <span class=is-inline-block> Verizon IoT Developer </span> </a></div><div class=column><a class=is-block href=https://help.verizonmedia.com/platform/Home.htm rel=noopener role=menuitem tabindex=-1 target=_blank> <span class=is-block> <img alt="Verizon logo"class=nav-brand src=/static/images/vzm_favicon.png> </span> <span class=is-inline-block> Ad Platform Help Center </span> </a></div></div></div></div></div></div></nav><nav class="nav is-hidden-desktop sticky"><a class="is-inline-block is-hidden-desktop"aria-controls=menu-mobile aria-expanded=false aria-haspopup=true href=# role=button title=Menu> <i class="d-icon d-menu-hamburger"> </i> </a><div class="container nav-left"><a class=logo-link href=/> <img alt="Verizon Media developer network logo"class=nav-brand src=/static/images/devnet-logo-black@2x.png> </a></div><a href=/find/?app=vmdn&q= title=Search> <i class="d-icon d-search"> </i> </a></nav><div class=mobile-menu><ul id=menu-mobile role=menu><li><a class=is-block href=https://developer.yahoo.com rel=noopener role=menuitem tabindex=-1 target=_blank> Yahoo Developer </a><li><a class=is-block href=https://help.verizonmedia.com/platform/Analytics-Reports/Analytics-Reports-Overview.htm rel=noopener role=menuitem tabindex=-1 target=_blank> Analytics Reporting </a><li><a class=is-block href=https://help.verizonmedia.com/platform/Home.htm rel=noopener role=menuitem tabindex=-1 target=_blank> Ad Platform Help Center </a><li><a class=is-block href=https://dev.vdms.com/ rel=noopener role=menuitem tabindex=-1 target=_blank> Media Platform Developer </a><li><a class=is-block href=https://thingspace.verizon.com/ rel=noopener role=menuitem tabindex=-1 target=_blank> Verizon IoT Developer </a></ul></div><div class="overlay vmdn"></div><div id=layout><link href=/static/css/new_documentation.css rel=stylesheet><div class=container><div id=menu><div class="pure-menu pure-menu-open"><ul><li class="light-bkg mobile-menu-only"><a class=d href=/opensource/> Open Source </a><li class="light-bkg mobile-menu-only"><a class=d href=/api/> APIs </a><li class="light-bkg mobile-menu-only"><a class=d href=/advertising/> Advertising </a><li class="light-bkg mobile-menu-only"><a class=d href=/blogs/> Blog </a><li class="light-bkg mobile-menu-only"><a class=d href=/events/> Events </a><li class="light-bkg mobile-menu-only"><a class=d href=/podcasts/> Podcasts </a><li class="light-bkg mobile-menu-only"><a class=d href=/apps/> Apps </a><li class=pure-menu-heading><a class=d href=https://gemini.yahoo.com/advertiser/home> Native </a><li class=expandable><a href=/native/advertiser/guide/ title=Contents> Contents </a></li><hr class=sidebar-separator><div class=docs-nav><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/adbasics/> Verizon Media Ad Basics </a></li><ul class=docs-nav-level-2><li><li><a title="Get started with Native"href=/native/advertiser/guide/adbasics/getstarted/> Get started with Native </a><li><li><a title="Create engaging ads"href=/native/advertiser/guide/adbasics/engagingads/> Create engaging ads </a><li><li><a title="Choose your ad format"href=/native/advertiser/guide/adbasics/ad-types/> Choose your ad format </a><li><li><a title="Key terms to understand"href=/native/advertiser/guide/adbasics/terminology/> Key terms to understand </a></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/get-started-latest-videos/> Get Started - Latest Videos </a></li><ul class=docs-nav-level-2><li><li><a title="1 - Create an Ad Campaign"href=/native/advertiser/guide/get-started-latest-videos/1-create-ad-campaign/> 1 - Create an Ad Campaign </a><li><li><a title="2 - Build an Ad Group"href=/native/advertiser/guide/get-started-latest-videos/2-build-ad-groups/> 2 - Build an Ad Group </a><li><li><a title="3 - Generate Reports"href=/native/advertiser/guide/get-started-latest-videos/3-generate-reports/> 3 - Generate Reports </a><li><li><a title="4 - Create Sponsored Mail Ads"href=/native/advertiser/guide/get-started-latest-videos/4-sponsored-mail-campaigns/> 4 - Create Sponsored Mail Ads </a><li><li><a title="5 - Best Practices for Using Native Ad Formats"href=/native/advertiser/guide/get-started-latest-videos/5-best-practices-native-ad-formats/> 5 - Best Practices for Using Native Ad Formats </a><li><li><a title="6 - Zen & The Art of Digital Storytelling"href=/native/advertiser/guide/get-started-latest-videos/6-zen-art-digital-storytelling/> 6 - Zen & The Art of Digital Storytelling </a></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/adcreation/> Campaign & Ad Creation </a></li><ul class=docs-nav-level-2></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/adgroups/> Ad Group Creation </a></li><ul class=docs-nav-level-2></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/ad-workshop/> Ad Workshop </a></li><ul class=docs-nav-level-2></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/import/> Import Campaigns </a></li><ul class=docs-nav-level-2><li><li><a title="Use Account Sync to import campaigns from Google Ads"href=/native/advertiser/guide/howtos/how-to-import-campaigns-adwords/> Use Account Sync to import campaigns from Google Ads </a></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/clone/> Clone Campaigns, Ad Groups & Ads </a></li><ul class=docs-nav-level-2><li><li><a title="Use cloning to replicate campaigns, ad groups & keywords"href=/native/advertiser/guide/clone/how-to-use-cloning/> Use cloning to replicate campaigns, ad groups & keywords </a><li><li><a title="Enhanced cloning of entities"href=/native/advertiser/guide/clone/enhanced-cloning/> Enhanced cloning of entities </a></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/howtos/> How-To’s </a></li><ul class=docs-nav-level-2></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/billing/> Billing Basics </a></li><ul class=docs-nav-level-2><li><li><a title="Post Pay"href=/native/advertiser/guide/billing/how-billing-works-post-pay/> Post Pay </a><li class=selected><li class=selected><a title="Set up a payment method"href=/native/advertiser/guide/billing/setup-payment-method/> Set up a payment method </a><li><li><a title="Sign up for auto reload"href=/native/advertiser/guide/billing/signup-auto-reload/> Sign up for auto reload </a><li><li><a href=/native/advertiser/guide/billing/faqs/ title=FAQs> FAQs </a></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/keywords/> Keyword Basics </a></li><ul class=docs-nav-level-2></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/targeting/> Targeting </a></li><ul class=docs-nav-level-2><li><li><a title="Tracking Conversions"href=/native/advertiser/guide/targeting/track-conversions/> Tracking Conversions </a><li><li><a title="Creating Custom Audiences"href=/native/advertiser/guide/targeting/custom-audiences/> Creating Custom Audiences </a><li><li><a title="Manage Custom Audiences"href=/native/advertiser/guide/targeting/manage-audiences/> Manage Custom Audiences </a><li><li><a title="Enhanced Lookalike Audience Capability"href=/native/advertiser/guide/targeting/lookalike-audiences/> Enhanced Lookalike Audience Capability </a><li><li><a title="Use Third-Party Audiences For Targeting & Expanded Reach"href=/native/advertiser/guide/targeting/third-party-audiences/> Use Third-Party Audiences For Targeting & Expanded Reach </a><li><li><a title="Use Conversion Counting To Control & Optimize Your Campaigns"href=/native/advertiser/guide/targeting/conversion-counting/> Use Conversion Counting To Control & Optimize Your Campaigns </a><li><li><a title="Use Verizon Media Interest Categories For Targeting & Expanded Reach"href=/native/advertiser/guide/targeting/use-oath-interest-categories/> Use Verizon Media Interest Categories For Targeting & Expanded Reach </a><li><li><a title="Use Site Blocking For Brand Safety & Improved Performance"href=/native/advertiser/guide/targeting/use-site-blocking/> Use Site Blocking For Brand Safety & Improved Performance </a><li><li><a title="Use Native Keyword Retargeting to Customize Search Targeting at the Keyword Level"href=/native/advertiser/guide/targeting/use-native-keyword-retargeting/> Use Native Keyword Retargeting to Customize Search Targeting at the Keyword Level </a></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/reporting/> Reporting & Key Metrics </a></li><ul class=docs-nav-level-2></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/power-tools/> Verizon Media Power Tools </a></li><ul class=docs-nav-level-2><li><li><a title="Use Power Editor"href=/native/advertiser/guide/power-tools/power-editor/> Use Power Editor </a><li><li><a title="Use Audience Forecaster"href=/native/advertiser/guide/power-tools/audience-forecaster/> Use Audience Forecaster </a></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/dynamic-prod-ads/> Dynamic Product Ads </a></li><ul class=docs-nav-level-2></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/bulk/> Bulk </a></li><ul class=docs-nav-level-2><li><li><a title="Bulk Operations"href=/native/advertiser/guide/bulk/bulkoperations/> Bulk Operations </a><li><li><a title="Bulk Fields & Objects"href=/native/advertiser/guide/bulk/bulkfieldsobjects/> Bulk Fields & Objects </a></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/best-practices/> Best Practices </a></li><ul class=docs-nav-level-2><li><li><a title="How To Optimize Search on Native"href=/native/advertiser/guide/best-practices/optimize-search-native/> How To Optimize Search on Native </a><li><li><a title="How To Crop Images For Ads"href=/native/advertiser/guide/best-practices/ad-design/> How To Crop Images For Ads </a></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/troubleshooting/> Troubleshooting Your Ads </a></li><ul class=docs-nav-level-2></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/whatsnew/> What’s New </a></li><ul class=docs-nav-level-2><li><li><a title="November 2020"href=/native/advertiser/guide/whatsnew/November-2020/> November 2020 </a><li><li><a title="October 2020"href=/native/advertiser/guide/whatsnew/October-2020/> October 2020 </a><li><li><a title="September 2020"href=/native/advertiser/guide/whatsnew/September-2020/> September 2020 </a><li><li><a title="August 2020"href=/native/advertiser/guide/whatsnew/August-2020/> August 2020 </a><li><li><a title="July 2020"href=/native/advertiser/guide/whatsnew/july-2020/> July 2020 </a><li><li><a title="Complete What’s New - Archived"href=/native/advertiser/guide/whatsnew/complete-whats-new-archived/> Complete What’s New - Archived </a></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/glossary/> Glossary </a></li><ul class=docs-nav-level-2><li><li><a title="Glossary of Native Ad Platform Terms"href=/native/advertiser/guide/glossary/glossary-keyword-terms/> Glossary of Native Ad Platform Terms </a></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/resources/> Resources </a></li><ul class=docs-nav-level-2><li><li><a title="Programmatic Native Ad Platform API"href=/native/advertiser/guide/resources/gemini-api/> Programmatic Native Ad Platform API </a><li><li><a title="Native Advertising Guidelines"href=/native/advertiser/guide/resources/nativeadguidelines/> Native Advertising Guidelines </a></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/policies/> Verizon Media Ad Policies </a></li><ul class=docs-nav-level-2><li><li><a title="Verizon Media Advertising Policies"href=/native/advertiser/guide/policies/policy-guidelines/> Verizon Media Advertising Policies </a></ul></ul><ul class=docs-nav-section><li class=docs-nav-title><a href=/native/advertiser/guide/archived-videos/> Archived Video How-To’s </a></li><ul class=docs-nav-level-2></ul></ul></div><li class="light-bkg mobile-menu-only"><a class=d href=https://login.yahoo.com?done=&src=devnet&specId=usernameReg> Sign In </a><li class="light-bkg mobile-menu-only"><a aria-label="Language Menu"href=#> Language: </a> <ul><li><a aria-label="Translates to English"class=d data-lang=en-US href=#> <span class="flag-icon flag-icon-us"aria-hidden=true> </span> English (U.S.) </a><li><a aria-label="Translates to Chinese (Hong Kong)"class=d data-lang=zh-Hant-HK href=#> <span class="flag-icon flag-icon-hk"aria-hidden=true> </span> 中文(香港) </a><li><a aria-label="Translates to Chinese (Taiwan)"class=d data-lang=zh-Hant-TW href=#> <span class="flag-icon flag-icon-tw"aria-hidden=true> </span> 中文(台灣) </a></ul></ul></div><script>// Update locale setting from language dropdown
  $('a[data-lang]').click(function(e) {
    e.preventDefault();

    // Load PH cookie and convert it to object.
    // If PH cookie is not available, create an empty object.
    var locale = $(this).data('lang');
    var phCookie = $.cookie('PH');
    var phCookieObject = phCookie ? queryStringToObject(phCookie) : {};

    // Update locale.
    phCookieObject.l = locale;

    // Set new PH cookie.
    $.cookie.raw = true;

    $.cookie('PH', $.param(phCookieObject), { path: '/', domain: 'yahoo.com' });

    location.reload();
  });

  function queryStringToObject(query) {
    var qs = {};
    var vars = query.split('&');

    for (var i = 0; i < vars.length; i++) {
      var pair = vars[i].split('=');
      pair[0] = decodeURIComponent(pair[0]);
      pair[1] = decodeURIComponent(pair[1]);
      if (typeof qs[pair[0]] === 'undefined') {
        qs[pair[0]] = pair[1];
      } else if (typeof qs[pair[0]] === 'string') {
        qs[pair[0]] = [qs[pair[0]], pair[1]];
      } else {
        qs[pair[0]].push(pair[1]);
      }
    }
    return qs;
  }</script><script>$(function() {
      'use strict';

      var $pureMenu = $('.pure-menu');
      var $navSection = $('.docs-nav-section');
      var $navLinks = $('.docs-nav-section li > a');
      var currentPath = null;

      var $navLevel3 = $('.docs-nav-level-3');
      if ($navLevel3.length) {
        var $activeLink = $navLevel3.find('.active, .selected');
        if ($activeLink.length) {
          $activeLink.closest('ul').addClass('active');
          $activeLink.closest('ul').prev('a').closest('li').addClass('expanded');

        }
      }

      /**
       * Handle documentation left nav click.
       */
      $navLinks.click(function(event) {
        var $this = $(this);
        var url = $this.attr('href');
        var ellipseClass = isEllipsisActive($(event.currentTarget)) ? "ellipse" : '';  // Adding ellipse class to make the loader allign at teh end of ellipse
        // left-nav links should be tracked asynchronously
        // rapid forces all links to be full reload by default
        $this.addClass('rapidnofollow '+ellipseClass+'');

        // Skip AJAX if it's a heading anchor tag from the same page AND the
        // current page is active/loaded. In other words, if a heading from
        // a different page is clicked then AJAX request should still be made
        // even if it's an anchor tag.
        var navSectionActive = $(this).closest('ul').hasClass('active');
        if (url.indexOf('#') > -1 && navSectionActive) {

          // Remove previous "active" class
          $pureMenu.find('.active').removeClass('active');
          $pureMenu.find('.selected').removeClass('selected');
          $navSection.find('.active').removeClass('active');
          $navSection.find('.selected').removeClass('selected');

          // Add new "active" class to the link and its container
          $this.closest('li').addClass('active');
          $this.closest('ul').addClass('active');
          return;
        }


        event.preventDefault();

        if ($this.next('.docs-nav-level-3').length) {
          $this.closest('li').toggleClass('expanded');
          $this.next('.docs-nav-level-3').toggleClass('active');
          return;
        }

        $this.append('<span id="docs-loading-indicator" class="s-loader"></span>');
        $.ajaxSetup({ cache: false });
        $.ajax({
          url: url,
          cache: false
        }).done(function(data) {
          // Replace #docs-page element with another #docs-page element
          // fetched from the server.
          $('#docs-page').replaceWith(data);
          $('#docs-page').trigger('load');
          var title = $('#docs-page').find('h1').text();
          $("#docs-page div.section table").parent().css("overflow-x", "auto");
          if (title.length > 0) {
            title = title.slice(0, -1);
          } else {
            title = 'Yahoo Developer Network';
          }

          var test = document.createElement('div');
          test.innerHTML = '&nbsp;';
          test.className = 'adsbox';
          document.body.appendChild(test);
          window.setTimeout(function() {
            if (test.offsetHeight === 0) {
              if ($(':header').length > 0 && $(':header').is(':visible') === false) {
                var callout = $('div.g-content');
                callout.first().prepend("<div class='admonition important' style='margin-top: 20px'><p class='first admonition-title'>Ad Blocker Detected</p><p class='last'>We've detected the use of an ad blocker. For the best viewing experience, we recommend that you disable your ad blocker.</p>");
              }
            }
            test.remove();
          }, 100);

          var toc = "<div class='right-nav'><div class='pure-menu pure-menu-open'><ul><div class='docs-nav'><ul class='docs-nav-section'><li class='docs-nav-title'><a style='text-decoration:none'>Contents</a></li><hr class='sidebar-separator'><ul class='docs-nav-level-2 active'>"
          // var headerList = getElementsByTagNames('h2,h3,h4,h5,h6');
          var headerList = getElementsByTagNames('h2');

          if (headerList.length > 0) {
            for (var i = 0; i < headerList.length; i++) {
              var header = headerList[i].textContent.replace('¶', '');
              var anchor = $(headerList[i]).find('a').attr('href');
              if (headerList[i].tagName == 'H2') {
                toc += "<li class=''></li><li><a  href='" + anchor + "'" + ">" + "<span class='break-word'>" + header + "</span></a>";
                toc += "</li>"
              }
            }
            toc += "</ul></ul></div></ul></div></div>";
            $('.right-nav').replaceWith(toc);
            if (headerList.length > 15) {
              // Apply style to always show scrollbar when there is overflow
              $('.right-nav').addClass('scrollbar');
              $('.right-nav').css('height', '450px');
            }
          } else {
            $('.right-nav').replaceWith("<div class='right-nav'></div>");
          }

          // Scrollspy
          var lastId,
            topMenu = $('.right-nav'),
            topMenuHeight = topMenu.outerHeight()+15,
            // All list items
            menuItems = topMenu.find("a"),
            // Anchors corresponding to menu items
            scrollItems = menuItems.map(function(){
              var item = $($(this).attr("href"));
              if (item.length) { return item; }
            });

          menuItems.click(function(e){
          var href = $(this).attr("href"),
              offsetTop = href === "#" ? 0 : $(href).offset().top-topMenuHeight+1;
          $('html, body').stop().animate({
              scrollTop: offsetTop
          }, 300);
            e.preventDefault();
          });

          $(window).scroll(function() {
           // Get container scroll position
           var fromTop = $(this).scrollTop()+topMenuHeight;

           // Get id of current scroll item
           var cur = scrollItems.map(function(){
             if ($(this).offset().top < fromTop)
               return this;
           });
           // Get the id of the current element
           cur = cur[cur.length-1];
           var id = cur && cur.length ? cur[0].id : "";

           if (lastId !== id) {
               lastId = id;
               // Set/remove active class
               menuItems
                 .parent().removeClass("active")
                 .end().filter("[href='#"+id+"']").parent().addClass("active");
           }
          });

            const tabholders = document.getElementsByClassName('tabview');

            for (var x = 0, len = tabholders.length; x < len; x++) {
                $("#" + $(tabholders[x]).attr("id")).easytabs({animationSpeed:'fast'});
            }

            $(".tabview-tab a").click(function () {
                for (var x = 0, len = tabholders.length; x < len; x++) {
                    $("#" + $(tabholders[x]).attr("id")).easytabs({'select':$(this).attr('href')});
                }
            });

          // Load gists asynchronously (if present)
          loadGists();
          history.pushState({ title: title, myState: true }, title, url);

          // Update page title
          if (title.length > 0) {
            document.title = title + ' - Yahoo Developer Network';
          } else {
            document.title =  'Yahoo Developer Network';
          }

          // Returns true if at least one (or more) dropdowns are expanded
          if ($navLevel3.hasClass('active')) {
            $navLevel3.removeClass('active');
            $navSection.find('.expanded').removeClass('expanded');
          }

          // Remove previous "active" class
          $pureMenu.find('.active').removeClass('active');
          $pureMenu.find('.selected').removeClass('selected');
          $navSection.find('.active').removeClass('active');
          $navSection.find('.selected').removeClass('selected');

          // Add new "active" class to the link and its container
          $this.closest('li').addClass('active');
          $this.closest('ul').addClass('active');

          $this.closest('ul').closest('li').addClass('expanded');
          // Scroll page to the top
          window.scrollTo(0, 0);
          
          enableTooltip();

        }).fail(function() {
          // TODO: Failed fetching document
          $(location).attr('href', url);
        }).always(function() {
          $this.find('#docs-loading-indicator').remove();
        });
      });

      /**
       * Handle "back" button navigation.
       */
      window.onpopstate = function(event) {
        // Skip initial load
        if (!event.state || !event.state.myState) {
          return;
        }
        // Ignore hashtag updates to the URL
        if (document.location.pathname === currentPath) {
          return;
        }
        currentPath = document.location.pathname;

        // Load previous page via AJAX on browser's Back button
        $('#docs-page').load(window.location.href, function() {
            const tabholders = document.getElementsByClassName('tabview');

            for (var x = 0, len = tabholders.length; x < len; x++) {
            $("#" + $(tabholders[x]).attr("id")).easytabs({animationSpeed:'fast'});
          }

            $(".tabview-tab a").click(function () {
                for (var x = 0, len = tabholders.length; x < len; x++) {
                    $("#" + $(tabholders[x]).attr("id")).easytabs({'select':$(this).attr('href')});
                }
            });
          loadGists();

          var test = document.createElement('div');
          test.innerHTML = '&nbsp;';
          test.className = 'adsbox';
          document.body.appendChild(test);
          window.setTimeout(function() {
            if (test.offsetHeight === 0) {
              if ($(':header').length > 0 && $(':header').is(':visible') === false) {
                var callout = $('div.g-content');
                callout.first().prepend("<div class='admonition important' style='margin-top: 20px'><p class='first admonition-title'>Ad Blocker Detected</p><p class='last'>We've detected the use of an ad blocker. For the best viewing experience, we recommend that you disable your ad blocker.</p>");
              }
            }
            test.remove();
          }, 100);
        });

        // Update page title when going back to the previous page
        if (event.state) {
          if (title.length > 0) {
            document.title = event.state.title + ' - Yahoo Developer Network';
          } else {
            document.title = 'Yahoo Developer Network';
          }
        }

        // Remove previous "active" class
        $navSection.find('.active').removeClass('active');
        $navSection.find('.selected').removeClass('selected');

        // Add "active" class to the previous link in the left nav
        var $navLink = $('a[href="' + window.location.pathname + '"]');
        $navLink.closest('li').addClass('active');
        $navLink.closest('ul').addClass('active');
      };

      function getElementsByTagNames(list,obj) {
        if (!obj) var obj = document;
          var tagNames = list.split(',');
          var resultArray = new Array();
          for (var i = 0; i < tagNames.length; i++) {
            var tags = obj.getElementsByTagName(tagNames[i]);
            for (var j = 0; j < tags.length;j++) {
              resultArray.push(tags[j]);
            }
          }

        var testNode = resultArray[0];
        if (!testNode) return [];
        if (testNode.sourceIndex) {
          resultArray.sort(function (a,b) {
              return a.sourceIndex - b.sourceIndex;
          });
        }
        else if (testNode.compareDocumentPosition) {
          resultArray.sort(function (a,b) {
              return 3 - (a.compareDocumentPosition(b) & 6);
          });
        }
        return resultArray;
      }

      function loadGists() {
        var els = $('.section').find('script');
        var gists = {};
        var code = [];
        var stylesheets = [];

        // Get elements referencing a gist and build a gist hash referencing the elements that use it
        els.each(function(idx, rawEl) {
          var el = $(rawEl);
          // Check if script element has src attribute
          if (el.attr('src')) {
            var gist = el.attr('src');
            gist = gist.replace('.js', '.json');

            rawEl.gist = gist;
            rawEl.file = el.attr('file');
            gists[gist] = gists[gist] || { targets: [] };
            gists[gist].targets.push(el);
          }
        });
        //    // Load the gists
        $.each(gists, function(name, data) {
          $.getJSON(name + '?callback=?', function(data) {
            var gist = gists[name];
            gist.data = data;
            // Only insert the stylesheets once
            if (stylesheets.indexOf(gist.data.stylesheet) < 0) {
              stylesheets.push(gist.data.stylesheet);
              $('head').append('<link rel="stylesheet" href="' + gist.data.stylesheet + '" />');
            }
            gist.files = $(gist.data.div).find('.gist-file');
            gist.outer = $(gist.data.div).first().html('');
            // Iterate elements refering to this gist
            $(gist.targets).each(function(idx, target) {
              var file = target.get(0).file;
              if (file) {
                var o = gist.outer.clone();
                var c = '<div class="gist-file">' + $(gist.files.get(gist.data.files.indexOf(file))).html() + '</div>';
                o.html(c);
                target.replaceWith(o);
              }
              else {
                target.replaceWith(gist.data.div);
              }
            });
          });
        });
      }
    });

    function isEllipsisActive(element) {
    return element && element[0] && (element.outerWidth() < element[0].scrollWidth);
    }</script></div><div id=main><div class=content id=docs-page><div class=bkg-box><div class=g-content><div class=section id=set-up-a-payment-method><h1>Set up a Payment Method <a title="Permalink to this headline"class=headerlink href=#set-up-a-payment-method> ¶ </a></h1><p>You can set up a payment method for your Native Ad Platform Advertiser account after you have created your account and added campaigns to it.<p>If you’re a new Native Ad Platform customer or an existing Native Ad Platform customer, you can set up a payment method using the Payment details button on the Native Ad Platform Advertiser page.<div class=section id=how-it-works><h2>How It Works <a title="Permalink to this headline"class=headerlink href=#how-it-works> ¶ </a></h2><p>To set up a payment method:<ol class="arabic simple"><li><p>Click <strong> Payment details </strong> on the Native Ad Platform Advertiser page. The <strong> Add a new payment method </strong> dialog appears.</p></ol><div class=line-block><div class=line><br></div></div><img alt="setup payment method"src=https://s.yimg.com/oo/cms/products/nativeandsearch-advertiser-guide-docs-vmdn/billing/images/setup-payment-method_a96d29798.png><ol class="arabic simple"start=2><li><p>Enter your card number, holder’s name and other required card information.</p><li><p>If you have a promotional credit, enter that number and click <strong> Apply </strong> .</p><li><p>Click <strong> Submit </strong> .</p></ol><div class=line-block><div class=line><br></div></div><p>When you sign up for a Verizon Media Ad Platform Advertiser account, the <a class="reference external"href=/gemini/advertiser/guide/billing/how-billing-works-post-pay/> Post Pay </a> method is chosen by default. Post Pay allows you to pay as you go.<p>If you’re an existing Native Ad Platform customer with prepaid payment, you can switch to Post Pay.<div class="admonition important"><p class=admonition-title>Important<p>Any existing prepaid funds will automatically carry over to the Post Pay system as a credit and the credit amount will be used first for ad spend, before Post Pay charges are incurred.</div><p>For more information and details on Post Pay, refer to <a class="reference external"href=/native/advertiser/guide/billing/how-billing-works-post-pay/> How We Bill You – Post Pay </a> .</div><div class=section id=countries-supported-by-yahoo-for-post-pay><h2>Countries Supported by Yahoo for Post Pay <a title="Permalink to this headline"class=headerlink href=#countries-supported-by-yahoo-for-post-pay> ¶ </a></h2><table class="colwidths-given docutils align-default"><colgroup><col style="width: 50%"><col style="width: 50%"></colgroup><thead><tr class=row-odd><th class=head><p>Country</p><th class=head><p>Code</p><tbody><tr class=row-even><td><p>Australia</p><td><p>AU</p><tr class=row-odd><td><p>Austria</p><td><p>AT</p><tr class=row-even><td><p>Belgium</p><td><p>BE</p><tr class=row-odd><td><p>Canada</p><td><p>CA</p><tr class=row-even><td><p>Denmark</p><td><p>DK</p><tr class=row-odd><td><p>Finland</p><td><p>FI</p><tr class=row-even><td><p>France</p><td><p>FR</p><tr class=row-odd><td><p>Germany</p><td><p>DE</p><tr class=row-even><td><p>Hong Kong</p><td><p>HK</p><tr class=row-odd><td><p>Ireland</p><td><p>IE</p><tr class=row-even><td><p>Israel</p><td><p>IL</p><tr class=row-odd><td><p>Italy</p><td><p>IT</p><tr class=row-even><td><p>Luxembourg</p><td><p>LU</p><tr class=row-odd><td><p>Malaysia</p><td><p>MY</p><tr class=row-even><td><p>Netherlands</p><td><p>NL</p><tr class=row-odd><td><p>New Zealand</p><td><p>NZ</p><tr class=row-even><td><p>Norway</p><td><p>NO</p><tr class=row-odd><td><p>Portugal</p><td><p>PT</p><tr class=row-even><td><p>Singapore</p><td><p>SG</p><tr class=row-odd><td><p>Spain</p><td><p>ES</p><tr class=row-even><td><p>Sweden</p><td><p>SE</p><tr class=row-odd><td><p>Switzerland</p><td><p>CH</p><tr class=row-even><td><p>United Kingdom</p><td><p>GB</p><tr class=row-odd><td><p>United States</p><td><p>US</p></table><div class="admonition note"><p class=admonition-title>Note<p>If your billing policies require VAT information, you will be able to add this, as described in the next section. All new advertisers who sign up for Native Ad Platform will be automatically enrolled in the Post Pay payment plan. For other countries not listed, the original prepay payment plan is still to be used.</div></div><div class=section id=for-vat-customers><h2>For VAT Customers <a title="Permalink to this headline"class=headerlink href=#for-vat-customers> ¶ </a></h2><p>If your billing policies require VAT information and you want take advantage of the Post Pay option, you’ll see the following billing dialog:<div class=line-block><div class=line><br></div></div><img alt="vat pay go"src=https://s.yimg.com/oo/cms/products/nativeandsearch-advertiser-guide-docs-vmdn/billing/images/vat-pay-go_09e10153d.png><p>Fill in the various details to complete the form.<p>For VAT customers who are using the Pre-Pay option, you’ll see a longer form to complete, as shown below.</p><img alt="vat pre pay"src=https://s.yimg.com/oo/cms/products/nativeandsearch-advertiser-guide-docs-vmdn/billing/images/vat-pre-pay-01_6d39b7c0c.png><p>Fill in the various details to complete the form.<div class="admonition note"><p class=admonition-title>Note<p>A checkbox is provided that you can select which will pre-populate your credit card address with your vat address that you’ve already filled in.</div><p>A Summary of your account is also provided, shown below:<div class=line-block><div class=line><br></div></div><img alt="vat pre pay summary"src=https://s.yimg.com/oo/cms/products/nativeandsearch-advertiser-guide-docs-vmdn/billing/images/vat-pre-pay-sum-03_bed1b04a3.png></div></div></div></div></div></div><div id=right-nav><div class=fixed><div style="color:#514099 !important;"class=toggle-nav><i class="fa fa-arrow-right"aria-hidden=true> </i></div></div><div class=right-nav></div></div></div></div><footer class="footer vmdn"style="background-color: #000000;background-image: none;"><section class=section><div class=container><div class="columns is-variable is-multiline is-5"><div class="column is-one-quarter foot-link-block"><span class="featured-header is-block is-bold"> Support </span><a class=is-block href=https://developer.yahoo.com/opensource/ rel=noopener target=_blank> About Us </a><a href=" https://www.linkedin.com/company/verizon-media/jobs/"class=is-block rel=noopener target=_blank> Jobs </a><a class=is-block href=https://policies.oath.com/us/en/oath/privacy/products/developer/index.html rel=noopener target=_blank> Privacy </a><a class=is-block href=https://policies.yahoo.com/us/en/yahoo/terms/product-atos/apiforydn/index.htm rel=noopener target=_blank> Terms </a><a class=is-block href=https://developer.yahoo.com/policies/ rel=noopener target=_blank> Policies </a><a class=is-block href=https://yahoo.uservoice.com/forums/182455-yahoo-developer-network rel=noopener target=_blank> Site Feedback </a></div><div class="column is-one-quarter foot-link-block"><span class="featured-header is-block is-bold"> Connect </span><a class=is-block href=https://github.com/yahoo rel=noopener target=_blank> Github </a><a class=is-block href=https://www.facebook.com/yahoodevelopernetwork rel=noopener target=_blank> Facebook </a><a class=is-block href=https://twitter.com/ydn rel=noopener target=_blank> Twitter </a><a class=is-block href=https://yahoodevelopers.tumblr.com/ rel=noopener target=_blank> Tumblr </a><a class=is-block href=https://www.youtube.com/user/ydntheater rel=noopener target=_blank> Youtube </a></div><div class="column is-one-quarter foot-link-block"><span class="featured-header is-block is-bold"> Brands </span><a class=is-block href=https://developer.yahoo.com rel=noopener target=_blank> Yahoo Developer </a><a class=is-block href=https://sdk.verizonmedia.com/ rel=noopener target=_blank> Verizon Ads SDK </a><a class=is-block href=https://help.verizonmedia.com/platform/Analytics-Reports/Analytics-Reports-Overview.htm rel=noopener target=_blank> Analytics Reporting </a><a class=is-block href=https://dev.vdms.com/ rel=noopener target=_blank> Media Platform Developer </a><a class=is-block href=https://help.verizonmedia.com/platform/Home.htm rel=noopener target=_blank> Ad Platform Help Center </a><a class=is-block href=https://thingspace.verizon.com/ rel=noopener target=_blank> Verizon IoT Developer </a></div><div class="column is-one-quarter logo foot-link-block"><div><a href=https://www.verizonmedia.com/ rel=noopener target=_blank> <img alt="Verizon Media Logo"class="nav-brand is-block"src=/static/images/verizon-media-logo@2x.png> </a><span class="is-block is-size-7 copy-right"> © 2019 Verizon Media. All rights reserved. </span></div></div></div></div></section></footer><script src=https://s.yimg.com/zz/combo?oo/fe/js/polyfills/assign-min_6f975308e.js&oo/fe/js/navigation-min_3c753d938.js&oo/fe/js/utils-min_65ef3b583.js&oo/fe/js/admin-min_b737dfd14.js></script><script>var overMenu;
    
        // My Apps Overlay Dropdown
        appsOverlay = $('#apps-overlay');
        appsOverlay.css('z-index', 10);
    
        // show the apps menu if mouse enters My Apps link
        $('.head-right-controls').delegate('#myapps-dropdown', 'mouseover', function (e) {
            languageOverlay.css('display','none');
            const left = $(".head-right-controls").position().left + $(".head-right-controls").width() - 280;
            appsOverlay.css({left: left + "px"});
            appsOverlay.css('display','table');
        });
    
        // when over My Apps menu, clear the timer
        // that's waiting to remove the menu
        $('#apps-overlay').mouseover(function () {
            clearTimeout(languageLeaveWait);
            overMenu = true;
        });
    
        // when cursor leaves My Apps,
        // if it doesn't move over the menu within 1sec,
        // hide the menu
        $('#myapps-dropdown').mouseleave(function (e) {
            languageLeaveWait = setTimeout(function () {
                if (overMenu === false) {
                    removeAppsOverlay(e);
                }
            }, 1000);
        });
    
    
        function removeAppsOverlay(e) {
            appsOverlay.css('display','none');
            overMenu = false;
        }
    
        $('#apps-overlay').click(removeAppsOverlay);
        $('#apps-overlay').mouseleave(removeAppsOverlay);
    
        // Begin language overlay
        languageOverlay = $('#language-overlay');
        languageOverlay.css('z-index', 10);
    
        $('.head-right-controls').delegate('#language-dropdown', 'mouseover', function (e) {
            appsOverlay.css('display','none');
            const left = $(".head-right-controls").position().left + $(".head-right-controls").width() - 155;
            languageOverlay.css({left: left + "px"});
            languageOverlay.css('display','table');
        });
    
        $('#language-overlay').mouseover(function () {
            clearTimeout(languageLeaveWait);
            overMenu = true;
        });
    
        // when cursor leaves My Apps,
        // if it doesn't move over the menu within 1sec,
        // hide the menu
        $('#language-dropdown').mouseleave(function (e) {
            languageLeaveWait = setTimeout(function () {
                if (overMenu === false) {
                    removeLanguageOverlay(e);
                }
            }, 1000);
        });
    
    
        function removeLanguageOverlay() {
            languageOverlay.css('display','none');
            overMenu = false;
        }
    
        $('#language-overlay').click(removeLanguageOverlay);
        $('#language-overlay').mouseleave(removeLanguageOverlay);
    
        
        // allows the menu to slide in/out on mobile size screens
        function slideMobileMenu() {
            $('#layout').toggleClass('active'); // the menu and page contents
            $('.pure-menu').toggleClass('active'); // the menu
            $('#menuLink').toggleClass('active'); // hamburger icon
            $('.footer-gemini').toggleClass('active'); // footer needs to slide too
            $('.mobile-header').toggleClass('active'); // top bar needs to slide too
        }
    
        $('#menuLink').click(function(e) {
            e.preventDefault(); // without this, the first menu item can get triggered on a mobile device when the hamburger icon is clicked
            setTimeout(function() {
                slideMobileMenu();
            }, 200);
        });</script><script src=/static/js/right-nav.js></script><script>(function(){
  var test = document.createElement('div');
  test.innerHTML = '&nbsp;';
  test.className = 'adsbox';
  document.body.appendChild(test);
  window.setTimeout(function() {
    if (test.offsetHeight === 0) {
      if ($(':header').length > 0 && $(':header').is(':visible') === false) {
        var callout = $('div.g-content');
        callout.first().prepend("<div class='admonition important' style='margin-top: 20px'><p class='first admonition-title'>Ad Blocker Detected</p><p class='last'>We've detected the use of an ad blocker. For the best viewing experience, we recommend that you disable your ad blocker.</p>");
      }
    }
    test.remove();
  }, 100);
})();</script><script>function enableTooltip(){  
    $('.reference.internal').each(function() {
        var reference = $(this).find('.std-term');
        var definition = $(this.hash + ' + dd');
        if (reference.length !== 0 && definition.length !== 0) {
            $(this).removeAttr("href"); // remove link to glossary page
            $(this).on("click", function(e) { // make it not clickable
                e.preventDefault();
                return false;
            });
            $(reference) // set tooltip
                .tooltip({
                    html: true,
                    trigger: 'manual',
                    placement: 'top',
                    title: definition.html()
                }).on("mouseenter", function() {
                    var _this = this;
                    $('.reference.internal .std-term').tooltip('hide');
                    $(this).tooltip('show');
                    $('.tooltip').on('mouseleave', function() {
                        $(_this).tooltip('hide');
                    });
                }).on("mouseleave", function() {
                    var _this = this;
                    setTimeout(function() {
                        if ($('.tooltip:hover').length === 0) {
                            $(_this).tooltip('hide');
                        }
                    }, 200);
                });
        }
    });
}

enableTooltip();</script><script src=/static/js/vmdn.js></script>