# InAppPurchaseAddProductID

## Description

Use this command to add any product IDs into the list e.g. com.yourcompany.yourproduct.iap. The first product ID you add becomes 0, the second is 1 etc. You must also specify the type of product this is, consumable (1) or non-consumable(0). Consumable products are like coins that can be bought again and again, they are called Unmanaged items by Google Play. Non-consumable products are one off purchases like unlocking the full version of an app, they are called managed items by Google Play. Currently this command is only supported on iOS, Google Play, and Amazon. This must be called before InAppPurchaseSetup, after that no further products can be added.

## Definition

InAppPurchaseAddProductID ( szID, type )

void agk::InAppPurchaseAddProductID ( const char* szID, int type )

## Parameters

- ID - The product ID as specified in iTunes Connect or the Google Play developer console
- type - The type of product this is, consumable (1) or non consumable(0)