Revenue API for News Publishers — Overview

Apple News publications monetize their available ad-placement inventory in two ways:

The iAd Workbench for News Publishers lets you manage how your publications are being monetized, managing your direct-sold campaigns and turning on backfill, and also provides a breakdown of revenue by channel. The iAd Workbench is a web-based, interactive tool and the Revenue API for News Publishers provides programmatic access to the same data.

The Revenue API for News Publishers described in this document provides programmatic access to the iAd ad server, where you can use your own tools and programs to do the same kinds of tasks as you would do with the iAd Workbench:

Access, Authentication, and Authorization

The Revenue API for News Publishers is available to all Apple News publisher accounts that have access to News Publisher tools on iAd Workbench.

Client side SSL certificate is used to authenticate the user. An access token provides authorization to all of the API.

To access the iAd server, you can request and download the required API keys, tokens, and certificates from the iAd Workbench site.

  1. Click on the dropdown arrow next to your account name near the top right and choosing Account from the dropdown menu.

  2. Select the API tab under the page title.

  3. Click the button to “Create Key”.

  4. Name your key and assign access to a tool set.

  5. Confirm and download your key in a ZIP file.

You will receive:

Use the client side SSL certificate, key, and access token when you call the InitSession method. This call authenticates, establishes a secure connection, and provides the session ID required to make further API calls.

As a security measure, three successive invalid authentication attempts will lock the API access for a minimum of four hours.

API Endpoint

Implement your API-based app by following the API Method Reference in this document and use the following end point URL:

This document describes the /v1 version of the iAd News Publishers API.

API Basics

Versioning of the API

Versioning is managed through the URL. When new features are added to the iAd News Publishers API, as long as they are backward compatible, the URL will remain the same. If new features are added that are not backward compatible, a new URL will be introduced that supports those features and the unchanged features.

Invoking the API

API Concepts

This section provides brief descriptions of the API interaction process and workflow phases, at a conceptual level.

Authentication

Before you can interact with the iAd News Publishers API, you must provide your credentials and obtain a session ID. Your session ID is used in lieu of any other credentials, for the duration of your API interaction session.

Reporting Methods

The methods in the Revenue Reporting API for News Publishers allow you to download reporting data for the revenue produces by making your available ad placement inventory available for backfill.

  • GetChannelMetrics — Obtain revenue performance metrics by channel.

  • GetChannelMetricsByCreativeType — Obtain revenue performance metrics by creative (ad) type.