Unknown Error - message: "The error code is not in this version."

128 views
Skip to first unread message

Or Zilca

unread,
Apr 26, 2022, 9:59:07 AM4/26/22
to Google Ads API and AdWords API Forum
When trying to create a campaign with "bidding_strategy_type": "TARGET_ROAS"

I try to add a campaign.selective_optimization.conversion_actions[]

using the latest python package:
google-ads==15.1.1

the request:
 operations {
    create {
       status: PAUSED
       advertising_channel_type: DISPLAY
       bidding_strategy_type: TARGET_ROAS
       target_roas {
         target_roas: 1.05
       }
       selective_optimization {
         conversion_actions: "customers/XXX/conversionActions/XXX"
         conversion_actions: "customers/XXX/conversionActions/XXX"
       }
       name: "test campaign"
       campaign_budget: "customers/XXX/campaignBudgets/XXX"
       start_date: "20220426"
       final_url_suffix: "..."
    }
}

I get the following error:

status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = "{"created":"@1650979513.867247600","description":"Error received from peer ipv4:x.x.x.x","file":"src/core/lib/surface/call.cc","file_line":903,"grpc_message":"Request contains an invalid argument.","grpc_status":3}"
, <_InactiveRpcError of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = "{"created":"@1650979513.867247600","description":"Error received from peer ipv4:142.250.185.138:443","file":"src/core/lib/surface/call.cc","file_line":903,"grpc_message":"Request contains an invalid argument.","grpc_status":3}"
, errors {
 error_code {
   request_error: UNKNOWN
 }
 message: "The error code is not in this version."
 trigger {
   string_value: ""
 }
 location {
   field_path_elements {
     field_name: "operations"
     index: 0
   }
   field_path_elements {
     field_name: "create"
   }
   field_path_elements {
     field_name: "selective_optimization"
   }
   field_path_elements {
     field_name: "conversion_actions"
   }
 }

request_id: "R-dZPmoxaZJnhgG-CoPjRA", 'R-dZPmoxaZJnhgG-CoPjRA')

Or Zilca

unread,
Apr 27, 2022, 4:08:53 AM4/27/22
to Google Ads API and AdWords API Forum
can anyone please assist on this?

Google Ads API Forum Advisor

unread,
Apr 27, 2022, 9:20:29 AM4/27/22
to o...@cortexmg.com, adwor...@googlegroups.com
Hi there,

Could you privately send us the full request and response 'DEBUG' log level log of API communications that got you this error?

Regards,

Google Logo
Aryeh
Google Ads API Team
 


ref:_00D1U1174p._5004Q2aNhVO:ref

Or Zilca

unread,
Apr 29, 2022, 3:47:19 AM4/29/22
to Google Ads API and AdWords API Forum
Hi,
replied in private, still waiting for response 

Reply all
Reply to author
Forward
0 new messages