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();