Google Play Android Developer API - android

I'm developing an android application that is going to sell in-app products.
In the google documentation about "Google Play In-App Billing" there is a section called Purchase Status API. After reading this section what I've understood is that purchases verification should be done with the Google Play Android Developer API v1.1 in my backend server.
I've tried to understand the Google Play Android Developer API documentation, but I don't understand what I have to do to get an authorization token.
Please, help me!
Thanks

I've found a thread where it's explained everything. How to obtain the refresh token, how to use it to obtain a new access token, and how to use the API to query a subscription.
This is the thread where I've found the solution:
Unable to get the subscription information from Google Play Android Developer API
Hope this helps.

Have you looked at https://developers.google.com/android-publisher/authorization. This contains all the details you should need.
Basically, you login via your Google Account to the google api console, create a new project from the menu on the left and then on the list of api's on the right find the name of the api for the google play developer api and turn it on.
You will then need to follow the instruction on the web page about you create a new client.
Hope this helps.

Related

How to setup Google Pay Console to integrate Android application for Google pay API

As in Test environment I am getting the response from google, with test example token, but in production environment I am getting error :- You have not registered to use this API.
I have gone through the troubleshoot document as well Troubleshoot google doc, there it is mentioned
You haven't completed the process to register your app for the Google Pay API. Review Request production access for more information.
But in google pay console I am not getting the option for requesting production access, rather I am getting the view for which I have attached a image Google pay dashboard.
I am trying to reach out Google pay support for this but no response yet. I am supposing I am missing something in google pay console or in integration setup, can anyone help me out with this, will be highly appreciated.
Thanks in advance.
What happens when you click on Create an integration?
When I visit the Google Pay Business Console (https://pay.google.com/business/console/payment/YOUR_MERCHANT_ID), I get the following:
I get this because I don't have a Google Play developer account attached to my email address, but I believe that if you've got a Google Play developer account, that should allow you choose from a list of your Android apps.
What do you see if you click on Google Pay API on the left hand menu?

Is it possible to get list of in-app purchases from Google Play API directly to my server?

I need to integrate google play in-app purchases with my server-side billing.
Any way to get list of in-app purchases via some Google Play API to my server without client app in between?
Tried to find anything relevant in documentation and all I found is status check API which gives you status of specific purchase, but I need to get list of purchases too.
Okay, it's possible via Callback functions in Integration tab of Settings page but only if you have classic Google Checkout account.
If you just registered as Android Developer — you have a different type of account and those options are unavailable for you.
No way to sign up for classic account as Google Checkout is being substituted by Google Wallet and no way to change account time once you are registered.
sarcasm on:Thank you, Google!:sarcasm off

how to deal with Adsense API - Android

I want to make an App to read my earning on Adsense.
I made an app on Google and I generated a URL to login into the App.
https://accounts.google.com/o/oauth2/auth?from_login=0&response_type=code&scope=https://www.googleapis.com/auth/adsense&redirect_uri=xxxxxxxx&access_type=offline&as=-415b671ff3966dc2&pli=1&client_id=xxxxxxxxxxx&authuser=0&hl=en
but when the user login into the App and click on "Allow" the output has no access token just has "code".
also I want to know if there is an example of using google OAuth api on android because I tried to use it but I failed.
There's an AdSense Management API sample for Android in:
https://github.com/googleads/googleads-adsense-examples/tree/master/android
It uses Google Play Services to get the list of accounts on the device and the Google Client Library for Java to make the requests.
Yes, before calling any Google's API you need to be OAuth authenticated first, and thus to have a valid token.
Check this out to know how:
http://developer.android.com/training/id-auth/authenticate.html

Google checkout transactions for google play account

Situation:
Our company has an application in Google Play. Application uses in-app purchases and information about payment transactions are shown in google checkout.
Our company used in-house analytics system to see how many payments are done, how much money we got, etc.
I need to create some way to fetch information about payments from google play/checkout(#1) to our system (#2).
According to research in Internet, I found following ways to do that:
Polling API
Notification History API
Order Report API
All this sysstems will work for me, however, I need somehow to get Merchand Key in order to be able to request data from system.
Merchant key should be located in Settings -> integration, however, our company google checkout account has no "integration tab". According to interenet, reason is that we are not "standart merchant but google play merchant".
Questions are:
How to get information from google play about payments ?
Is there any other way to do such thing, for example directly from google play ?
Or, is there any other way to get merchant key ?
I am totally newbie in Android or google play so desperately need help.

Subscriptions google market billing api for android

In my android app internaly useing some transactions in that purpose i want use *Subscriptions Google market billing *.
i googled found some sites for In-app billing and Subscriptions ,now want used Subscriptions based api but not found any code related this api.i found in-app billing code only.
please send Subscriptions based code
There is no one specific API. It is an extension of in-app billing with a new parameter and a couple of modifications in the APIs. For example, in the RequestPurchase call in BillingService.java, the item type now needs to be 'subs'. You really need to read the documentation:
http://developer.android.com/guide/google/play/billing/billing_subscriptions.html
as well as download the 'Google play billing Rev 2' from the 'Extras' from the SDK manager as that's a sample app that does subscriptions. The entire code base for it is too big to just give you but the sample app is a good start. I suspect with such a vague question, you're not going to get more details.

Categories

Resources