Tried to pause a campaign, while doing so, I get this error. This error occurs on and off.
"'PHP Fatal error: Uncaught Google\AdsApi\AdWords\v201809\cm\ApiException: [RateExceededError <rateName=OperationsPerDay, rateKey=basic_access_operations, rateScope=DEVELOPER, retryAfterSeconds=86400>] in /var/www/DH2-MASTER/application/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:43'
$selector->setPaging(new Paging(0, self::PAGE_LIMIT));
$totalNumEntries = 0;
do{
$page = $campaignService->get($selector);
if ($page->getEntries() !== null) {
$totalNumEntries = $page->getTotalNumEntries();
foreach ($page->getEntries() as $campaign) {
$campaign->setStatus(CampaignStatus::PAUSED);
$operations = [];
$operation = new CampaignOperation();
$operation->setOperand($campaign);
$operation->setOperator(Operator::SET);
$operations[] = $operation;
$result = $campaignService->mutate($operations);
$campaign = $result->getValue()[0];
printf("Campaign with ID %d was removed.\n", $campaign->getId());
}
}
}while ($selector->getPaging()->getStartIndex() < $totalNumEntries);
}