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

Examples of com.google.api.ads.adwords.jaxws.v201309.cm.CampaignPage


      CampaignServiceInterface campaignService =
          user.getService(AdWordsService.V201306.CAMPAIGN_SERVICE);

      String query = "SELECT Id, Name, Status ORDER BY Name";
      // Get all campaigns.
      CampaignPage page = campaignService.query(query);

      // Display campaigns.
      if (page.getEntries() != null) {
        for (Campaign campaign : page.getEntries()) {
          System.out.println("Campaign with name \"" + campaign.getName() + "\" and id \""
              + campaign.getId() + "\" was found.");
        }
      } else {
        System.out.println("No campaigns were found.");
View Full Code Here


      Predicate campaignIdPredicate =
          new Predicate("CampaignId", PredicateOperator.IN, new String[] {campaignId.toString()});
      selector.setPredicates(new Predicate[] {campaignIdPredicate});

      // Get campaigns.
      CampaignPage page = campaignService.get(selector);

      // Display campaigns.
      if (page.getEntries() != null) {
        for (Campaign campaign : page.getEntries()) {
          if (campaign.getConversionOptimizerEligibility().getEligible()) {
            System.out.printf("Campaign with name '%s' and id '%d' is eligible to use "
                + "conversion optimizer.\n", campaign.getName(), campaign.getId());
          } else {
            System.out.printf("Campaign with name '%s' and id '%d' is not eligible to use "
View Full Code Here

      Predicate statusPredicate =
          new Predicate("Status", PredicateOperator.IN, new String[] {"PAUSED"});
      selector.setPredicates(new Predicate[] {statusPredicate});

      // Get all paused campaigns.
      CampaignPage page = campaignService.get(selector);

      // Display campaigns.
      if (page.getEntries() != null) {
        for (Campaign campaign : page.getEntries()) {
          System.out.println("Campaign with name \"" + campaign.getName() + "\", id \""
              + campaign.getId() + "\", and status \"" + campaign.getStatus() + "\" was found.");
        }
      } else {
        System.out.println("No campaigns were found.");
View Full Code Here

      // Get a list of all campaign IDs.
      List<Long> campaignIds = new ArrayList<Long>();
      Selector selector = new Selector();
      selector.setFields(new String[] {"Id"});
      CampaignPage campaigns = campaignService.get(selector);
      if (campaigns.getEntries() != null) {
        for (Campaign campaign : campaigns.getEntries()) {
          campaignIds.add(campaign.getId());
        }
      }

      // Create date time range for the past 24 hours.
View Full Code Here

      Selector selector = new Selector();
      selector.setFields(new String[] {"Id", "Name"});
      selector.setOrdering(new OrderBy[] {new OrderBy("Name", SortOrder.ASCENDING)});
     
      // Get all campaigns.
      CampaignPage page = campaignService.get(selector);

      // Display campaigns.
      if (page.getEntries() != null) {
        for (Campaign campaign : page.getEntries()) {
          System.out.println("Campaign with name \"" + campaign.getName() + "\" and id \""
              + campaign.getId() + "\" was found.");
        }
      } else {
        System.out.println("No campaigns were found.");
View Full Code Here

      CampaignServiceInterface campaignService =
          user.getService(AdWordsService.V201309.CAMPAIGN_SERVICE);

      String query = "SELECT Id, Name, Status ORDER BY Name";
      // Get all campaigns.
      CampaignPage page = campaignService.query(query);

      // Display campaigns.
      if (page.getEntries() != null) {
        for (Campaign campaign : page.getEntries()) {
          System.out.println("Campaign with name \"" + campaign.getName() + "\" and id \""
              + campaign.getId() + "\" was found.");
        }
      } else {
        System.out.println("No campaigns were found.");
View Full Code Here

      Predicate campaignIdPredicate =
          new Predicate("CampaignId", PredicateOperator.IN, new String[] {campaignId.toString()});
      selector.setPredicates(new Predicate[] {campaignIdPredicate});

      // Get campaigns.
      CampaignPage page = campaignService.get(selector);

      // Display campaigns.
      if (page.getEntries() != null) {
        for (Campaign campaign : page.getEntries()) {
          if (campaign.getConversionOptimizerEligibility().getEligible()) {
            System.out.printf("Campaign with name '%s' and id '%d' is eligible to use "
                + "conversion optimizer.\n", campaign.getName(), campaign.getId());
          } else {
            System.out.printf("Campaign with name '%s' and id '%d' is not eligible to use "
View Full Code Here

      Selector selector = new Selector();
      selector.setFields(new String[] {"Id", "Name"});
      selector.setOrdering(new OrderBy[] {new OrderBy("Name", SortOrder.ASCENDING)});
     
      // Get all campaigns.
      CampaignPage page = campaignService.get(selector);

      // Display campaigns.
      if (page.getEntries() != null) {
        for (Campaign campaign : page.getEntries()) {
          System.out.println("Campaign with name \"" + campaign.getName() + "\" and id \""
              + campaign.getId() + "\" was found.");
        }
      } else {
        System.out.println("No campaigns were found.");
View Full Code Here

      Predicate statusPredicate =
          new Predicate("Status", PredicateOperator.IN, new String[] {"PAUSED"});
      selector.setPredicates(new Predicate[] {statusPredicate});

      // Get all paused campaigns.
      CampaignPage page = campaignService.get(selector);

      // Display campaigns.
      if (page.getEntries() != null) {
        for (Campaign campaign : page.getEntries()) {
          System.out.println("Campaign with name \"" + campaign.getName() + "\", id \""
              + campaign.getId() + "\", and status \"" + campaign.getStatus() + "\" was found.");
        }
      } else {
        System.out.println("No campaigns were found.");
View Full Code Here

      // Get a list of all campaign IDs.
      List<Long> campaignIds = new ArrayList<Long>();
      Selector selector = new Selector();
      selector.setFields(new String[] {"Id"});
      CampaignPage campaigns = campaignService.get(selector);
      if (campaigns.getEntries() != null) {
        for (Campaign campaign : campaigns.getEntries()) {
          campaignIds.add(campaign.getId());
        }
      }

      // Create date time range for the past 24 hours.
View Full Code Here

TOP

Related Classes of com.google.api.ads.adwords.jaxws.v201309.cm.CampaignPage

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.