For creating a wrapper, you can follow this guide https://refinery89.atlassian.net/wiki/x/A4DcSQ, In this page we present different ways to create the wrapper.
This is the recommended way (Most Common) ->
This code goes inside the root of your layout file.
# activity_main.xml ... <LinearLayout android:id="@+id/wrapper" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_centerHorizontal="true" android:layout_alignParentBottom="true"> </LinearLayout> ... |
Get this view from an activity or fragment, a way to do it could be:
# MainActivity.kt val wrapper = findViewById(R.id.wrapper) val bannerConfigId = ConfigBuilder.BANNER_TEST_R89_CONFIG_ID R89AdFactory.createBanner(bannerConfigId, wrapper) |
Your They can be many or none depending on your requests, if you need one or more please request them to your account manager or technical account manager. |
You can subscribe to these events with the same method but passing a new object as a parameter. Details about this object can be found in the Reference.
# MainActivity.kt val wrapper = findViewById(R.id.wrapper) val bannerConfigId = ConfigBuilder.BANNER_TEST_R89_CONFIG_ID val bannerLifecycleListener = <create the listener with a method or inplace> R89AdFactory.createBanner(bannerConfigId, wrapper, bannerLifecycleListener) |