Re: Java ads api: device enum to device constant?

2021-10-24 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Don,

I understand the inconvenience of the additional requests you are performing. 
Since this involves the Java client library, I would recommend that you reach 
out as well to the Java library owners via this link, for further guidance if 
there are ways to access the enums directly at the code level.

That said, allow me as well to create a feature request, subject for review, 
for this to be available directly via the API's services / resources. For now, 
you may keep an eye on our blog for updates and / or announcements.

Best regards,

Peter Laurence Napa Oliquino
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/42-590R1ILCM00xAYdIYNDQT2I4Fv6KOdHJQ%40sfdc.net.


Re: Java ads api: device enum to device constant?

2021-10-22 Thread dhmitc...@gmail.com
 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 
> 
>  view 
> and utilize these available fields (criterion_id 
> 
>  | 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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/64e70c36-9b1b-4980-a7e8-cf063fec3cffn%40googlegroups.com.


RE: Java ads api: device enum to device constant?

2021-10-22 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hello Cargurus,

Thank you for reaching out to us.

Can you try this campaign_criterion view and utilize these available fields 
(criterion_id | device.type)?

Let us know if this is what you're looking for.

Regards,

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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/tdi7Q0R1DCYE008OVoIsBVSI-Afnsaixbxww%40sfdc.net.


Re: Java ads api: device enum to device constant?

2021-10-21 Thread dhmitc...@gmail.com
the 3..30004 constants are 
from 
https://developers.google.com/google-ads/api/reference/data/codes-formats?hl=en#expandable-13;
 
so, the question is how to map from the enum or device info obj to these or 
to a campaign constraint resource name.

On Thursday, 21 October 2021 at 11:09:08 UTC-4 dhmitc...@gmail.com wrote:

> As far as we can tell, there's no way to map from `enums.DeviceEnum` or 
> `common.DeviceInfo` to the 3..30004 constants which seem to be what's 
> needed as the `criterionId` for `utils.ResourceNames#campaignCriterion`. Am 
> I missing something? Is the `criterionId` something else? 
>
> Don Mitchell
> Cargurus
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/554c75c4-8f23-422f-aba4-ccb79114c3e0n%40googlegroups.com.