Unity IAP は、すばやく簡単に Product Catalogs を作成、エクスポートするためのツールを提供します。Unity エディターの IAP Catalog ウィンドウを使用して Product のメタデータを入力してから、カタログを Developer Dashboard にエクスポートして各 Product のクリエイティブアセットを設定します。また、後述のように Dashboard に Product を手動で加えることもできます。
エディター内で Window > UnityIAP > IAP Catalog を選択し、IAP Catalog ウィンドウを開きます。このウィンドウには以前設定した Product の設定がすべてリストされていて、それぞれに以下の属性を定義できます。
ノート: エクスポートするには、Product Catalog に少なくとも 1 つの Product が設定されている必要があります。Products を設定するための詳しい手順については Codeless IAP のドキュメントを参照してください。
以下のような Builder スクリプトを使用して Unity IAP の Product Catalog を設定することができます。
var builder = ConfigurationBuilder.Instance(StandardPurchasingModule.Instance());
builder.AddProduct(product_coins, ProductType.Consumable);
builder.AddProduct(product_hat, ProductType.NonConsumable);
builder.AddProduct(product_elite, ProductType.Subscription);
IAP Promo はエディタの IAP Catalog GUI からエクスポートされた JSON ファイルのみをサポートしています。したがって、以下のように手順を変更することをお勧めします:
builder.AddProduct()
コードを削除またはコメントアウトします。StandardPurchasingModule module = StandardPurchasingModule.Instance();
ProductCatalog catalog = ProductCatalog.LoadDefaultCatalog();
ConfigurationBuilder builder = ConfigurationBuilder.Instance(module);
IAPConfigurationHelper.PopulateConfigurationBuilder(ref builder, catalog);
UnityPurchasing.Initialize(this, builder);
Developer Dashboard の Developer Dashboard の操作ページ で Product Catalog を管理します。アクティブなプロジェクトは、左上に表示されます。製品を管理するには、左側のナビゲーションバーから Monetization > In-App Purchases を選択します。
手動で Product を取得したり、JSON ファイルをインポートすることによってまとめて複数を取得することもできます。
Dashboard の Product configuration メニュー (Monetization > In-App Purchases) で、右上の ADD NEW PRODUCT ボタンをクリックし、以下の内容を入力します。
SAVE ボタンをクリックして、カタログに Product を保存します。
Product Catalog を設定またはカタログに登録済みの Products を更新するには:
インポートされた Products は Product Catalog のリストに表示されます。しかしながら、Promotions として適格となるためには、それぞれの Product が対応するクリエイティブアセットを持つ必要があります。(これをやらないと表示する Placement がないということになります)
クリエイティブアセットを加えるには、次の手順を行います。
Product Catalog リストから Product を選択し、Creative Uploads セクションまでスクロールダウンします。
ノート: 各製品の Product ID、Name、Price、Type が Dashboard に表示されますが、これらの属性はエディターの IAP Catalog ウィンドウからのみ編集できます。
地域ごとに固有のクリエイティブアセットを指定するには、ADD LANGUAGE を選択し、加える言語にチェックを入れます。
ノート: ドロップダウンは、現在編集中の言語を示しています。含まれる言語にクリエイティブアセットがない場合は、デフォルトで 英語 (米国) のクリエイティブアセットを使用します。
UPLOAD CREATIVE を選択し、クリエイティブアセットをアップロードします。プレビューは左側で確認できます。
SAVE を選択して次に進みます。Product Catalog のページに戻ると、 Product がプロモーションの対象になっています (Creative Attached の欄に表示されます)。
ノート: 適切なストア (Google Play や iTunes) で購入手続きができるように、Product Catalog を提出する必要があります。詳しくは Codeless IAP ドキュメントの Export セクションを参照してください。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.