It works well when I build V9 api.
But after migrate to V10, I got the below error:
google/ads/googleads/services/experiment_arm_service.pb.go:199:47: undefined: resources.ExperimentArm
google/ads/googleads/services/experiment_arm_service.pb.go:206:47: undefined: resources.ExperimentArm
google/ads/googleads/services/experiment_arm_service.pb.go:226:10: undefined: resources.ExperimentArm
The error position is as below:
```golang
func (x *ExperimentArmOperation) GetCreate() *resources.ExperimentArm { // line:199
if x, ok := x.GetOperation().(*ExperimentArmOperation_Create); ok {
return x.Create
}
return nil
}
func (x *ExperimentArmOperation) GetUpdate() *resources.ExperimentArm { // line:206
if x, ok := x.GetOperation().(*ExperimentArmOperation_Update); ok {
return x.Update
}
return nil
}
type ExperimentArmOperation_Create struct {
// Create operation
Create *resources.ExperimentArm `protobuf:"bytes,1,opt,name=create,proto3,oneof"` // line: 226
}
```
I can find the type:resources.ExperimentArm in the generated codes, in resources pkg.
```golang
type ExperimentArm struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Immutable. The resource name of the experiment arm.
// Experiment arm resource names have the form:
//
// `customers/{customer_id}/experimentArms/{TrialArm.trial_id}~{TrialArm.trial_arm_id}`
ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
// Immutable. The experiment to which the ExperimentArm belongs.
Trial string `protobuf:"bytes,2,opt,name=trial,proto3" json:"trial,omitempty"`
// Required. The name of the experiment arm. It must have a minimum length of 1 and
// maximum length of 1024. It must be unique under an experiment.
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// Whether this arm is a control arm. A control arm is the arm against
// which the other arms are compared.
Control bool `protobuf:"varint,4,opt,name=control,proto3" json:"control,omitempty"`
// Traffic split of the trial arm. The value should be between 1 and 100
// and must total 100 between the two trial arms.
TrafficSplit int64 `protobuf:"varint,5,opt,name=traffic_split,json=trafficSplit,proto3" json:"traffic_split,omitempty"`
// List of campaigns in the trial arm. The max length is one.
Campaigns []string `protobuf:"bytes,6,rep,name=campaigns,proto3" json:"campaigns,omitempty"`
// Output only. The in design campaigns in the treatment experiment arm.
InDesignCampaigns []string `protobuf:"bytes,7,rep,name=in_design_campaigns,json=inDesignCampaigns,proto3" json:"in_design_campaigns,omitempty"`
}
```
So, it strange to get the undefined: resources.ExperimentArm error.
Can anyone tell me how to fix it? Thanks
Best regards!