PurchaseReportingController

public final class PurchaseReportingController extends Object

Interface for merchants to report purchases made by users in the app.

Public Constructor Summary

PurchaseReportingController(Context context, String merchantId)
Creates a new PurchaseReportingController.

Public Method Summary

void
reportPurchase(List<PurchaseInfo> purchases, String orderId)
Reports a purchase resulting from a Sponsored Product Ad (SPA).

Inherited Method Summary

Public Constructors

public PurchaseReportingController (Context context, String merchantId)

Creates a new PurchaseReportingController.

Parameters
context The context the PurchaseReportingController is running in, typically an Activity
merchantId The Merchant Center Id for the app

Public Methods

public void reportPurchase (List<PurchaseInfo> purchases, String orderId)

Reports a purchase resulting from a Sponsored Product Ad (SPA). The orderId should be unique within a given merchant's purchases to prevent duplicate conversions from being reported.

Parameters
purchases
orderId