Hello Varun,

You will need to use the FeedItemTargetService
<https://developers.google.com/adwords/api/docs/reference/v201809/FeedItemTargetService> and
set the FeedItemCriterionTarget
<https://developers.google.com/adwords/api/docs/reference/v201809/FeedItemTargetService.FeedItemCriterionTarget> with
criterion as Platform
<https://developers.google.com/adwords/api/docs/reference/v201809/FeedItemTargetService.Platform> for
setting the device preference (only Mobile). Please refer to the sample
SOAP response below as a reference:

<mutateResponse xmlns="https://adwords.google.com/api/adwords/cm/v201809";>
<rval>
<ListReturnValue.Type>FeedItemTargetReturnValue</ListReturnValue.Type>
<value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:type="FeedItemCriterionTarget">
<feedId>87591034</feedId>
<feedItemId>59621644858</feedItemId>
<targetType>CRITERION</targetType>
<status>ACTIVE</status>
<FeedItemTarget.Type>FeedItemCriterionTarget</FeedItemTarget.Type>
<criterion xsi:type="Platform">
<id>30001</id>
<type>PLATFORM</type>
<Criterion.Type>Platform</Criterion.Type>
<platformName>HighEndMobile</platformName>
</criterion>
<isNegative>false</isNegative>
</value>
</rval>
</mutateResponse>

You may refer to the code sample in Java
<https://developers.google.com/adwords/api/docs/samples/java/extensions#add-sitelinks-to-a-campaign-using-feeds> on
how to use this service. Code samples in other languages can be found here
<https://developers.google.com/adwords/api/docs/clientlibraries>. Let me
know if you have any other questions.

Regards,
Bharani, AdWords API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 01/16/19 02:06:41 varundmat...@gmail.com wrote:

Hi ,
I need to understand how to query for Device Preference from
FeedItemTargetService in v201806 of Adwords API.

Currently (v201802), we use deviceprefernce and other non targeting fields
in selector.Additionally we provide filters via Predicate.Before querying
with this selector object in FeedItemService.
Now,per Migration guide (to V201806) :
All targeting fields were removed from FeedItem: devicePreference
scheduling campaignTargeting adGroupTargeting keywordTargeting
geoTargetingUse the FeedItemTargetService to set targeting for feed items
instead.


Can you please help me understand how shall I still be able to query for
devicePreference from FeedItemTargetService?

Thanks,
Varun

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/04bf3b02-6a24-4f95-b7d2-ab75bb510aab%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/04bf3b02-6a24-4f95-b7d2-ab75bb510aab%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/12f0gb2fr0000000874g1o004nsg72z74mjce9j60o30c1g68q3edho%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • Device ... Varun Mathur
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to