Examples of mutate()


Examples of com.google.api.ads.adwords.axis.v201402.express.ExpressBusinessServiceInterface.mutate()

    business2.setName("Express Interplanetary Cruise #" + System.currentTimeMillis());
    business2.setAddress(
        new Address("1600 Amphitheatre Pkwy", null, "Mountain View", "CA", null, null, "US"));
    business2.setWebsite("http://www.example.com/cruise2");

    ExpressBusiness[] addedBusinesses = businessService.mutate(new ExpressBusinessOperation[] {
        new ExpressBusinessOperation(Operator.ADD, null, business1),
        new ExpressBusinessOperation(Operator.ADD, null, business2)});

    System.out.printf("Added %d express businesses%n", addedBusinesses.length);
    for (ExpressBusiness addedBusiness : addedBusinesses) {
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201402.express.PromotionServiceInterface.mutate()

    promotion.setId(promotionId);
    Money newBudget = new Money();
    newBudget.setMicroAmount(2000000L);
    promotion.setBudget(newBudget);

    Promotion[] mutatedPromotions = promotionService.mutate(
        new PromotionOperation[] {new PromotionOperation(Operator.SET, null, promotion)});

    System.out.printf("Promotion ID %d for business ID %d now has budget micro amount %,d%n",
        promotionId, businessId, mutatedPromotions[0].getBudget().getMicroAmount());
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201402.mcm.ManagedCustomerServiceInterface.mutate()

    operation.setOperator(Operator.ADD);

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

    // Add account.
    ManagedCustomerReturnValue result = managedCustomerService.mutate(operations);

    // Display accounts.
    for (ManagedCustomer customerResult : result.getValue()) {
      System.out.println("Account with customer ID \"" + customerResult.getCustomerId()
          + "\" was created.");
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201402.rm.AdwordsUserListServiceInterface.mutate()

    operation.setOperator(Operator.ADD);

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

    // Add user list.
    UserListReturnValue result = userListService.mutate(operations);

    // Display results.
    // Capture the ID(s) of the conversion.
    List<String> conversionIds = new ArrayList<String>();
    for (UserList userListResult : result.getValue()) {
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201402.video.VideoAdServiceInterface.mutate()

    operation.setOperand(videoAd);
    operation.setOperator(Operator.ADD);

    VideoAdOperation[] operations = new VideoAdOperation[] {operation};
   
    VideoAdReturnValue result = videoAdService.mutate(operations);

    for (VideoAd videoAdResult : result.getValue()) {
      System.out.printf("Video ad with campaign id %d, "
          + "video ad id %d, and name '%s' was added.%n",
          videoAdResult.getCampaignId(),
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201402.video.VideoCampaignCriterionServiceInterface.mutate()

    VideoCampaignCriterionOperation operation =
        new VideoCampaignCriterionOperation();
    operation.setOperand(criterion);
    operation.setOperator(Operator.ADD);
   
    VideoCampaignCriterionReturnValue result = videoCampaignCriterionService.mutate(
        new VideoCampaignCriterionOperation[] {operation});
   
    for (VideoCampaignCriterion videoCampaignCriterionResult : result.getValue()) {
      System.out.printf("Video campaign criterion with campaign id %d, "
          + "criterion id %d, and type '%s' was added.%n",
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201402.video.VideoCampaignServiceInterface.mutate()

    operation.setOperator(Operator.ADD);
   
    VideoCampaignOperation[] operations = new VideoCampaignOperation[] {operation};

    // Add video campaigns.
    VideoCampaignReturnValue result = videoCampaignService.mutate(operations);

    // Display video campaigns.
    for (VideoCampaign videoCampaignResult : result.getValue()) {
      System.out.printf("Campaign with name '%s' and id %d was added.%n",
          videoCampaignResult.getName(),
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201402.video.VideoTargetingGroupCriterionServiceInterface.mutate()

    TargetingGroupCriterionOperation addUserInterestCriteriaOp =
        new TargetingGroupCriterionOperation();
    addUserInterestCriteriaOp.setOperand(interestCriterion);
    addUserInterestCriteriaOp.setOperator(Operator.ADD);

    TargetingGroupCriterionReturnValue result = videoTargetingGroupCriterionService.mutate(
        new TargetingGroupCriterionOperation[] {
          addAgeCriterionOp, addGenderCriterionOp,
          addNegativeAgeCriterionOp, addTopicCriterionOp,
          addUserInterestCriteriaOp});
   
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201402.video.VideoTargetingGroupServiceInterface.mutate()

    TargetingGroupOperation operation = new TargetingGroupOperation();
    operation.setOperator(Operator.SET);
    operation.setOperand(targetingGroup);

    TargetingGroupReturnValue result =
        videoTargetingGroupService.mutate(new TargetingGroupOperation[] {operation});
   
    for (TargetingGroup targetingGroupResult : result.getValue()) {
      System.out.printf("Targeting group with campaign id %d, "
          + "and targeting group id %d was updated.%n",
          targetingGroupResult.getCampaignId(),
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201406.cm.AdGroupAdServiceInterface.mutate()

      adGroupAdOperation.setOperator(Operator.ADD);

      adGroupAdOperations.add(adGroupAdOperation);
    }

    AdGroupAdReturnValue adGroupAdReturnValue = adGroupAdService.mutate(
        adGroupAdOperations.toArray(new AdGroupAdOperation[adGroupAdOperations.size()]));

    for (AdGroupAd addedAd : adGroupAdReturnValue.getValue()) {
      System.out.printf("Created an ad with ID %d, type '%s' and status '%s'.%n",
          addedAd.getAd().getId(), addedAd.getAd().getAdType(), addedAd.getStatus());
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.