You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.
I've tried to create an InApp product, but publisher-api return only: { "code" : 500, "message" : null }
Here is my code:
val token = new TokenResponse()
token.setAccessToken("<put_valid_token>")
token.setExpiresInSeconds(3600L)
val creds = new Credential(BearerToken.queryParameterAccessMethod()).setFromTokenResponse(token)
val service = new AndroidPublisher.Builder(
GoogleNetHttpTransport.newTrustedTransport(), JacksonFactory.getDefaultInstance, creds).setApplicationName("test")
.build()
val listing = new InAppProductListing()
listing.setTitle("Title")
listing.setDescription("Desc")
val price = new Price
price.setCurrency("USD")
price.setPriceMicros("199000000")
val contentInApp = new InAppProduct()
contentInApp.setDefaultLanguage("en-US")
contentInApp.setStatus("active")
contentInApp.setListings(Map(
"en-US" -> listing
).asJava)
contentInApp.setPurchaseType("managedUser")
contentInApp.setSku("b2b876c34f3145a6a7d41a0a76969929")
contentInApp.setDefaultPrice(price)
val result2 = service.inappproducts().insert("net.playq.dmitry.inapptest", contentInApp).execute()
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi
I've tried to create an InApp product, but publisher-api return only:
{ "code" : 500, "message" : null }
Here is my code:
The text was updated successfully, but these errors were encountered: