Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here's how to declare a banner in XML. Note that you must replace “YOUR YOUR PUBLISHER ID” ID and "YOUR PLACEMENT ID" below with an active publisher ID and placement ID.

...

Code Block
// Android: XML to declare banner ad view (optional)
<net.eplanning.opensdk.BannerAdView
    android:id="@+id/banner"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    opensdk:publisher_id="YOUR PUBLISHER ID"
    opensdk:placement_id="YOUR PLACEMENT ID"
    opensdk:auto_refresh_interval="60000"
    opensdk:adWidth="320"
    opensdk:adHeight="50"
    opensdk:should_reload_on_resume="true"
    opensdk:opens_native_browser="true"
    android:expands_to_fit_screen_width="false"
    />

...