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

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


        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


    // Select non-deleted campaigns.
    selector.setCampaignStatuses(new VideoCampaignStatus[] {
        VideoCampaignStatus.ACTIVE,
        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

    // 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

    VideoCampaignCriterionSelector selector = new VideoCampaignCriterionSelector();
    selector.setCampaignIds(new long[] {campaignId});
    // Select only from active campaigns.
    selector.setCampaignStatuses(
        new VideoCampaignStatus[] {VideoCampaignStatus.ACTIVE});
    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

    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

      throws Exception {
    // Get the LocationCriterionService.
    LocationCriterionServiceInterface locationCriterionService =
        adWordsServices.get(session, LocationCriterionServiceInterface.class);

    Selector selector = new SelectorBuilder()
        .fields(
            "Id",
            "LocationName",
            "CanonicalName",
            "DisplayType",
View Full Code Here

    int offset = 0;

    // Create selector.
    SelectorBuilder builder = new SelectorBuilder();
    Selector selector = builder
        .fields(
            "CampaignId",
            "Id",
            "CriteriaType",
            "PlatformName",
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.