Developer Console

Mobile Associates API Overview

Introduction

With the Mobile Associates API, you can offer physical and digital products, which HAQM sells, from within your app, at a place in your app where it makes sense. HAQM sells millions of products, and you can choose specific items or types of items that makes sense for your app and your brand. Monetization is based on a percent of the sale price of the item. For more information, see the Associates Program Advertising Fee Schedule.

You present the product in a way that makes sense in your app, this API takes care of customer management, purchase flow, and payment processing. HAQM takes care of fulfilling the physical good and customer service.

As an example, in a fitness app, you can show the user fitness-related products that relate to a specific goal, like monitoring heart rate with a heart rate monitor, or a pair of new running shoes once they've reached 500 miles in their current pair.

Customer Experiences

You can provide a link in your app to allow the user to complete their purchase on HAQM.</a>

Android apps integrated with the Mobile Associates API can be distributed through HAQM or non-HAQM Android distribution channels like the Google Play Store. The API features available through HAQM and non-HAQM distribution channels are listed below:

Feature Product Categories HAQM General Android
Direct Linking to HAQM Physical and Digital YES YES

API Description

The Mobile Associates API has three main classes: AssociatesAPI, LinkService, and ShoppingService.

AssociatesAPI

Initializes the API. The class is also used for retrieving singleton LinkService objects and singleton ShoppingService objects. The AssociatesAPI class has the following methods:

Method Description
initialize() Initialize the API.
getLinkService() Retrieves a singleton `LinkService` object. For more information see [Direct Linking](../mobile-associates/mas-direct-linking.html).

LinkService

Used for Direct Linking to HAQM. The LinkService object has the following methods:

Method Description
openRetailPage(OpenHomePageRequest)
openRetailPage(OpenProductPageRequest)
openRetailPage(OpenSearchPageRequest)
Directs users to an HAQM retail page. You can make OpenHomePageRequest, OpenProductPageRequest, or OpenSearchPageRequest requests through openRetailPage().
DevAssistant