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')