I know how to get the constant. I even know how to get the campaign constraint id via a query. However, when I have to send out 10K campaign bid modifier updates several times a day, I don't want my server to query and then mutate the hundreds of times needed to go through each account. So, then I have to hardcode your constants in my code but it seems to me a gross oversight that DeviceEnum doesn't provide them and ResourceNames.campaignConstraintId doesn't have a method which takes DeviceEnum in place of the stupid constant which seems unconnected to any meaningful programming construct.
Please update the java api to provide an accessor to get the constants and you take responsibility for associating the constants with the DeviceEnum. Don Mitchell On Friday, 22 October 2021 at 04:01:41 UTC-4 adsapi wrote: > Hello Cargurus, > > Thank you for reaching out to us. > > Can you try this campaign_criterion > <https://developers.google.com/google-ads/api/fields/v8/campaign_criterion?hl=en> > view > and utilize these available fields (criterion_id > <https://developers.google.com/google-ads/api/fields/v8/campaign_criterion?hl=en#campaign_criterion.criterion_id> > | device.type > <https://developers.google.com/google-ads/api/fields/v8/campaign_criterion?hl=en#campaign_criterion.device.type> > )? > > Let us know if this is what you're looking for. > > Regards, > [image: Google Logo] > Mark Kevin Albios > Google Ads API Team > > > ref:_00D1U1174p._5004Q2QE62P:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "AdWords API and Google Ads 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/64e70c36-9b1b-4980-a7e8-cf063fec3cffn%40googlegroups.com.
