Package com.google.api.adwords.v201309.rm

Examples of com.google.api.adwords.v201309.rm.AdwordsUserListServiceInterface.mutate()


      operation.setOperator(Operator.SET);

      AdGroupCriterionOperation[] operations = new AdGroupCriterionOperation[] {operation};

      // Update ad group criteria.
      AdGroupCriterionReturnValue result = adGroupCriterionService.mutate(operations);

      // Display ad group criteria.
      if (result != null && result.getValue() != null) {
        for (AdGroupCriterion adGroupCriterionResult : result.getValue()) {
          if (adGroupCriterionResult instanceof BiddableAdGroupCriterion) {
View Full Code Here


      operation.setOperator(Operator.SET);

      AdGroupOperation[] operations = new AdGroupOperation[]{operation};

      // Delete ad group.
      AdGroupReturnValue result = adGroupService.mutate(operations);

      // Display ad groups.
      if (result != null && result.getValue() != null) {
        for (AdGroup adGroupResult : result.getValue()) {
          System.out.println("Ad group with name \"" + adGroupResult.getName() + "\" and id \""
View Full Code Here

      operation.setOperator(Operator.SET);

      AdGroupOperation[] operations = new AdGroupOperation[]{operation};

      // Update ad group.
      AdGroupReturnValue result = adGroupService.mutate(operations);

      // Display ad groups.
      if (result != null && result.getValue() != null) {
        for (AdGroup adGroupResult : result.getValue()) {
          System.out.println("Ad group with name \"" + adGroupResult.getName() + "\", id \""
View Full Code Here

      AdGroupOperation adGroupOperation = new AdGroupOperation();
      adGroupOperation.setOperand(adGroup);
      adGroupOperation.setOperator(Operator.SET);

      // Update ad group.
      adGroup = adGroupService.mutate(new AdGroupOperation[]{adGroupOperation}).getValue()[0];

      System.out.println("Ad group with name \"" + adGroup.getName() + "\" and id \""
          + adGroup.getId() + "\" was updated for the experiment.");

      // Set ad group criterion for the experiment.
View Full Code Here

      operation.setOperator(Operator.ADD);

      AdGroupOperation[] operations = new AdGroupOperation[] {operation};

      // Add ad group.
      AdGroupReturnValue result = adGroupService.mutate(operations);

      // Display new ad groups.
      if (result != null && result.getValue() != null) {
        for (AdGroup adGroupResult : result.getValue()) {
          System.out.println("Ad group with name \"" + adGroupResult.getName() + "\" and id \""
View Full Code Here

      operation.setOperator(Operator.ADD);

      AdGroupOperation[] operations = new AdGroupOperation[] {operation};

      // Add ad group.
      AdGroupReturnValue result = adGroupService.mutate(operations);

      // Display new ad groups.
      if (result != null && result.getValue() != null) {
        for (AdGroup adGroupResult : result.getValue()) {
          System.out.println("Ad group with name \"" + adGroupResult.getName() + "\" and id \""
View Full Code Here

      adParamOperation2.setOperator(Operator.SET);

      AdParamOperation[] operations = new AdParamOperation[] {adParamOperation1, adParamOperation2};

      // Set ad parameters.
      AdParam[] adParams = adParamService.mutate(operations);

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

    BiddingStrategyOperation operation = new BiddingStrategyOperation();
    operation.setOperand(sharedBiddingStrategy);
    operation.setOperator(Operator.ADD);

    BiddingStrategyOperation[] operations = new BiddingStrategyOperation[] {operation};
    BiddingStrategyReturnValue result = biddingStrategyService.mutate(operations);

    SharedBiddingStrategy newBiddingStrategy = result.getValue(0);

    System.out.printf(
        "Shared bidding strategy with name '%s' and ID %d of type %s was created.\n",
View Full Code Here

    operation.setOperator(Operator.ADD);

    BudgetOperation[] operations = new BudgetOperation[] {operation};

    // Make the mutate request.
    BudgetReturnValue result = budgetService.mutate(operations);
    Budget newBudget = result.getValue(0);

    System.out.printf("Budget with name '%s', ID %d was created.\n", newBudget.getName(),
        newBudget.getBudgetId());
View Full Code Here

      // Add budget.
      BudgetOperation budgetOperation = new BudgetOperation();
      budgetOperation.setOperand(budget);
      budgetOperation.setOperator(Operator.ADD);
      BudgetReturnValue budgetReturnValue =
          budgetService.mutate(new BudgetOperation[] {budgetOperation});

      // Set the budget to the campaign.
      Budget createdBudget = new Budget();
      createdBudget.setBudgetId(budgetReturnValue.getValue(0).getBudgetId());
      campaign.setBudget(createdBudget);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.