// Get AdWordsUser from "~/adwords.properties".
AdWordsUser user = new AdWordsUser();
// Get the CampaignService.
CampaignServiceInterface campaignService =
user.getService(AdWordsService.V201309.CAMPAIGN_SERVICE);
long campaignId = Long.parseLong("INSERT_CAMPAIGN_ID_HERE");
// Create campaign with updated budget.
Campaign campaign = new Campaign();
campaign.setId(campaignId);
campaign.setStatus(CampaignStatus.PAUSED);
// Create operations.
CampaignOperation operation = new CampaignOperation();
operation.setOperand(campaign);
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 \""