google admob deprecated APIs - unity3d

I'm currently implementing Ads for my Unity game and I am following google's documentation of integrating their admob api plugin with unity.
The problem is that when I import their api in my code, I get deprecation warnings. However, the documentation mentions nothing about it. The code works and I can see the test ads. The other problem is that the hello world project that they have linked in their documentation is different from their own documentation.
The "hello world" project uses the newer APIs (I think) but their documentation and tutorials use the old ones. I am confused here.
Which API should I use? Some of my other games use the old API. My question is, can I use the old APIs without any hassle instead of restructuring my entire codebase, since that is what is used in the documentation.
Here's the documentation that I am following.
https://developers.google.com/admob/unity/quick-start
https://developers.google.com/admob/unity/interstitial
Here's the hello world project that they have linked at the end of their doc
https://github.com/googleads/googleads-mobile-unity/tree/main/samples/HelloWorld

Related

Google Fit REST API and Unity

I have a game developed for me in Unity. The game pulls steps, blood pressure and glucose data. So far my developer have been able to pull health data from Apple Health Kit, but they are stuck with Google Fit. Does the Google Fit REST API work with Unity? Will I need my to create a plugin? Sorry, I have the code, but I would know what to show. I could ask my developer if that is needed. Thank you!
This is a great feature to extend Google SDK to the Unity platform. The official libraries do not exist yet, but suggested workaround is to use REST API. You may start working around with Google Fit API on the official docs. You can opt to use OAuth Playground or any API platform to start with. Once you establish communication with Google Fit, try to make a call between a client and a server with the help of RESTful API in Unity.

Use Google Play Billing inside Unity?

Just curious, can I use Google Play Billing functionality inside Unity? I see only Java & Kotlin examples, but maybe there is some plugin for Unity?
I can recommend the prime31 In App Billing Plugin, which is used for several years now. https://prime31.com/docs#androidIAB
Unity provides also an IAP Module them self, which i have not used yet:
https://docs.unity3d.com/Manual/UnityIAP.html
Update September 2020:
I now have used the Unity IAP module for a project on iOS and Google Play and it worked like a charm.
[2020] Google have released the Google Play billing plugin for Unity, which as per the Unity Package Manager description, "provides all of the features available in the current Java and Kotlin versions." It is an extension of UnityIAP.
You can review their documentation, including installation instructions, here.
The documentation for the plugin doesn't include much in the way of examples like the Java and Kotlin documentation, but it is open-source, so you can review the files themselves to see what you are able to implement.

Deviant Art API or SDK for iPhone?

Do you have any idea if there is available an official DeviantArt API or SDK for iPhone?
I am building an application and I would like to integrate a search through Deviant Art public feed.
Is this possible?
There is no official API or SDK for the iPhone. From reviewing their forums, it has been suggested many times, but so far has not been provided.
There's something called DiFi: http://www.botdom.com/documentation/DiFi that may be worth a try.
If that doesn't work, you could try interacting with the web site using a hidden UIWebView by using the – stringByEvaluatingJavaScriptFromString: method. I've used this in the past to interact with web sites that do not provide an API.
That's a wonderful idea, Andrei, but I don't think deviantart has any APIs available. However, what you want to do might not be impossible, you would just need to build your app to work with deviantart's website.

Is there an iPhone/iPad application that demonstrates the various API's like the Google Android API Demos app?

Here is a link to the Google app
http://developer.android.com/resources/samples/ApiDemos/index.html
There's tons of sample code:
http://developer.apple.com/library/ios/navigation/index.html#section=Resource%20Types&topic=Sample%20Code
I've not seen anything just like that, though there are tons of working app projects from Apple designed to demonstrate various APIs.
iOS Developer Library
Click Sample Code in the lefthand menu and then sort by framework.

iPhone Facebook Graph API library

Is there an library for the iPhone using the new Facebook Graph API yet?
This library is great: http://www.capturetheconversation.com/technology/iphone-facebook-oauth-2-0-and-the-graph-api-a-tutorial-part-2
I am using it with great success in a current iPad project.
Update: Author just posted code to github: http://github.com/reallylongaddress/iPhone-Facebook-Graph-API
Update: Please check https://github.com/reallylongaddress/iPhone-Facebook-Graph-API/issues/4 if you find post to FB crashing while using code
Not that I have seen and trying to write something myself has been without success. I am VERY disappointed with Facebook and there lack of support in this area especially since they want developers to move over to the API, however iPhone developers are SOL at the moment which is a shame since using their current SDK is a pain in the ass with all of their callbacks and delegates. It is not very clean at all.
FB Graph API SDK for iPhone is rumored to be released during WWDC. Android SDK is already officially announced (but not released, yet).