Hi! I've upgrade API to v8, but still have same problem:
Generated message class "com.google.ads.googleads.v8.common.TargetRestriction" missing method "getBidOnlyCase".
You can reproduce this like that:
TargetRestriction.Builder targetRestriction = TargetRestriction.newBuilder();
targetRestriction.setBidOnly(true);
String restrictionJson = targetRestriction.build().toString();
This problem appear not only with TargetRestriction, but with many other entities. Maybe there is another way to transform it to string?