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.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7b98839f-3ec2-45d0-b2cd-2eaec2562919n%40googlegroups.com.

Reply via email to