Device Preference and FeedItemTargetService

14 views
Skip to first unread message

Varun Mathur

unread,
Jan 16, 2019, 6:13:17 AM1/16/19
to AdWords API and Google Ads API Forum
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

googleadsapi...@google.com

unread,
Jan 16, 2019, 2:48:12 PM1/16/19
to AdWords API and Google Ads API Forum
Hello Varun,

You will need to use the FeedItemTargetService and set the FeedItemCriterionTarget with criterion as 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 on how to use this service. Code samples in other languages can be found here. 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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

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

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@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.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages