Dear Google Ads Support Team,

I am using mutateAccountBudgetProposal to update account budgets. For some 
accounts, the update works successfully, but for others I receive the 
following error:

*CANNOT_UPDATE_OLD_BUDGET – “The budget has been expired for some time and 
cannot be edited.”*

Could you please help explain the reason for this issue? Below is the code 
I am using for the request:
$proposal = new AccountBudgetProposal([
    'proposal_type'    => AccountBudgetProposalType::UPDATE,
    'account_budget'   => $resourceName,
    'proposed_name'    => $accountBudget->getName(),
    'proposed_spending_limit_micros' => $newBudget,
]);
$operation = new AccountBudgetProposalOperation();
$operation->setCreate($proposal);

$operation->setUpdateMask(
    FieldMasks::allSetFieldsOf($proposal)
);
$request = new MutateAccountBudgetProposalRequest([
    'customer_id' => $customerId,
    'operation' => $operation,
]);
$response = 
$accountBudgetProposalServiceClient->mutateAccountBudgetProposal($request);

[image: googlea15e07.png]

Thank you for your assistance.
Best regards,

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"(Deprecated) Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/adwords-api/9052a999-f37e-4ba2-86f0-740de60dddb0n%40googlegroups.com.
  • ... static bin
    • ... static bin
      • ... 'Google Ads API Forum Advisor' via (Deprecated) Google Ads API and AdWords API Forum

Reply via email to