I'm new to android dev. I'm currently try to implement app, querying adsense revenue.
I found AdSense Management API v1.1 (Rev. 18) 1.7.2-beta.
The question is: is it possible to get revenue with API browser key and are there any samples (as there is no samples in this library)?
There's a Java command-line sample for the AdSense Management API and an Android sample. Both use the Java client library for Google APIs.
For a quick overview on how to get started with the AdSense Management API and the Java client library, you can check this client library guide.
Hope this helps!
Related
I am working on an application for which I need to upload/download files from the user's Google Drive account. I came across two documentation from Google about using Google Drive API on Android Platfrom:
REST API
Google Drive API Android
I have following questions:
What is the difference between these two options?
What are the advantages and disadvantages of each option?
Which is a more suitable option for Android application development?
I would appreciate any suggestions and thoughts on this topic. Thank you.
Google Drive Android API is a native Android API which utilises the Google Play Services to communicate.
Whereas the rest API is a HTTP API - Which can be used in any platform - Web, Android, iOS. REST api is implemented using REST approach.
The Android API is an abstraction layer with certain optimisations. So your choice of API would depend on your use case.
I have gone through some of the links that difference between the Google API and android API.I have not got clear explanation.Anyone Can you help me please?
Answer for your question is below
The google API includes
->Maps and other Google-specific libraries.
The Android one only includes
->core android libraries.
There is a huge set of google apis for using all google web services !
google maps
google search
google app engine
google signin
... (see google products: https://developers.google.com/products/?csw=1)
Android API is part of the Android SDK (software development kit) and is to develop android applications.
You can note that Android API may be considered as a part of google APIs because it authored by google.
Google API is for developing Google-based services such as Google Maps.
Android API is for developing Android apps.
google API:-
it uses all google specific libraries like google map,search engine,sign in.
Android API:-
it is also a part of google API.
it uses all core android libraries.
Android sdk holds Android API.
refenter link description here
We need full access of users Google drive, but it's providing limited access. We are unable to find Google APIs Client Library samples. Attached linked provide following information for samples.
From the documentation
The Google Drive Android API currently only supports drive.file and drive.appfolder authorization scopes. If your application requires additional permissions or features not yet available in the Drive Android API, you must use the Google APIs Java Client.
Where can I find Google APIs Java Client documentation and samples?
The GDAA API you're referring to is an API build on top of the REST API and supports only FILE scope.
The REST API supports the DRIVE scope that allows access to all folders/files.
I can offer a very simple DEMO of basic CRUD functionality for the REST API here (and parallel version of the GDAA API here).
Good Luck.
If you need more than the drive.file and drive.appfolder scope offer for your android application then you will need to use the API Client Library for Java instead of the Google Drive Android API available in Google Play Services.
You will also need the Google APIs Client Library for Java which performs common REST API tasks including authentication and token management. Review the "The library runs on Android (#Beta)" section in the README to see how to retrieve a Drive service object on android.
I am trying to integrate Youtube to my android app, where I need to upload videos to users account. From the Youtube developer it seems there are two versions to do so.
Version 3.0(Experimental)
Version 2.0
So Should I use 3.0 Version for Production Apps as it is been marked Experimental?
I would highly recommend using YouTube Data API v3. Even though it's classified as experimental, it's pretty stable and will be supported strongly. V2 will be deprecated and there will be only limited support. Most of developers are using V3.
I m confused about google API and android platform SDK API. are they same ? if not, What are the each used for?
Android is developed by Google, but can also be used without any Google services. So the Android platform SDK can be used for developing Android applications. If you however want to use any Google services in your Android Application, you should use the Google API Java Client library.
Google api is used for using google specific services like google map or google admob or google fusion. These generally contact google server to fetch data.
However, android platform sdk api is not google specific. It provides interface for application development. These may or may not require internet(depending on what you use it for)