We have an app that's getting license info about our clients' Google organizations. We've been using SKU IDs before but now we've faced with non-profit organization and Google support says there's no SKU IDs for nonprofits.
We've been investigating a way to use ProductId
instead but I see no suitable ProductIds
for non profits here
For regular organizations we're using com.google.api.services.licensing
Java package
and something like
var productLicensing = new Licensing.Builder(HTTP_TRANSPORT, JSON_FACTORY, oAuth2Credentials)
.setApplicationName(APPLICATION_NAME).build();
var request = productLicensing.licenseAssignments()
.listForProductAndSku(productId, skuId, domain);
var assignments = request.execute();
// further operations
Is there any idea how we can distinguish regular organizations from non-profit ones using Google API? Do nonprofits have special ProductId
?
Answer:
I don't think there are product ids for Nonprofit licenses. Therefore, I don't think there's any API that will return this kind of information.
Feature requests:
I went ahead and filed a feature request in Issue Tracker to add
productIds
to Non-profit licenses:There's also a feature request to list all available products and SKUs. It might be useful in this kind of situations:
Consider subscribing to these issues in order to keep track of them and to help prioritizing them.