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!
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/9516bf9a-13f7-48c4-bc6d-9d19150ee8a1n%40googlegroups.com.