Hi,

  I am using Google Ads API V9, and I created a budget order which should 
start in 2 weeks from now... so I created a budget order proposal as you 
can see bellow

BudgetOrderProposal {'advertiser_id': 588246835, 'status': 'APPROVED', 
'billing_setup_id': 6687034747, 'account_budget_id': 0000000, 'name': 
'name', 'start_datetime': '2022-02-27 00:00:00', 'end_datetime': 
'2022-02-28 23:59:59', 'spending_limit': 3940000, 'creation_datetime': 
'2022-02-10 12:29:47', 'notes': ''} 

After this.. I wanted to delete the BudgetOrder using the following 
operation:

remove: "customers/6101123846/accountBudgetProposals/588246835" 

BUT.... I got this error "Approved proposals cannot be cancelled."

_InactiveRpcError of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = 
"{"created":"@1644625007.284371079","description":"Error received from peer 
ipv4:172.217.13.202:443","file":"src/core/lib/surface/call.cc","file_line":1063,"grpc_message":"Request
 
contains an invalid argument.","grpc_status":3}"
>, errors {
error_code {
account_budget_proposal_error: CANNOT_CANCEL_APPROVED_PROPOSAL
}
message: "Approved proposals cannot be cancelled."
location {
field_path_elements {
field_name: "operation"
}
}
}
request_id: "xlYiWRWR7y9pWJXqo8Ov6g"
, 'xlYiWRWR7y9pWJXqo8Ov6g')



I dont understand, why I cannot delete this BudgetOrder with start date 
starting in the future... The following google doc stipulate that we can 
delete it,,


 Google doc: 
https://developers.google.com/google-ads/api/docs/billing/account-budgets?hl=en#remove

< Removing an approved account budget before its start timeIf you proposed 
an account budget to start in future, you can remove this entirely prior to 
the start time by sending a AccountBudgetProposalType.REMOVE 
<https://developers.google.com/google-ads/api/reference/rpc/v10/AccountBudgetProposalTypeEnum.AccountBudgetProposalType#remove>
 
proposal type. >


<https://developers.google.com/google-ads/api/reference/rpc/v9/AccountBudgetProposalOperation>

Remove operation: A resource name for the removed proposal is expected, in 
this format:

customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id} 
A request may be cancelled iff it is pending.

What I am doing wrong?

Corine

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/bdc55b0c-9a06-4092-8b32-0d605200f479n%40googlegroups.com.

Reply via email to