function adwordsUpload($masterAccount, $clientAccount, $keywords) { if (count($keywords) > 0) { $adwordsService = new AdwordsService(); $updatedKeywords = $adwordsService->updateKeywords($masterAccount, $clientAccount, $keywords); $this->saveUpdatedKeywords($updatedKeywords); } }
function adwordsCampaignUpload($masterAccount, $clientAccount, $campaigns) { $uploadCampaigns = $this->getEngineCampaigns($campaigns, "adwords"); if (count($uploadCampaigns) > 0) { $adwordsService = new AdwordsService(); $adwordsService->updateCampaigns($masterAccount, $clientAccount, $uploadCampaigns); } return $uploadCampaigns; }