Crea campagne di prova e verifica i codici promozionali in Play Console. Nella campagna di prova, specifica gli ID dei prodotti in-app.
Su un dispositivo di prova, usa il menu Utilizza nell'app Play Store. In questo modo puoi verificare di poter ricevere prodotti in-app per le promozioni a livello di punti nella tua app. Il seguente screenshot mostra un esempio:
Verifica i seguenti scenari utilizzando i codici promozionali:
L'app non è installata: l'utente utilizza Play Points, il Play Store ti chiede di installare l'app, dopodiché la tua app dovrebbe rilevare e consegnare gli articoli.
L'app è installata, ma non in esecuzione: l'utente utilizza Play Points, il Play Store ti chiede di aprire l'app, dopodiché la tua app dovrebbe rilevare e pubblicare gli articoli.
L'app è installata e in esecuzione: l'utente utilizza i punti Play, quindi la tua app
dovrebbe ricevere e rilevare gli articoli.
Con i passaggi del test precedenti, puoi verificare che l'integrazione dell'API funzioni correttamente e puoi configurare e inviare promozioni Play Points (se la funzionalità è attiva per il tuo gioco).
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2025-07-27 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-27 UTC."],[],[],null,["# Self-test using promo codes from Play Console\n\nYou can test your in-app products for Play Points using\n[Test promo codes](/google/play/billing/test#promo). To do so, do the following:\n\n- Create test campaigns and test promo codes in the Play Console. In your test\n campaign, specify the product IDs of your in-app products.\n\n- On a test device, use the **Redeem** menu in the Play Store app. By doing this you\n can verify that you can receive in-app products for Points promotions in your\n app. The following screenshot displays an example:\n\nVerify the following scenarios using promo codes:\n\n- App is not installed: The user redeems Play Points, the Play Store asks you to\n install your app, then your app should detect and deliver the items.\n\n- App is installed, but not running: The user redeems Play Points, the Play\n Store asks you to open your app, then your app should detect and serve the\n items.\n\n- App is installed and running: The user redeems Play Points, then your app\n should receive and detect the items.\n\n| **Note:** Testing with promo code purchases will not create/return an orderID; however, Play points promotions will once published.\n\nWith the test steps above, you can verify your API integration is working\nproperly and you are ready to configure and submit Play Points promotions\n(if the feature is enabled for your game)."]]