public static AdsService createAdsService(){
  try {
    AdsService adsService=(AdsService)service.newInstance();
    return adsService;
  }
 catch (  InstantiationException ex) {
    ex.printStackTrace();
  }
catch (  IllegalAccessException ex) {
    ex.printStackTrace();
  }
  return null;
}

public static AdsService createAdsService ( ) { try { AdsService adsService = ( AdsService ) service . newInstance ( ) ; return adsService ; } catch ( InstantiationException ex ) { ex . printStackTrace ( ) ; } catch ( IllegalAccessException ex ) { ex . printStackTrace ( ) ; } return null ; }
creates a new adsservice to be used by the ads component
