Model/Sync/Campaign.php
public function sendCampaigns()
    {
        /** @var \Magento\Store\Api\Data\WebsiteInterface $website */
        foreach ($this->storeManager->getWebsites(true) as $website) {
            $storeIds = $website->getStoreIds();

            //check send status for processing
            $this->_checkSendStatus($website, $storeIds);
            //start send process

            $emailsToSend = $this->_getEmailCampaigns($storeIds);
            $campaignsToSend = $this->getCampaignsToSend($emailsToSend, $website);
            $this->sendCampaignsViaEngagementCloud($campaignsToSend);
        }
    }
public function sendCampaigns()
    {
        /** @var \Magento\Store\Api\Data\WebsiteInterface $website */
        foreach ($this->storeManager->getWebsites(true) as $website) {
            $storeIds = $website->getStoreIds();

            //check send status for processing
            $this->_checkSendStatus($website, $storeIds);
            //start send process

            $emailsToSend = $this->_getEmailCampaigns($storeIds);
            $campaignsToSend = $this->getCampaignsToSend($emailsToSend, $website);
            $this->sendCampaignsViaEngagementCloud($campaignsToSend);
        }
    }
public function sendCampaigns ( ) { /** @var \Magento\Store\Api\Data\WebsiteInterface $website */ foreach ( $ this -> storeManager -> getWebsites ( true ) as $ website ) { $ storeIds = $ website -> getStoreIds ( ) ; //check send status for processing $ this -> _checkSendStatus ( $ website , $ storeIds ) ; //start send process $ emailsToSend = $ this -> _getEmailCampaigns ( $ storeIds ) ; $ campaignsToSend = $ this -> getCampaignsToSend ( $ emailsToSend , $ website ) ; $ this -> sendCampaignsViaEngagementCloud ( $ campaignsToSend ) ; } }
Sending the campaigns

@throws \Magento\Framework\Exception\LocalizedException

@return null
Sending the campaigns