Examples of mutate()


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

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

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

      operation.setOperator(Operator.ADD);

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

      // Add campaign ad extension.
      CampaignAdExtensionReturnValue result = campaignAdExtensionService.mutate(operations);

      // Display campaign ad extensions.
      if (result != null && result.getValue() != null) {
        for (CampaignAdExtension campaignAdExtensionResult : result.getValue()) {
          System.out.println("Campaign ad extension with campaign id \""
View Full Code Here

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

    campaignCriterion.setBidModifier(1.5);
    operation.setOperand(campaignCriterion);
    operation.setOperator(Operator.SET);

    CampaignCriterionReturnValue result =
        campaignCriterionService.mutate(new CampaignCriterionOperation[] {operation});

    // Display campaign criteria.
    if (result != null && result.getValue() != null) {
      for (CampaignCriterion campaignCriterionResult : result.getValue()) {
        System.out.printf("Campaign criterion with campaign id '%s', criterion id '%s', "
View Full Code Here

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

    CampaignFeedOperation operation = new CampaignFeedOperation();
    operation.setOperand(campaignFeed);
    operation.setOperator(Operator.ADD);
    CampaignFeedReturnValue result =
        campaignFeedService.mutate(new CampaignFeedOperation[] {operation});
    for (CampaignFeed savedCampaignFeed : result.getValue()) {
      System.out.printf("Campaign with id %d was associated with feed with id %d.\n",
          savedCampaignFeed.getCampaignId(), savedCampaignFeed.getFeedId());
    }
  }
View Full Code Here

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

      operation.setOperator(Operator.SET);

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

      // Update campaign.
      CampaignReturnValue result = campaignService.mutate(operations);

      // Display campaigns.
      if (result != null && result.getValue() != null) {
        for (Campaign campaignResult : result.getValue()) {
          System.out.println("Campaign with name \"" + campaignResult.getName() + "\", id \""
View Full Code Here

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

      operation.setOperator(Operator.SET);

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

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

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

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

      operation.setOperator(Operator.SET);

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

      // Promote experiment.
      ExperimentReturnValue result = experimentService.mutate(operations);

      // Display experiments.
      if (result.getValue() != null) {
        for(Experiment experimentResult : result.getValue()) {
          System.out.println("Experiment with name \"" + experimentResult.getName()
View Full Code Here

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

        newSiteLinkFeedItemAddOperation(siteLinksData, "About Us", "http://www.example.com/about");

    FeedItemOperation[] operations =
        new FeedItemOperation[] {home, stores, onSale, support, products, aboutUs};

    FeedItemReturnValue result = feedItemService.mutate(operations);
    for (FeedItem item : result.getValue()) {
      System.out.printf("FeedItem with feedItemId %d was added.\n", item.getFeedItemId());
      siteLinksData.siteLinkFeedItemIds.add(item.getFeedItemId());
    }
  }
View Full Code Here

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

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

    // Save the field mapping.
    FeedMappingReturnValue result =
        feedMappingService.mutate(new FeedMappingOperation[] {operation});
    for (FeedMapping savedFeedMapping : result.getValue()) {
      System.out.printf(
          "Feed mapping with id %d and placeholderType %d was saved for feed with id %d.\n",
          savedFeedMapping.getFeedMappingId(), savedFeedMapping.getPlaceholderType(),
          savedFeedMapping.getFeedId());
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.