Google AdMob已弃用的API。

huangapple go评论59阅读模式
英文:

google admob deprecated APIs

问题

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

英文:

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

答案1

得分: 0

看来文档已经更改,新文档准确反映了应该使用的更新后的 API。

英文:

It seems the documentation has been changed and the new documentation accurately reflects the updated API that should be used.

huangapple
  • 本文由 发表于 2023年2月6日 20:17:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/75361215.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定