Package com.google.api.ads.adwords.axis.v201402.cm

Examples of com.google.api.ads.adwords.axis.v201402.cm.Paging


   * @param additionalOffset the amount that will be added to the offset
   * @return the builder itself to proceed the chain.
   */
  public SelectorBuilder increaseOffsetBy(int additionalOffset) {
    if (this.paging == null) {
      this.paging = new Paging();
    }
    Integer startIndex = this.paging.getStartIndex();
    if (startIndex == null) {
      startIndex = 0;
    }
View Full Code Here


   *
   * @return the builder itself to proceed the chain.
   */
  public SelectorBuilder limit(int limit) {
    if (this.paging == null) {
      this.paging = new Paging();
    }
    this.paging.setNumberResults(limit);
    return this;
  }
View Full Code Here

   * @param offset the offset
   * @return the builder itself to proceed the chain.
   */
  public SelectorBuilder offset(int offset) {
    if (this.paging == null) {
      this.paging = new Paging();
    }
    this.paging.setStartIndex(offset);
    return this;
  }
View Full Code Here

   */
  private void retrieveAccounts(Selector selector, List<ManagedCustomer> accountList) throws ApiException
       {

    int startIndex = 0;
    Paging paging = new Paging();
    selector.setPaging(paging);
    ManagedCustomerPage managedCustomerPage;
    do {
      paging.setStartIndex(startIndex);
      paging.setNumberResults(NUMBER_OF_RESULTS);

      LOGGER.info("Retrieving next " + NUMBER_OF_RESULTS + " accounts.");

      try {
        managedCustomerPage = managedCustomerService.get(selector);
View Full Code Here

   */
  public void testRemoveService() throws com.google.api.adwords.v200909.cm.ApiException,
      RemoteException {
    long oldUnitCount = serviceAccountantManager.getTotalUnitCount();
    serviceAccountantManager.setAutoCreateAccountant(true);
    campaignV200909Service.get(new CampaignSelector(null, null, null, new Paging(0, 100)));
    assertTrue("Service was incorrectly accounted.",
        oldUnitCount < serviceAccountantManager.getTotalUnitCount());

    serviceAccountantManager.removeService(campaignV200909Service);
    assertNull(serviceAccountantManager.getServiceAccountant(campaignV200909Service));

    oldUnitCount = serviceAccountantManager.getTotalUnitCount();
    serviceAccountantManager.setAutoCreateAccountant(false);
    campaignV200909Service.get(new CampaignSelector(null, null, null, new Paging(0, 100)));
    assertEquals("Service was incorrectly accounted.",
        oldUnitCount, serviceAccountantManager.getTotalUnitCount());
  }
View Full Code Here

        relatedToUrlSearchParameter});

    selector.setIdeaType(IdeaType.PLACEMENT);
    selector.setRequestType(RequestType.IDEAS);

    Paging paging = new Paging(0, 1);
    selector.setPaging(paging);

    TargetingIdeaPage page = service.get(selector);
  }
View Full Code Here

        averageTargetedMonthlySearchesSearchParameter, relatedToKeywordSearchParameter});

    selector.setIdeaType(IdeaType.KEYWORD);
    selector.setRequestType(RequestType.IDEAS);

    Paging paging = new Paging(0, 1);
    selector.setPaging(paging);

    TargetingIdeaPage page = service.get(selector);
  }
View Full Code Here

        competitionSearchParameter,relatedToKeywordSearchParameter});

    selector.setIdeaType(IdeaType.KEYWORD);
    selector.setRequestType(RequestType.IDEAS);

    Paging paging = new Paging(0, 1);
    selector.setPaging(paging);

    TargetingIdeaPage page = service.get(selector);
  }
View Full Code Here

        countryTargetSearchParameter,relatedToKeywordSearchParameter});

    selector.setIdeaType(IdeaType.KEYWORD);
    selector.setRequestType(RequestType.IDEAS);

    Paging paging = new Paging(0, 1);
    selector.setPaging(paging);

    TargetingIdeaPage page = service.get(selector);
  }
View Full Code Here

        relatedToKeywordSearchParameter});

    selector.setIdeaType(IdeaType.KEYWORD);
    selector.setRequestType(RequestType.IDEAS);

    Paging paging = new Paging(0, 1);
    selector.setPaging(paging);

    TargetingIdeaPage page = service.get(selector);
  }
View Full Code Here

TOP

Related Classes of com.google.api.ads.adwords.axis.v201402.cm.Paging

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.