# 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 Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `CAT_ID_ACTION_ADVENTURE`
  Deprecated.
  `static final int`
  `CAT_ID_ADULT`
  Deprecated.
  `static final int`
  `CAT_ID_ARCADE`
  Deprecated.
  `static final int`
  `CAT_ID_EDUCATION`
  Deprecated.
  `static final int`
  `CAT_ID_ENTERTAINMENT`
  Deprecated.
  `static final int`
  `CAT_ID_HEALTH`
  Deprecated.
  `static final int`
  `CAT_ID_KIDS`
  Deprecated.
  `static final int`
  `CAT_ID_MOVIES`
  Deprecated.
  `static final int`
  `CAT_ID_MULTIMEDIA`
  Deprecated.
  `static final int`
  `CAT_ID_OTHERS`
  Deprecated.
  `static final int`
  `CAT_ID_PRODUCTIVITY`
  Deprecated.
  `static final int`
  `CAT_ID_RACING`
  Deprecated.
  `static final int`
  `CAT_ID_SOCIAL_NETWORKING`
  Deprecated.
  `static final int`
  `CAT_ID_SPIRITUAL`
  Deprecated.
  `static final int`
  `CAT_ID_SPORTS`
  Deprecated.
  `static final int`
  `CAT_ID_STRATEGY`
  Deprecated.
  `static final int`
  `CAT_ID_TRAVEL`
  Deprecated.
  `static final int`
  `CAT_ID_UTILITY`
  Deprecated.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `VServAds()`
  Deprecated.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected void`
  `clearPendingAd()`
  Deprecated.
  Removes the pending ad data so we can fetch a new ad
  `protected ConnectionRequest`
  `createAdRequest()`
  Deprecated.
  Creates a new request for an ad
  `protected boolean`
  `failed()`
  Deprecated.
  Returns true if the connection failed
  `protected String`
  `getAdDestination()`
  Deprecated.
  Returns the URL for the ad
  `int`
  `getCategory()`
  Deprecated.

  ###### Returns

  `String`
  `getCountryCode()`
  Deprecated.

  ###### Returns

  `String`
  `getLocale()`
  Deprecated.

  ###### Returns

  `String`
  `getNetworkCode()`
  Deprecated.

  ###### Returns

  `protected Component`
  `getPendingAd()`
  Deprecated.
  Component representing a given ad
  `String`
  `getZoneId()`
  Deprecated.

  ###### Returns

  `protected boolean`
  `hasPendingAd()`
  Deprecated.
  Just checks if an ad is already fetched
  `boolean`
  `isAllowSkipping()`
  Deprecated.

  ###### Returns

  `void`
  `setCategory(int category)`
  Deprecated.

  ###### Parameters

  `void`
  `setCountryCode(String countryCode)`
  Deprecated.

  ###### Parameters

  `void`
  `setLocale(String locale)`
  Deprecated.

  ###### Parameters

  `void`
  `setNetworkCode(String networkCode)`
  Deprecated.

  ###### Parameters

  `void`
  `setZoneId(String zoneId)`
  Deprecated.

  ###### Parameters

  ### Methods inherited from class FullScreenAdService

  `bindTransitionAd, getAdDisplayTime, getTimeout, isAllowWithoutNetwork, isScaleMode, setAdDisplayTime, setAllowSkipping, setAllowWithoutNetwork, setScaleMode, setTimeout, showWelcomeAd`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### CAT_ID_ACTION_ADVENTURE

    public static final int CAT_ID_ACTION_ADVENTURE
    Deprecated.
    See Also:
      - Constant Field Values

  - ### CAT_ID_SPORTS

    public static final int CAT_ID_SPORTS
    Deprecated.
    See Also:
      - Constant Field Values

  - ### CAT_ID_MOVIES

    public static final int CAT_ID_MOVIES
    Deprecated.
    See Also:
      - Constant Field Values

  - ### CAT_ID_KIDS

    public static final int CAT_ID_KIDS
    Deprecated.
    See Also:
      - Constant Field Values

  - ### CAT_ID_RACING

    public static final int CAT_ID_RACING
    Deprecated.
    See Also:
      - Constant Field Values

  - ### CAT_ID_ARCADE

    public static final int CAT_ID_ARCADE
    Deprecated.
    See Also:
      - Constant Field Values

  - ### CAT_ID_ADULT

    public static final int CAT_ID_ADULT
    Deprecated.
    See Also:
      - Constant Field Values

  - ### CAT_ID_STRATEGY

    public static final int CAT_ID_STRATEGY
    Deprecated.
    See Also:
      - Constant Field Values

  - ### CAT_ID_TRAVEL

    public static final int CAT_ID_TRAVEL
    Deprecated.
    See Also:
      - Constant Field Values

  - ### CAT_ID_EDUCATION

    public static final int CAT_ID_EDUCATION
    Deprecated.
    See Also:
      - Constant Field Values

  - ### CAT_ID_PRODUCTIVITY

    public static final int CAT_ID_PRODUCTIVITY
    Deprecated.
    See Also:
      - Constant Field Values

  - ### CAT_ID_ENTERTAINMENT

    public static final int CAT_ID_ENTERTAINMENT
    Deprecated.
    See Also:
      - Constant Field Values

  - ### CAT_ID_MULTIMEDIA

    public static final int CAT_ID_MULTIMEDIA
    Deprecated.
    See Also:
      - Constant Field Values

  - ### CAT_ID_SPIRITUAL

    public static final int CAT_ID_SPIRITUAL
    Deprecated.
    See Also:
      - Constant Field Values

  - ### CAT_ID_UTILITY

    public static final int CAT_ID_UTILITY
    Deprecated.
    See Also:
      - Constant Field Values

  - ### CAT_ID_SOCIAL_NETWORKING

    public static final int CAT_ID_SOCIAL_NETWORKING
    Deprecated.
    See Also:
      - Constant Field Values

  - ### CAT_ID_HEALTH

    public static final int CAT_ID_HEALTH
    Deprecated.
    See Also:
      - Constant Field Values

  - ### CAT_ID_OTHERS

    public static final int CAT_ID_OTHERS
    Deprecated.
    See Also:
      - Constant Field Values

- ## 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`