Examples of mutate()


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

    operation.setOperand(adWordsConversionTracker);

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

    // Add conversion.
    ConversionTrackerReturnValue result = service.mutate(operations);

    // Display conversion.
    for (ConversionTracker conversionTracker : result.getValue()) {
      if (conversionTracker instanceof AdWordsConversionTracker) {
        AdWordsConversionTracker newAdWordsConversionTracker =
View Full Code Here

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

    CustomerFeedOperation customerFeedOperation = new CustomerFeedOperation();
    customerFeedOperation.setOperand(customerFeed);
    customerFeedOperation.setOperator(Operator.ADD);
 
    CustomerFeed addedCustomerFeed =
        customerFeedService.mutate(new CustomerFeedOperation[] {customerFeedOperation}).getValue(0);
   
    System.out.printf("Customer feed for feed ID %d was added.%n", addedCustomerFeed.getFeedId());
  }

  /**
 
View Full Code Here

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

    experimentOperation.setOperand(experiment);
    experimentOperation.setOperator(Operator.ADD);

    // Add experiment.
    ExperimentReturnValue result =
        experimentService.mutate(new ExperimentOperation[] {experimentOperation});

    for (Experiment experimentResult : result.getValue()) {
      System.out.println("Experiment with name \"" + experimentResult.getName() + "\" and id \""
          + experimentResult.getId() + "\" was added.");
    }
View Full Code Here

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

    feedItemOperations.add(createFeedItemAddOperation("Mars", "$1234.56", "20140601 000000",
        adGroupIds.get(0), dataHolder));
    feedItemOperations.add(createFeedItemAddOperation("Venus", "$1450.00", "20140615 120000",
        adGroupIds.get(1), dataHolder));

    FeedItemReturnValue feedItemReturnValue = feedItemService.mutate(
        feedItemOperations.toArray(new FeedItemOperation[feedItemOperations.size()]));

    for (FeedItem addedFeedItem : feedItemReturnValue.getValue()) {
      System.out.printf("Added feed item with ID %d.%n", addedFeedItem.getFeedItemId());
      dataHolder.customizerFeedItemIds.add(addedFeedItem.getFeedItemId());
View Full Code Here

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

    FeedMappingOperation feedMappingOperation = new FeedMappingOperation();
    feedMappingOperation.setOperand(feedMapping);
    feedMappingOperation.setOperator(Operator.ADD);
   
    FeedMapping addedFeedMapping =
        feedMappingService.mutate(new FeedMappingOperation[] {feedMappingOperation}).getValue(0);
   
    System.out.printf(
        "Feed mapping with ID %d and placeholder type %d was added " + "for feed with ID %d.%n",
        addedFeedMapping.getFeedMappingId(), addedFeedMapping.getPlaceholderType(),
        addedFeedMapping.getFeedId());
View Full Code Here

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

    // Add the feed. Since it is a system generated feed, AdWords will automatically:
    // 1. Set up the FeedAttributes on the feed.
    // 2. Set up a FeedMapping that associates the FeedAttributes of the feed
    // with the placeholder fields of the LOCATION placeholder type.
    FeedReturnValue addFeedResult = feedService.mutate(new FeedOperation[] {feedOperation});
    Feed addedFeed = addFeedResult.getValue(0);
    System.out.printf("Added places feed with ID %d%n", addedFeed.getId());

    // Add a CustomerFeed that associates the feed with this customer for
    // the LOCATION placeholder type.
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201406.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.ads.adwords.axis.v201406.cm.OfflineConversionFeedServiceInterface.mutate()

    OfflineConversionFeedOperation offlineConversionOperation =
        new OfflineConversionFeedOperation();
    offlineConversionOperation.setOperator(Operator.ADD);
    offlineConversionOperation.setOperand(feed);

    OfflineConversionFeedReturnValue offlineConversionReturnValue = offlineConversionFeedService
        .mutate(new OfflineConversionFeedOperation[] {offlineConversionOperation});

    OfflineConversionFeed newFeed = offlineConversionReturnValue.getValue(0);

    System.out.printf(
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201406.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.v201406.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
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.