Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

IAP integration on Android, in Unity

Ryan Martin May 06, 2014 12:24PM PDT

We've got everything set up and working great inside Unity - with one exception: IAP tracking on Android.

I can't seem to find documentation anywhere on how to manually track IAP in Android using the Unity SDK. Any help would be great. Thanks

2 Community Answers

Best Answer
Sanaz Motahari May 06, 2014 07:33PM PDT

Hello,

Revenue can be tracked as a regular event with the name “iap”, and with the parameters specified in the following article:
http://support.apsalar.com/customer/portal/articles/717516-revenue#ecommerce

View in conversation


Up 2 rated Down
Sanaz Motahari Best Answer May 06, 2014 07:33PM PDT APSALAR Agent

Hello,

Revenue can be tracked as a regular event with the name “iap”, and with the parameters specified in the following article:
http://support.apsalar.com/customer/portal/articles/717516-revenue#ecommerce

Up 3 rated Down
Nick Resnik May 16, 2014 03:54PM PDT APSALAR Agent

Hello,
Here is an example of the recommended implementation:

JSONObject iap = new JSONObject();
iap.put(“ps”, apiKey);
iap.put(“pk”, productId);
iap.put(“pn”, productName);
iap.put(“pc”, productCategory);
iap.put(“pcc”, currencyCode);
iap.put(“pq”, quantity);
iap.put(“r”, revenue);
Apsalar.event(“iap”, iap);

Post Your Public Answer

Your name *
Your email address *
Answer *
support@apsalar.com
http://assets2.desk.com/
apsalarinc
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
Invalid characters found
/customer/en/portal/articles/autocomplete