Examples of AdGroupReturnValue


Examples of com.google.api.ads.adwords.axis.v201402.cm.AdGroupReturnValue

    AdGroupOperation adGroupOperation = new AdGroupOperation();
    adGroupOperation.setOperand(adGroup);
    adGroupOperation.setOperator(Operator.ADD);

    // Make the mutate request.
    AdGroupReturnValue adGroupAddResult =
        adGroupService.mutate(new AdGroupOperation[] {adGroupOperation});

    // Display result.
    adGroup = adGroupAddResult.getValue(0);
    System.out.printf("Ad group with name '%s' and ID %d was added.%n", adGroup.getName(),
        adGroup.getId());

    // Create product ad.
    AdGroupAdServiceInterface adGroupAdService =
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201402.cm.AdGroupReturnValue

    operation.setOperator(Operator.SET);

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

    // Update ad group.
    AdGroupReturnValue result = adGroupService.mutate(operations);

    // Display ad groups.
    for (AdGroup adGroupResult : result.getValue()) {
      System.out.println("Ad group with name \"" + adGroupResult.getName() + "\", id \""
          + adGroupResult.getId() + "\", and status \"" + adGroupResult.getStatus()
          + "\" was updated.");
    }
  }
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201406.cm.AdGroupReturnValue

    operation2.setOperator(Operator.ADD);

    AdGroupOperation[] operations = new AdGroupOperation[] {operation, operation2};

    // Add ad groups.
    AdGroupReturnValue result = adGroupService.mutate(operations);

    // Display new ad groups.
    for (AdGroup adGroupResult : result.getValue()) {
      System.out.println("Ad group with name \"" + adGroupResult.getName() + "\" and id \""
          + adGroupResult.getId() + "\" was added.");
    }
  }
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201406.cm.AdGroupReturnValue

    operation.setOperator(Operator.SET);

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

    // Remove ad group.
    AdGroupReturnValue result = adGroupService.mutate(operations);

    // Display ad groups.
    for (AdGroup adGroupResult : result.getValue()) {
      System.out.println("Ad group with name \"" + adGroupResult.getName() + "\" and id \""
          + adGroupResult.getId() + "\" was removed.");
    }
  }
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201406.cm.AdGroupReturnValue

    operation.setOperator(Operator.SET);

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

    // Update ad group.
    AdGroupReturnValue result = adGroupService.mutate(operations);

    // Display ad groups.
    for (AdGroup adGroupResult : result.getValue()) {
      System.out.println("Ad group with name \"" + adGroupResult.getName() + "\", id \""
          + adGroupResult.getId() + "\", and status \"" + adGroupResult.getStatus()
          + "\" was updated.");
    }
  }
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201406.cm.AdGroupReturnValue

    AdGroupOperation adGroupOperation = new AdGroupOperation();
    adGroupOperation.setOperand(adGroup);
    adGroupOperation.setOperator(Operator.ADD);

    // Make the mutate request.
    AdGroupReturnValue adGroupAddResult =
        adGroupService.mutate(new AdGroupOperation[] {adGroupOperation});

    // Display result.
    adGroup = adGroupAddResult.getValue(0);
    System.out.printf("Ad group with name '%s' and ID %d was added.%n", adGroup.getName(),
        adGroup.getId());

    // Create product ad.
    AdGroupAdServiceInterface adGroupAdService =
View Full Code Here

Examples of com.google.api.adwords.v200909.cm.AdGroupReturnValue

          adGroup.setName("AdGroup " + (j + 1));
          adGroup.setBids(new ManualCPCAdGroupBids(null, new Bid(new Money("USD",
              generator.nextInt(10) * 50000L + 50000L)), null, null));
          adGroup.setCampaignId(campaign.getId());

          AdGroupReturnValue adGroupReturnValue =
              adGroupService.mutate(new AdGroupOperation[] {new AdGroupOperation(Operator.ADD,
                  null, adGroup)});
          adGroup = adGroupReturnValue.getValue()[0];
        }

        int numAds = generator.nextInt(10) + 1;
        for (int k = 0; k < numAds; k++) {
          TextAd ad = new TextAd();
View Full Code Here

Examples of com.google.api.adwords.v201008.cm.AdGroupReturnValue

    operation.setOperator(Operator.ADD);

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

    // Add ad group.
    AdGroupReturnValue result = adGroupService.mutate(operations);
    AdGroup testAdGroup = result.getValue()[0];

    // Set the generated fields.
    adGroup.setId(testAdGroup.getId());
    adGroup.setCampaignName(testAdGroup.getCampaignName());
    adGroup.getBids().setAdGroupBidsType(
View Full Code Here

Examples of com.google.api.adwords.v201008.cm.AdGroupReturnValue

    operation.setOperator(Operator.SET);

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

    // Update ad group.
    AdGroupReturnValue result = adGroupService.mutate(operations);
    AdGroup testAdGroup = result.getValue()[0];

    // Exclude generated fields.
    adGroup.setCampaignName(testAdGroup.getCampaignName());
    adGroup.setCampaignId(testAdGroup.getCampaignId());
    adGroup.setStatus(testAdGroup.getStatus());
View Full Code Here

Examples of com.google.api.adwords.v201008.cm.AdGroupReturnValue

    operation.setOperator(Operator.SET);

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

    // Delete ad group.
    AdGroupReturnValue result = adGroupService.mutate(operations);
    AdGroup testAdGroup = result.getValue()[0];

    // Exclude generated fields.
    adGroup.setCampaignName(testAdGroup.getCampaignName());
    adGroup.setCampaignId(testAdGroup.getCampaignId());
    adGroup.setName(testAdGroup.getName());
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.