Class VServAds

java.lang.Object
com.codename1.impl.FullScreenAdService
com.codename1.impl.VServAds

@Deprecated public class VServAds extends FullScreenAdService
Deprecated.
the V-Serv ad network is defunct. Use the modern advertising API in AdManager instead.
The v-serv ad service implements full screen ads
  • Field Details

  • Constructor Details

    • VServAds

      public VServAds()
      Deprecated.
  • Method Details

    • createAdRequest

      protected ConnectionRequest createAdRequest()
      Deprecated.

      Creates a new request for an ad

      Returns

      the network operation

      Specified by:
      createAdRequest in class FullScreenAdService
    • hasPendingAd

      protected boolean hasPendingAd()
      Deprecated.
      Description copied from class: FullScreenAdService

      Just checks if an ad is already fetched

      Returns

      returns true if an ad is already waiting in the queue

      Specified by:
      hasPendingAd in class FullScreenAdService
    • clearPendingAd

      protected void clearPendingAd()
      Deprecated.
      Removes the pending ad data so we can fetch a new ad
      Specified by:
      clearPendingAd in class FullScreenAdService
    • getPendingAd

      protected Component getPendingAd()
      Deprecated.

      Component representing a given ad

      Returns

      the ad that is currently pending

      Specified by:
      getPendingAd in class FullScreenAdService
    • getAdDestination

      protected String getAdDestination()
      Deprecated.

      Returns the URL for the ad

      Returns

      the ad URL

      Specified by:
      getAdDestination in class FullScreenAdService
    • failed

      protected boolean failed()
      Deprecated.
      Returns true if the connection failed
      Specified by:
      failed in class FullScreenAdService
    • getCountryCode

      public String getCountryCode()
      Deprecated.
      Returns

      the countryCode

    • setCountryCode

      public void setCountryCode(String countryCode)
      Deprecated.
      Parameters
      • countryCode: the countryCode to set
    • getNetworkCode

      public String getNetworkCode()
      Deprecated.
      Returns

      the networkCode

    • setNetworkCode

      public void setNetworkCode(String networkCode)
      Deprecated.
      Parameters
      • networkCode: the networkCode to set
    • getLocale

      public String getLocale()
      Deprecated.
      Returns

      the locale

    • setLocale

      public void setLocale(String locale)
      Deprecated.
      Parameters
      • locale: the locale to set
    • getCategory

      public int getCategory()
      Deprecated.
      Returns

      the category

    • setCategory

      public void setCategory(int category)
      Deprecated.
      Parameters
      • category: the category to set
    • getZoneId

      public String getZoneId()
      Deprecated.
      Returns

      the zoneId

    • setZoneId

      public void setZoneId(String zoneId)
      Deprecated.
      Parameters
      • zoneId: the zoneId to set
    • isAllowSkipping

      public boolean isAllowSkipping()
      Deprecated.
      Returns

      the allowSkipping

      Overrides:
      isAllowSkipping in class FullScreenAdService