End user can install my application from Marketplace Apps. But When they uninstall from marketplace app, I didn't get uninstall information and my application starts to get user details from that domain using admin sdk ,It returns '403:Requested domain is not authorized' and then i understand End User has removed app from marketplace apps .So I wanted to capture this uninstallation information so that i can stop tasks related to that domain.
Another thing is If end user install app on particular org unit. I am unable to get that org unit name, path etc. So how can i get that installed org details ? So that it will be easy to get users from that org unit using admin sdk.