Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 3.34 KB

java-code-examples-for-submissions-game-options-and-trailers.md

File metadata and controls

52 lines (34 loc) · 3.34 KB
description title ms.date ms.topic keywords ms.localizationpriority
Use the Java code examples in this section to learn more about submitting game options and trailers using the Microsoft Store submission API.
Java sample - app submission with game options and trailers
07/10/2017
article
windows 10, uwp, Microsoft Store submission API, code examples, game options, trailers, advanced listings, java
medium

Java sample: app submission with game options and trailers

This article provides Java code examples that demonstrate how to use the Microsoft Store submission API for these tasks:

  • Obtain an Azure AD access token to use with the Microsoft Store submission API.
  • Create an app submission
  • Configure Store listing data for the app submission, including the gaming and trailers advanced listing options.
  • Upload the ZIP file containing the packages, listing images, and trailer files for the app submission.
  • Commit the app submission.

Create an app submission

The CreateAndSubmitSubmissionExample class implements a main program that calls other example methods to use the Microsoft Store submission API to create and commit an app submission that contains game options and a trailer. To adapt this code for your own use:

[!div class="tabbedCodeSnippets"] :::code language="java" source="~/../snippets-windows/windows-uwp/monetize/StoreServicesExamples_SubmissionAdvancedListings/java/CreateAndSubmitSubmissionExample.java" range="1-313":::

Obtain an Azure AD access token

The DevCenterAccessTokenClient class defines a helper method that uses the your tenantId, clientId and clientSecret values to create an Azure AD access token to use with the Microsoft Store submission API.

[!div class="tabbedCodeSnippets"] :::code language="java" source="~/../snippets-windows/windows-uwp/monetize/StoreServicesExamples_SubmissionAdvancedListings/java/DevCenterAccessTokenClient.java" range="1-69":::

Helper methods to invoke the submission API and upload submission files

The DevCenterClient class defines helper methods that invoke a variety of methods in the Microsoft Store submission API and upload the ZIP file containing the packages, listing images, and trailer files for the app submission.

[!div class="tabbedCodeSnippets"] :::code language="java" source="~/../snippets-windows/windows-uwp/monetize/StoreServicesExamples_SubmissionAdvancedListings/java/DevCenterClient.java" range="1-224":::

Related topics