Unity IAP provides quick and easy tools to create and export Product Catalogs. Use the Unity Editor’s IAP Catalog window to populate Product metadata, then export the catalog to the Developer Dashboard to configure each Product’s creative assets.
To build a Product Catalog, follow these steps:
In the IAP Catalog window, select App Store Export > Cloud JSON to export a local copy of the Product Catalog.
You may already use a builder script to populate your Product Catalog for Unity IAP. For example:
var builder = ConfigurationBuilder.Instance(StandardPurchasingModule.Instance()); builder.AddProduct(product_coins, ProductType.Consumable); builder.AddProduct(product_hat, ProductType.NonConsumable); builder.AddProduct(product_elite, ProductType.Subscription);
Because IAP Promo only supports JSON exports from the Editor IAP Catalog GUI, we recommend modifying your approach as follows:
builder.AddProduct()code from your purchasing script.
StandardPurchasingModule module = StandardPurchasingModule.Instance(); ProductCatalog catalog = ProductCatalog.LoadDefaultCatalog(); ConfigurationBuilder builder = ConfigurationBuilder.Instance(module); IAPConfigurationHelper.PopulateConfigurationBuilder(ref builder, catalog); UnityPurchasing.Initialize(this, builder);
From the IAP Promo section of the Developer Dashboard, select Product Catalog from the left navigation bar. Any existing Products appear here.
To set up a new Product Catalog or update existing Products in the catalog:
The imported Products appear in the Product Catalog list. However, in order to be eligible for Promotions, each Product must have an associated creative asset (otherwise there is nothing for the Placement to display).
To add creative assets, follow these steps:
Select a Product from the Product Catalog list, then scroll down to the Creative Uploads section.
Note: While each Product’s Product ID, Name, Price, and Type appear in the dashboard, you can only edit these attributes from the Editor’s IAP Catalog window.
To specify unique creative assets for different regions, select ADD LANGUAGE, then check the languages to include.
Note: The drop-down indicates the current language you are editing. If an included language has no creative assets, it defaults to using its English (United States) creative assets.
Select UPLOAD CREATIVE to upload a creative asset. A preview appears on the left.
Select SAVE to proceed. Upon returning to the Product Catalog page, your Product is now Promotion Eligible.
Note: You must export and submit your Product Catalog to the appropriate Google Play or iTunes store for the purchase flow to work. Please see the Export section in the documentation on Codeless IAP.
Did you find this page useful? Please give it a rating: