Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@thatfiredev
Copy link
Member

The build is failing in #285 due to AdMob Breaking Changes.
I was going to upgrade this code to the new admob v20.0.0, but then I noticed that most of it is not even shown on our docs. Maybe it's time to clean it up?

@samtstern
Copy link
Contributor

@rosariopfernandes I think you're right, these are unused. Thanks for catching this!

@samtstern samtstern merged commit 151725f into firebase:master Apr 13, 2021
@samtstern
Copy link
Contributor

samtstern commented Apr 15, 2021

Oops this is my bad but two of these snippets are actually used:
https://firebase.google.com/docs/admob/android/quick-start#add-and-initialize-sdk

I'll have to restore those ... no need for you to do anything though I might just hardcode them into the docs since it's basically one line.

@thatfiredev
Copy link
Member Author

thatfiredev commented Apr 15, 2021

@samtstern The link you posted takes me to this section:

Screenshot from 2021-04-15 19-25-11

If you're talking about the MobileAds.initialize() snippet, it was not removed by this PR. It's still in this repo.

Other that this one, I don't see any other Java/Kotlin snippet in that docs page you linked.

Comment on lines 9 to 15
// [START ads_on_create]
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
// ...
MobileAds.initialize(this)
}
// [END ads_on_create]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samtstern Here's the snippet I kept.

@samtstern
Copy link
Contributor

Yep you're right, it was a false alarm! Something else broke the page and I assumed it was this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants