Chartboost, RevMob, AppFlood and AdMob

File: JVE.ChartBoost.pas    Inheritance: TComponent ⬅ TJVEChartBoost

File: JVE.RevMob.pas         Inheritance: TComponent ⬅ TJVERevMob

File: JVE.AppFlood.pas      Inheritance: TComponent ⬅ TJVEAppFlood

File: JVE.AdMob.pas          Inheritance: TComponent ⬅ TJVEAdMobInterstitial

These components provide interfaces for Chartboost, RevMob, AppFlood and AdMob SDKs for presenting interstitial or full screen ads within a mobile application.

To present Chartboost ads you will need to register at https://www.chartboost.com.

To present RevMob ads you will need to register at http://www.revmob.com.

To present AppFlood ads you will need to register at http://www.appflood.com.

To present AdMob ads you will need to register at http://www.admob.com.

Each of the platforms above requires you to separately register the app, for each supported platform (currently this suite only support iOS and Android for advertising) and each provides one or two IDs for the app.

 

The platform is specified in a prefix “iOS” or “Android” of the name of the property (except for AdMob, which requires separate keys for cell and tablet). The properties thus defined are:

jveadschart

The list of properties, exposed by each component, is:

jveads
Unlike other SDKs, RevMob also allows you to provide basic information about the intended user of the app, thus TJVERevMob component also exposes the following properties:
  • UserGender – if (expected) gender of the user is known, set it here.
  • UserAgeMin and UserAgeMax – if the (expected) age (or age range) of the user is known, use these properties to set it.
  • UserInterests – list any known user’s interests in this property.
  • UserLocation – if the current location of the user is known, it can be provided in this public (not published) property.

AdMob also allows you to provide user information, as follows:

  • UserGender – if (expected) gender of the user is known, set it here.
  • UserAgeYears – if the (expected) age of the user is known, use this property to set it.
  • UserKeywords – list any known user’s interests in this property.
  • UserLocation – if the current location of the user is known, it can be provided in this public (not published) property.
  • COPPACompliance – indicates that the SDK should be compliant with COPPA act.

All these properties are optional, but providing their values might improve the quality of ads, effectively resulting in a higher level of revenues.

 

No events are exposed by any of these components; the following methods are exposed:

  • Cache – caches the ad from the servers into the device.
  • IsCached – returns True if the ad was successfully cached.
  • Show – presents the ad. If the ad was cached, presents it immediately, otherwise caches it and presents it. If there are no ads currently available – does nothing.

See Interstitials support section below for more use cases for these components.

 

It should be noted that these components are only available in mobile applications (since the underlying SDKs are only available there), so these components do nothing on other platforms (Cache and Show perform no action, while IsCached always returns False).

jveads2