campaign.setNetworkSetting(networkSetting);
// Set options that are not required.
GeoTargetTypeSetting geoTarget = new GeoTargetTypeSetting();
geoTarget.setPositiveGeoTargetType(GeoTargetTypeSettingPositiveGeoTargetType.DONT_CARE);
KeywordMatchSetting keywordMatch = new KeywordMatchSetting();
keywordMatch.setOptIn(Boolean.FALSE);
campaign.setSettings(new Setting[] {geoTarget, keywordMatch});
// You can create multiple campaigns in a single request.
Campaign campaign2 = new Campaign();
campaign2.setName("Interplanetary Cruise banner #" + System.currentTimeMillis());
campaign2.setStatus(CampaignStatus.PAUSED);
BiddingStrategyConfiguration biddingStrategyConfiguration2 = new BiddingStrategyConfiguration();
biddingStrategyConfiguration2.setBiddingStrategyType(BiddingStrategyType.MANUAL_CPC);
campaign2.setBiddingStrategyConfiguration(biddingStrategyConfiguration2);
Budget budget2 = new Budget();
budget2.setBudgetId(budgetId);
campaign2.setBudget(budget2);
NetworkSetting networkSetting2 = new NetworkSetting();
networkSetting2.setTargetGoogleSearch(false);
networkSetting2.setTargetSearchNetwork(false);
networkSetting2.setTargetContentNetwork(true);
networkSetting2.setTargetPartnerSearchNetwork(false);
campaign2.setNetworkSetting(networkSetting2);
KeywordMatchSetting keywordMatch2 = new KeywordMatchSetting();
keywordMatch2.setOptIn(Boolean.FALSE);
campaign2.setSettings(new Setting[] {keywordMatch2});
// Create operations.
CampaignOperation operation = new CampaignOperation();
operation.setOperand(campaign);