Google Play
SDK integration
dependencies {
implementation ("com.devtodev:android-google-purchases:*.*.*")
// Starting from version 6.0.0
implementation ("com.android.billingclient:billing:*.*.*")
}dependencies {
implementation 'com.devtodev:android-google-purchases:*.*.*'
// Starting from version 6.0.0
implementation 'com.android.billingclient:billing:*.*.*'
}val config = DTDAnalyticsConfiguration()
DTDAnalytics.initialize("App ID", config, context)
DTDGooglePurchases.initialize(context)
DTDGooglePurchases.startAutoTracking()DTDAnalyticsConfiguration config = new DTDAnalyticsConfiguration();
DTDAnalytics.INSTANCE.initialize(appKey, config, context);
DTDGooglePurchases.INSTANCE.initialize(context);
DTDGooglePurchases.INSTANCE.startAutoTracking();DTDAnalytics.Initialize(APPKey, new DTDAnalyticsConfiguration
{
UserId = userId,
ApplicationVersion = Application.version,
CurrentLevel = lvl,
LogLevel = DTDLogLevel.No,
TrackingAvailability = DTDTrackingStatus.Enable
});
DTDPurchases.StartAutoTracking();Subscription restore
Settings in Google Cloud Platform Console
Google Play Android Developer API




Service account



s 


Pub/Sub service
Settings on devtodev side
Settings in Google Play Console
Service account and User permissions

Monetisation setup

Last updated
Was this helpful?
















