{ case 'stop': $engine->stopBanners($campaign['XML_ID'], array_keys($bannersList)); break; case 'resume': $engine->resumeBanners($campaign['XML_ID'], array_keys($bannersList)); break; case 'moderate': $engine->moderateBanners($campaign['XML_ID'], array_keys($bannersList)); $engine->updateCampaignManual($campaign['ID']); break; case 'archive': $engine->archiveBanners($campaign['XML_ID'], array_keys($bannersList)); break; case 'unarchive': $engine->unArchiveBanners($campaign['XML_ID'], array_keys($bannersList)); break; } $bannersListRemote = $engine->getBanners(array_keys($bannersList)); $bannersListSorted = array(); foreach($bannersListRemote as $key => $bannerInfo) { $bannersListSorted[$bannerInfo['BannerID']] = $bannerInfo; } Adv\YandexBannerTable::setSkipRemoteUpdate(true);