Versions Compared

Key

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

...

  • opensdk:publisher_id or adview.setPublisherId(Int publisherID): The publisherID ID associated with your app's inventory. You must include a publisher ID or an error will be thrown. Example: "123456". You can get this value from our UI or from your Account Manager.

  • opensdk:placement_id is an internal value that will be used to identify the placement in your app. Please use any name that will help you to identify the placement.

  • opensdk:auto_refresh_interval or adview.setAutoRefreshInterval(long interval): The interval, in milliseconds, at which the ad view will request new ads, if autorefresh is enabled. The minimum period is 15 seconds. The default period is 30 seconds. Set this to 0 to disable autorefresh. Example: "60000".

  • opensdk:ad_width or adview.setAdSize(int width, int height): The width of the advertisement to request from the server. If this is not set, the SDK requests an ad of at least android:layout_width. Note that the Java method setAdSize sets the width and height at the same time. Example: "320".

  • opensdk:ad_height or adview.setAdSize(int width, int height): The height of the view. Note that the Java method setAdSize sets the width and height at the same time. Example: "50dp".

...

Showing interstitial ads is a little more work. In addition to setting up an InterstitialAdView with your publisher ID and placement ID, you must implement the AdListener interface, which includes methods that tell you when an interstitial ad has successfully finished loading, or when the request has failed.

...