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

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


    // Create a selector.
    VideoSearchSelector selector = new VideoSearchSelector();
    selector.setSearchType(VideoSearchSelectorSearchType.VIDEO);
    selector.setQuery(query);
    selector.setPaging(new Paging(0, PAGE_SIZE));

    // Run the query.
    VideoSearchPage page = videoService.search(selector);

    // Display videos.
View Full Code Here


    int offset = 0;

    VideoCampaignSelector selector = new VideoCampaignSelector();
    selector.setStatsSelector(statsSelector);
    selector.setIds(new long[] {campaignId});
    selector.setPaging(new Paging(offset, PAGE_SIZE));

    VideoCampaignPage page;
    do {
      // Get all campaigns.
      page = videoCampaignService.get(selector);
View Full Code Here

    // Select non-deleted campaigns.
    selector.setCampaignStatuses(new VideoCampaignStatus[] {
        VideoCampaignStatus.ENABLED,
        VideoCampaignStatus.PAUSED
    });
    selector.setPaging(new Paging(offset, PAGE_SIZE));

    VideoCampaignPage page;
    do {
      // Get all non-deleted video campaigns for this account.
      page = videoCampaignService.get(selector);
View Full Code Here

    VideoCampaignCriterionSelector selector = new VideoCampaignCriterionSelector();
    selector.setCampaignIds(new long[] {campaignId});
    // Select only from active campaigns.
    selector.setCampaignStatuses(
        new VideoCampaignStatus[] {VideoCampaignStatus.ENABLED});
    selector.setPaging(new Paging(offset, PAGE_SIZE));

    VideoCampaignCriterionPage page;
    do {
      // Get all criteria for the campaign.
      page = videoCampaignCriterionService.get(selector);
View Full Code Here

    // Create selector.
    TargetingGroupCriterionSelector selector = new TargetingGroupCriterionSelector();
    selector.setTargetingGroupIds(new long[] {targetingGroupId});
    selector.setCriteriaDimension(CriteriaDimension.KEYWORD);
    selector.setPaging(new Paging(offset, PAGE_SIZE));

    TargetingGroupCriterionPage page;
    do {
      // Get all criteria for the campaign.
      page = videoTargetingGroupCriterionService.get(selector);
View Full Code Here

    int offset = 0;

    // Create selector.
    TargetingGroupSelector selector = new TargetingGroupSelector();
    selector.setCampaignIds(new long[] {campaignId});
    selector.setPaging(new Paging(offset, PAGE_SIZE));

    TargetingGroupPage page;
    do {
      // Get all targeting groups for this account.
      page = videoTargetingGroupService.get(selector);
View Full Code Here

    int offset = 0;

    // Create selector.
    AlertSelector selector = new AlertSelector();
    selector.setQuery(alertQuery);
    selector.setPaging(new Paging(offset, PAGE_SIZE));

    AlertPage page = null;
    do {
      // Get all alerts.
      page = alertService.get(selector);
View Full Code Here

        AttributeType.KEYWORD_TEXT,
        AttributeType.SEARCH_VOLUME,
        AttributeType.CATEGORY_PRODUCTS_AND_SERVICES});

    // Set selector paging (required for targeting idea service).
    Paging paging = new Paging();
    paging.setStartIndex(0);
    paging.setNumberResults(10);
    selector.setPaging(paging);

    // Create related to query search parameter.
    RelatedToQuerySearchParameter relatedToQuerySearchParameter =
        new RelatedToQuerySearchParameter();
View Full Code Here

    selector.setCampaignIds(new long[] {campaignId});
    selector.setCriterionTypes(new BaseCriterionType[] {BaseCriterionType.KEYWORD});
   
    // Display network keywords.
    selector.setCriteriaDimension(CriteriaDimension.KEYWORD);
    selector.setPaging(new Paging(offset, PAGE_SIZE));

    TargetingGroupCriterionPage page;
    do {
      // Get all keywords.
      page = videoTargetingGroupCriterionService.get(selector);
View Full Code Here

      newDateRange.setMin(this.dateRange.getMin());
      newDateRange.setMax(this.dateRange.getMax());
      selectorCopy.setDateRange(newDateRange);
    }
    if (this.paging != null) {
      Paging newPaging = new Paging();
      newPaging.setStartIndex(this.paging.getStartIndex());
      newPaging.setNumberResults(this.paging.getNumberResults());
      selectorCopy.setPaging(newPaging);
    }

    return selectorCopy;
  }
View Full Code Here

TOP

Related Classes of com.google.api.ads.adwords.axis.v201309.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.