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 AbstractGetMutateDelegate for com.google.api.ads.adwords.axis.v201309.cm.AdGroupCriterion.

Implementation is not thread-safe, because AdWordsSession and Apache Axis service objects are not thread-safe.

Author(s):
Julian Toledo
 
Default Constructor.

Parameters:
adWordsSession the adWordsSession to use with the delegate/service
 
   public AdGroupCriterionDelegate(AdWordsSession adWordsSessionboolean includeBetaFields) {
     super(adWordsSession, SelectorFields.AdGroupCriterion.all(includeBetaFields),
         AdGroupCriterion.classAdGroupCriterionOperation.class,
         AdGroupCriterionServiceInterface.class);
   }

  
Constructor with custom service.

Parameters:
adWordsSession the adWordsSession to use with the delegate/service
service the custom service class for the SOAP service
 
   public AdGroupCriterionDelegate(AdWordsSession adWordsSession,
       AdGroupCriterionServiceInterface serviceboolean includeBetaFields) {
     super(adWordsSession, SelectorFields.AdGroupCriterion.all(includeBetaFields),
         AdGroupCriterion.classAdGroupCriterionOperation.classservice);
   }  

  
Constructor with custom fields.

Parameters:
adWordsSession the adWordsSession to use with the delegate/service
selectorFields for the Generic Selectors using the SelectorField class
 
   public AdGroupCriterionDelegate(AdWordsSession adWordsSession,
       List<SelectorFields.AdGroupCriterionselectorFields) {
     super(adWordsSessionselectorFieldsAdGroupCriterion.classAdGroupCriterionOperation.class,
         AdGroupCriterionServiceInterface.class);
   }

  
Retrieves AdGroupCriterions by adGroupId and criterionId (criterionId is not unique by itself).

Parameters:
adGroupId
criterionId
Returns:
a list of AdGroupCriterions matching the adGroupId and adGroupId
Throws:
java.rmi.RemoteException for communication-related exceptions
 
   public List<AdGroupCriteriongetByAdGroupIdCriterionId(Long adGroupIdLong criterionId)
       throws RemoteException {
     SelectorBuilder builder = createSelectorBuilder()
       .equals(...getField(), String.valueOf(adGroupId))
       .equals(...getField(), String.valueOf(criterionId));
     return get(builder.build());
   }

  
Retrieves AdGroupCriterions by adGroupIds.

Parameters:
adGroupIds
Returns:
a list of AdGroupCriterions matching adGroupIds
Throws:
java.rmi.RemoteException for communication-related exceptions
 
  public List<AdGroupCriteriongetByAdGroupId(List<LongadGroupIdsthrows RemoteException {
  }

  
Retrieves AdGroupCriterions by adGroupId.

Parameters:
adGroupId
Returns:
a list of AdGroupCriterions matching the adGroupId
Throws:
java.rmi.RemoteException for communication-related exceptions
  public List<AdGroupCriteriongetByAdGroupId(Long adGroupIdthrows RemoteException {
  }

  
Retrieves AdGroupCriterions by adGroupId in the range (startIndex, numberResults).

Parameters:
adGroupId
startIndex index of the first result
numberResults number of results
Returns:
a list of AdGroupCriterions matching the adGroupId in the range (startIndex, numberResults)
Throws:
java.rmi.RemoteException for communication-related exceptions
  public List<AdGroupCriteriongetByAdGroupId(Long adGroupIdint startIndexint numberResults)
      throws RemoteException {
    return getByField(..adGroupIdstartIndex,
        numberResults);
  }

  
Retrieves AdGroupCriterions by CriterionUse.

Parameters:
criterionUse CriterionUse
Returns:
a list of AdGroupCriterions matching the criterionUse
Throws:
java.rmi.RemoteException for communication-related exceptions
      throws RemoteException {
  }

  
Retrieves AdGroupCriterions by CriterionType.

Parameters:
criterionType CriterionType
Returns:
a list of AdGroupCriterions matching the criterionType
Throws:
java.rmi.RemoteException for communication-related exceptions
      throws RemoteException {
  }

  
Retrieves AdGroupCriterions by CriterionUse and CriterionType.

Parameters:
criterionUse CriterionUse
criterionType CriterionType
Returns:
a list of AdGroupCriterions matching the criterionUse and criterionType
Throws:
java.rmi.RemoteException for communication-related exceptions
      CriterionType criterionTypethrows RemoteException {
    return get(builder.build());
  }

  
Retrieves AdGroupCriterions by adGroupId and CriterionUse.

Parameters:
adGroupId
criterionUse CriterionUse
Returns:
a list of AdGroupCriterions matching the adGroupId and criterionUse
Throws:
java.rmi.RemoteException for communication-related exceptions
      CriterionUse criterionUsethrows RemoteException {
    return get(builder.build());
  }

  
Retrieves AdGroupCriterions by adGroupId and CriterionType.

Parameters:
adGroupId
criterionType CriterionType
Returns:
a list of AdGroupCriterions matching the adGroupId and criterionType
Throws:
java.rmi.RemoteException for communication-related exceptions
      CriterionType criterionTypethrows RemoteException {
    return get(builder.build());
  }

  
Retrieves AdGroupCriterions by CriterionUse and CriterionType.

Parameters:
adGroupId
criterionUse CriterionUse
criterionType CriterionType
Returns:
a list of AdGroupCriterions matching the adGroupId, criterionUse and criterionType
Throws:
java.rmi.RemoteException for communication-related exceptions
      CriterionUse criterionUseCriterionType criterionTypethrows RemoteException {
    return get(builder.build());
  }
New to GrepCode? Check out our FAQ X