function yahooUpload($masterAccount, $clientAccount, $keywords) { if (count($keywords) > 0) { $yahooService = new YahooService(); $updatedKeywords = $yahooService->upload($masterAccount, $clientAccount, array(), array(), $keywords); $this->saveUpdatedKeywords($updatedKeywords); } }
function yahooUpload($masterAccount, $clientAccount, $keywords, $adgroups, $campaigns) { $yahooService = new YahooService(); $uploadKeywords = $this->getEngineEntities($keywords, "yahoo"); $uploadAdgroups = $this->getEngineEntities($adgroups, "yahoo"); $uploadCampaigns = $this->getEngineEntities($campaigns, "yahoo"); $yahooService->upload($masterAccount, $clientAccount, $uploadCampaigns, $uploadAdgroups, $uploadKeywords); $this->saveUpdatedEntities($uploadKeywords, $uploadAdgroups, $uploadCampaigns); }