Package com.google.api.ads.adwords.axis.v201402.video

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


    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

    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

    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

    business.setWebsite("http://www.example.com/?myParam=" + System.currentTimeMillis());
   
    ExpressBusinessOperation operation = new ExpressBusinessOperation(Operator.SET, "", business);

    ExpressBusiness[] mutatedBusinesses =
        businessService.mutate(new ExpressBusinessOperation[] {operation});

    ExpressBusiness mutatedBusiness = mutatedBusinesses[0];

    System.out.printf("Express business with ID %d and name '%s' was updated%n",
        mutatedBusiness.getId(), mutatedBusiness.getName());
View Full Code Here

    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

        "Unlimited powdered orange drink");
    creatives.add(creative2);

    marsTourPromotion.setCreatives(creatives.toArray(new Creative[creatives.size()]));

    Promotion[] addedPromotions = promotionService.mutate(
        new PromotionOperation[] {new PromotionOperation(Operator.ADD, null, marsTourPromotion)});

    System.out.printf("Added promotion ID %d with name '%s' to business ID %d%n",
        addedPromotions[0].getId(), addedPromotions[0].getName(), businessId);
View Full Code Here

    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

    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

    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

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.