Re: TargetRestriction missing method "getBidOnlyCase"

2021-08-04 Thread Google Ads API Forum Advisor
Hi Kate, Thank you for reaching out to us. Having looked over the post a bit more, we would suggest that you reach out to our Java Implementation team here . They can better help and handle this as it would appear to be an issue with the Java implementation code. Also at the same time if you ar

Re: TargetRestriction missing method "getBidOnlyCase"

2021-08-03 Thread 'Kate Orlova' via AdWords API and Google Ads API Forum
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();targetRestri

RE: TargetRestriction missing method "getBidOnlyCase"

2021-08-02 Thread Google Ads API Forum Advisor
Hi Kate, Thanks for bringing this question to our attention. First when looking at this, I would like to ask if you are working on the current version of the API. As you are showing an issue with v7, but all of our documents show v8. If using the lower version we would say to upgrade to 8. Here

TargetRestriction missing method "getBidOnlyCase"

2021-08-02 Thread 'Kate Orlova' via AdWords API and Google Ads API Forum
Hi! I'm receiving *campaign.targeting_setting.target_restrictions* and then I want to get this list just as json string, but when I call *googleAdsRow.getCampaign().getTargetingSetting().getTargetRestrictionsList().toString()* I receive an exception *Generated message class "com.google.ads.goo