Is there a plan to support native ads in jetpack c...
# compose
r
Is there a plan to support native ads in jetpack compose?
k
What does that have to do with a UI toolkit?
r
Sorry. I mean support of jetpack compose in google ads
j
@Kirill Grouchnikov now you have to use a XML view, so you have to do multiple implementations if you have to use it in desktop too, because compose is a Multiplatform project, should be great out of the box components for these things
k
So the question is more "is a company X going to provide Compose versions of their ad components" for some values of X
r
@JavierI think we will have to write multi platform logic of ad loading part with actual/expect composable functions. When client is desktop app it will load ads from custom server
c
You can just use AndroidView for now. I think in one of the videos @Manuel Vivo specifically calls out AndroidView can be used for WebView, MapView, and adView from google ads.
v
Hi. I can confirm that the Google PublisherAdView works when wrapping it in a Compose AndroidView for backwards compatibility. The setup is a little tricky, but that would be true if you are using the legacy View system or Compose. Good luck.
n
Sorry to necro 😅 . Are you aware of any progress on this topic?
😂 1