Hello,
I'm trying to automate campaign creation which will require the first step of creating a campaign budget with a temporary ID. Unfortunately I'm receiving a rather vague error OPERATION_NOT_PERMITTED_FOR_CONTEXT.
{"message":"Request made: ClientCustomerId:
3684427843, Host:
googleads.googleapis.com, Method: /google.ads.googleads.v17.services.GoogleAdsService/Mutate, RequestId: uz9fUHqbTPPiLXZ3TJVNuA, IsFault: True, FaultMessage: The operation is not allowed for the given context.","timestamp":1729613500757,"level":4,"level_name":"WARNING","facility":"google.ads.googleads.client","file":"/Users/<>/Library/Caches/pypoetry/virtualenvs/api-XrLiZ0nM-py3.11/lib/python3.11/site-packages/google/ads/googleads/interceptors/logging_interceptor.py","line":271,"pid":98384,"process_name":"MainProcess","stack_info":null,"
logger.name":"google.ads.googleads.client","logger.thread_name":"MainThread","logger.version":"3.2.2","logger.method_name":"log_failed_request"}
google.ads.googleads.errors.GoogleAdsException: (<_InactiveRpcError of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = "UNKNOWN:Error received from peer ipv6:%5B2607:f8b0:4006:816::200a%5D:443 {grpc_message:"Request contains an invalid argument.", grpc_status:3, created_time:"2024-10-22T12:11:40.630539-04:00"}"
>, <_InactiveRpcError of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = "UNKNOWN:Error received from peer ipv6:%5B2607:f8b0:4006:816::200a%5D:443 {grpc_message:"Request contains an invalid argument.", grpc_status:3, created_time:"2024-10-22T12:11:40.630539-04:00"}"
>, errors {
error_code {
context_error: OPERATION_NOT_PERMITTED_FOR_CONTEXT
}
message: "The operation is not allowed for the given context."
location {
field_path_elements {
field_name: "mutate_operations"
index: 0
}
field_path_elements {
field_name: "campaign_budget_operation"
}
}
}
request_id: "uz9fUHqbTPPiLXZ3TJVNuA"
, 'uz9fUHqbTPPiLXZ3TJVNuA')
Please let me know what I need to change.