Examples of mutate()


Examples of com.google.api.adwords.v201306.cm.FeedServiceInterface.mutate()

    FeedOperation operation = new FeedOperation();
    operation.setOperand(siteLinksFeed);
    operation.setOperator(Operator.ADD);

    // Add the feed.
    FeedReturnValue result = feedService.mutate(new FeedOperation[] {operation});

    Feed savedFeed = result.getValue()[0];
    siteLinksData.siteLinksFeedId = savedFeed.getId();
    FeedAttribute[] savedAttributes = savedFeed.getAttributes();
    siteLinksData.linkTextFeedAttributeId = savedAttributes[0].getId();
View Full Code Here

Examples of com.google.api.adwords.v201306.cm.MutateJobServiceInterface.mutate()

      BulkMutateJobPolicy policy = new BulkMutateJobPolicy();
      policy.setPrerequisiteJobIds(new long[] {});

      // Call mutate to create a new job.
      SimpleMutateJob response =
          mutateJobService.mutate(operations.toArray(new Operation[operations.size()]), policy);

      long jobId = response.getId();
      System.out.printf("Job with ID %d was successfully created.\n", jobId);

      // Create selector to retrieve job status and wait for it to complete.
View Full Code Here

Examples of com.google.api.adwords.v201306.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.adwords.v201306.rm.AdwordsUserListServiceInterface.mutate()

      operation.setOperator(Operator.ADD);

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

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

      // Display results.
      if (result != null && result.getValue() != null) {
        // Capture the ID(s) of the conversion.
        List<String> conversionIds = new ArrayList<String>();
View Full Code Here

Examples of com.google.api.adwords.v201309.cm.AdGroupAdServiceInterface.mutate()

    AdGroupAdOperation operation = new AdGroupAdOperation();
    operation.setOperator(Operator.ADD);
    operation.setOperand(clickToDownloadAppAdGroupAd);

    // Create the ads.
    AdGroupAdReturnValue result = adGroupAdService.mutate(new AdGroupAdOperation[] {operation});

    for (AdGroupAd adGroupAd : result.getValue()) {
      System.out.printf(
          "New click-to-download ad with id = \"%d\" and url = \"%s\" was created.",
          adGroupAd.getAd().getId(), adGroupAd.getAd().getUrl());
View Full Code Here

Examples of com.google.api.adwords.v201309.cm.AdGroupBidModifierServiceInterface.mutate()

    // modifier can be removed with the 'REMOVE' operator.
    operation.setOperator(Operator.ADD);

    // Update ad group bid modifier.
    AdGroupBidModifierReturnValue result =
        bidModifierService.mutate(new AdGroupBidModifierOperation[] {operation});
    for (AdGroupBidModifier bidModifierResult : result.getValue()) {
      System.out.printf(
          "Campaign ID '%d', AdGroup ID '%d' was updated with ad group level modifier: %.2f\n",
          bidModifierResult.getCampaignId(), bidModifierResult.getAdGroupId(),
          bidModifierResult.getBidModifier());
View Full Code Here

Examples of com.google.api.adwords.v201309.cm.AdGroupCriterionServiceInterface.mutate()

      adGroupCriterionOperation.setOperand(adGroupCriterion);
      adGroupCriterionOperation.setOperator(Operator.SET);

      // Update ad group criterion.
      adGroupCriterion =
          (BiddableAdGroupCriterion) adGroupCriterionService.mutate(
              new AdGroupCriterionOperation[] {adGroupCriterionOperation}).getValue()[0];

      System.out.println("Ad group criterion with ad group id \"" + adGroupCriterion.getAdGroupId()
          + "\" and criterion id \"" + adGroupCriterion.getCriterion().getId()
          + "\" was updated for the experiment.");
View Full Code Here

Examples of com.google.api.adwords.v201309.cm.AdGroupServiceInterface.mutate()

      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

Examples of com.google.api.adwords.v201309.cm.AdParamServiceInterface.mutate()

      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

Examples of com.google.api.adwords.v201309.cm.BiddingStrategyServiceInterface.mutate()

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