rsktash

    rsktash

    1 year ago
    Is there a plan to support native ads in jetpack compose?
    k

    Kirill Grouchnikov

    1 year ago
    What does that have to do with a UI toolkit?
    rsktash

    rsktash

    1 year ago
    Sorry. I mean support of jetpack compose in google ads
    Javier

    Javier

    1 year ago
    @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

    Kirill Grouchnikov

    1 year ago
    So the question is more "is a company X going to provide Compose versions of their ad components" for some values of X
    rsktash

    rsktash

    1 year ago
    @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
    Colton Idle

    Colton Idle

    1 year ago
    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.
    Vince Rickey

    Vince Rickey

    1 year ago
    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.