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

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


      // Get AdWordsUser from "~/adwords.properties".
      AdWordsUser user = new AdWordsUser();

      // Get the AdParamService.
      AdParamServiceInterface adParamService =
          user.getService(AdWordsService.V201309.AD_PARAM_SERVICE);

      String adGroupId = "INSERT_AD_GROUP_ID_HERE";

      // Create selector.
      Selector selector = new Selector();
      Predicate predicate = new Predicate();
      predicate.setField("AdGroupId");
      predicate.setOperator(PredicateOperator.EQUALS);
      predicate.setValues(new String[] {adGroupId});
      selector.setPredicates(new Predicate[] {predicate});
      selector.setFields(new String[]{"AdGroupId", "CriterionId", "InsertionText", "ParamIndex"});

      // Get all ad parameters.
      AdParamPage page = adParamService.get(selector);

      // Display ad parameters.
      if (page.getEntries() != null && page.getEntries().length > 0) {
        for (AdParam adParam : page.getEntries()) {
          System.out.println("Ad parameter with ad group id \"" + adParam.getAdGroupId()
View Full Code Here

TOP

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

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.