Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  // Copyright 2012 Google Inc. All Rights Reserved.
  //
  // Licensed under the Apache License, Version 2.0 (the "License");
  // you may not use this file except in compliance with the License.
  // You may obtain a copy of the License at
  //
  //       http://www.apache.org/licenses/LICENSE-2.0
  //
  // Unless required by applicable law or agreed to in writing, software
 // distributed under the License is distributed on an "AS IS" BASIS,
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
 package com.google.api.ads.adwords.axis.utility.extension.delegates;
 
 
 import java.util.List;

Specific AbstractBaseDelegate for com.google.api.ads.adwords.axis.v201409.cm.ConstantDataServiceInterface.

Author(s):
Julian Toledo
 
 public final class ConstantDataDelegate
Default Constructor.

Parameters:
adWordsSession the adWordsSession to use with the delegate/service
 
   public ConstantDataDelegate(AdWordsSession adWordsSession) {
     super(adWordsSessionConstantDataServiceInterface.class);
   }

  
Constructor with custom service.

Parameters:
adWordsSession the adWordsSession to use with the delegate/service
service the custom service class for the SOAP service
 
       AdWordsSession adWordsSessionConstantDataServiceInterface service) {
     super(adWordsSessionservice);
   }

  
Retrieves all the AgeRanges.

Returns:
a list of all the AgeRanges
Throws:
java.rmi.RemoteException for communication-related exceptions
 
   public List<AgeRangegetAgeRangeCriterion() throws RemoteException {
     // Using ReflectionUtil to execute getService().getAgeRangeCriterion() with retries
     AgeRange[] ageRanges = (AgeRange[]) ReflectionUtil.invokeCount(
         "getAgeRangeCriterion"getService(), );
     return Arrays.asList(ageRanges);
   }

  
Retrieves all the Carriers.

Returns:
a list of all the Carriers
Throws:
java.rmi.RemoteException for communication-related exceptions
 
   public List<CarriergetCarrierCriterion() throws RemoteException {
     // Using ReflectionUtil to execute getService().getCarrierCriterion() with retries
     Carrier[] carriers = (Carrier[]) ReflectionUtil.invokeCount(
         "getCarrierCriterion"getService(), );
     return Arrays.asList(carriers);
   }

  
Retrieves all the Genders.

Returns:
a list of all the Genders
Throws:
java.rmi.RemoteException for communication-related exceptions
 
   public List<GendergetGenderCriterion() throws RemoteException {
     // Using ReflectionUtil to execute getService().getGenderCriterion() with retries
    Gender[] genders = (Gender[]) ReflectionUtil.invokeCount(
        "getGenderCriterion"getService(), );
    return Arrays.asList(genders);
  }

  
Retrieves all the Languages.

Returns:
a list of all the Languages
Throws:
java.rmi.RemoteException for communication-related exceptions
    // Using ReflectionUtil to execute getService().getLanguageCriterion() with retries
    Language[] languages = (Language[]) ReflectionUtil.invokeCount(
        "getLanguageCriterion"getService(), );
    return Arrays.asList(languages);
  }

  
Retrieves all the MobileDevices.

Returns:
a list of all the MobileDevices
Throws:
java.rmi.RemoteException for communication-related exceptions
    // Using ReflectionUtil to execute getService().getMobileDeviceCriterion() with retries
    MobileDevice[] mobileDevices = (MobileDevice[]) ReflectionUtil.invokeCount(
        "getMobileDeviceCriterion"getService(), );
    return Arrays.asList(mobileDevices);
  }

  
Retrieves all the OperatingSystemVersions.

Returns:
a list of all the OperatingSystemVersions
Throws:
java.rmi.RemoteException for communication-related exceptions
    // Using ReflectionUtil to execute getService().getOperatingSystemVersionCriterion() with
    // retries
    OperatingSystemVersion[] operatingSystemVersions =
        (OperatingSystemVersion[]) ReflectionUtil.invokeCount(
            "getOperatingSystemVersionCriterion"getService(), );
    return Arrays.asList(operatingSystemVersions);
  }

  
Retrieves all the ProductBiddingCategoryDatas.

Parameters:
selector should be a Generic Selector (com.google.api.adwords.v201409.cm.Selector) or a specific Selector appropriate to the ServiceInterface used that does not support Generic Selectors
Returns:
a list of all the ProductBiddingCategoryDatas
Throws:
java.rmi.RemoteException for communication-related exceptions
          throws RemoteException {
    // Using ReflectionUtil to execute getService().getUserInterestCriterion() with retries
    ProductBiddingCategoryData[] productBiddingCategoryDatas =
        (ProductBiddingCategoryData[]) ReflectionUtil.invokeCount(
            "getProductBiddingCategoryData"getService(), ,
            selector);
    return Arrays.asList(productBiddingCategoryDatas);
  }

  
Retrieves all the CriterionUserInterests.

Returns:
a list of all the CriterionUserInterests
Throws:
java.rmi.RemoteException for communication-related exceptions
      ConstantDataServiceUserInterestTaxonomyType constantDataServiceUserInterestTaxonomyType)
          throws RemoteException {
    // Using ReflectionUtil to execute getService().getUserInterestCriterion() with retries
    CriterionUserInterest[] criterionUserInterests =
        (CriterionUserInterest[]) ReflectionUtil.invokeCount(
            "getUserInterestCriterion"getService(), ,
            constantDataServiceUserInterestTaxonomyType);
    return Arrays.asList(criterionUserInterests);
  }

  
Retrieves all the Verticals.

Returns:
a list of all the Vertical
Throws:
java.rmi.RemoteException for communication-related exceptions
    // Using ReflectionUtil to execute getService().getVerticalCriterion() with retries
    Vertical[] verticals = (Vertical[]) ReflectionUtil.invokeCount(
        "getVerticalCriterion"getService(), );
    return Arrays.asList(verticals);
  }
New to GrepCode? Check out our FAQ X