Set target campaign in Adwords

41 views
Skip to first unread message

shweta.so...@gmail.com

unread,
Feb 7, 2019, 5:52:07 AM2/7/19
to AdWords API and Google Ads API Forum
Hi, 

I was using Adwords API version v201802. I was setting the target campaign in Feed Item using the feedItem.setCampaignTargeting. But, since this version has been deprecated and this method is not availaible in version v201806 as well as v201809. 

So, please do let me know how can I set the targeting campaign in these versions asap as this is the production issue.

Regards,
Shweta Padwekar

googleadsapi...@google.com

unread,
Feb 7, 2019, 11:38:59 AM2/7/19
to AdWords API and Google Ads API Forum
Hello Shweta, 

You can use FeedItemTargetService to restrict individual feed items to only target specific campaigns, ad groups, or criteria. You may use the FeedItemCampaignTarget to target the feed items to a campaigns. You may refer to the code sample in Java as a reference on to target a campaign. Code samples in other languages can be found here

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/

shweta.so...@gmail.com

unread,
Feb 8, 2019, 12:48:45 AM2/8/19
to AdWords API and Google Ads API Forum
Hi Bharani,

Thanks for the update. But, in the GIT link mentioned for Java code, I have seen that instead of FeedItem, PriceFeedItem is used. I particularly want to use FeedItem class.

Regards,
Shweta Padwekar

googleadsapi...@google.com

unread,
Feb 8, 2019, 3:10:52 PM2/8/19
to AdWords API and Google Ads API Forum
Hello Shweta,

With the latest changes as mentioned in this blog, you will need to use FeedItemTargetService to add the targeting options for FeedItems. You may use the specific FeedItem type (Sitelink, Price etc) or set it using the feedItem target instance. You may refer to the code sample as a reference. Let me know if you have any other questions.

Thanks,
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/77f56aba-38ac-492a-b929-59bab419771e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages