
package com.google.api.ads.adwords.jaxws.v201402.video;

import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceFeature;


/**
 * This class was generated by the JAX-WS RI.
 * JAX-WS RI 2.2.4-b01
 * Generated source version: 2.1
 * 
 */
@WebServiceClient(name = "VideoCampaignCriterionService", targetNamespace = "https://adwords.google.com/api/adwords/video/v201402", wsdlLocation = "https://adwords.google.com/api/adwords/video/v201402/VideoCampaignCriterionService?wsdl")
public class VideoCampaignCriterionService
    extends Service
{

    private final static URL VIDEOCAMPAIGNCRITERIONSERVICE_WSDL_LOCATION;
    private final static WebServiceException VIDEOCAMPAIGNCRITERIONSERVICE_EXCEPTION;
    private final static QName VIDEOCAMPAIGNCRITERIONSERVICE_QNAME = new QName("https://adwords.google.com/api/adwords/video/v201402", "VideoCampaignCriterionService");

    static {
        URL url = null;
        WebServiceException e = null;
        try {
            url = new URL("https://adwords.google.com/api/adwords/video/v201402/VideoCampaignCriterionService?wsdl");
        } catch (MalformedURLException ex) {
            e = new WebServiceException(ex);
        }
        VIDEOCAMPAIGNCRITERIONSERVICE_WSDL_LOCATION = url;
        VIDEOCAMPAIGNCRITERIONSERVICE_EXCEPTION = e;
    }

    public VideoCampaignCriterionService() {
        super(__getWsdlLocation(), VIDEOCAMPAIGNCRITERIONSERVICE_QNAME);
    }

    public VideoCampaignCriterionService(URL wsdlLocation, QName serviceName) {
        super(wsdlLocation, serviceName);
    }

    /**
     * 
     * @return
     *     returns VideoCampaignCriterionServiceInterface
     */
    @WebEndpoint(name = "VideoCampaignCriterionServiceInterfacePort")
    public VideoCampaignCriterionServiceInterface getVideoCampaignCriterionServiceInterfacePort() {
        return super.getPort(new QName("https://adwords.google.com/api/adwords/video/v201402", "VideoCampaignCriterionServiceInterfacePort"), VideoCampaignCriterionServiceInterface.class);
    }

    /**
     * 
     * @param features
     *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
     * @return
     *     returns VideoCampaignCriterionServiceInterface
     */
    @WebEndpoint(name = "VideoCampaignCriterionServiceInterfacePort")
    public VideoCampaignCriterionServiceInterface getVideoCampaignCriterionServiceInterfacePort(WebServiceFeature... features) {
        return super.getPort(new QName("https://adwords.google.com/api/adwords/video/v201402", "VideoCampaignCriterionServiceInterfacePort"), VideoCampaignCriterionServiceInterface.class, features);
    }

    private static URL __getWsdlLocation() {
        if (VIDEOCAMPAIGNCRITERIONSERVICE_EXCEPTION!= null) {
            throw VIDEOCAMPAIGNCRITERIONSERVICE_EXCEPTION;
        }
        return VIDEOCAMPAIGNCRITERIONSERVICE_WSDL_LOCATION;
    }

}
