Hi Shwetha,

According to the sample code I can assign only 1 addGroupId to a feedItem.
feedItem.setAdGroupTargeting(new FeedItemAdGroupTargeting(adGroupId));

My question is about adding multiple ones. Let me try to explain better.

    
Campaign1
   AdGroup1
   AdGroup2

Campaign2
    AdGroup1
    AdGroup3

Feed (products)
   FeedItem (lots of attributes) -> feedItem.setAdGroupTargeting(new 
FeedItemAdGroupTargeting(AdGroup1)); // Is there way to also add AdGroup2 
to the same feedItem?

// What I am trying is to avoid doing this since it will cost me more ops 
on updates plus it's pointless to maintain same values twice (or more)
Feed (products)
    FeedItem1 (lots of attributes) -> feedItem.setAdGroupTargeting(new 
FeedItemAdGroupTargeting(AdGroup1)); // Is there way to also add AdGroup2 
to the same feedItem?
    FeedItem2 (exact same as above) -> feedItem.setAdGroupTargeting(new 
FeedItemAdGroupTargeting(AdGroup1)); // This is what I'm trying to avoid.

In lame terms, FeedItem (has many) AdGroup

Hope this explains better my question,
Thank you


On Wednesday, 26 April 2017 20:20:53 UTC+2, Shwetha Vastrad (AdWords API 
Team) wrote:
>
> Hi, 
>
> You can use the same Ad customizer feed in different AdGroups. If you 
> would like to use the adGroupTargeting 
> <https://developers.google.com/adwords/api/docs/reference/v201702/FeedItemService.FeedItem#adgrouptargeting>
>  
> attribute of a FeedItem to restrict the feed item to only a specific ad 
> group, you can specify a single ad group only. Please see this guide 
> <https://developers.google.com/adwords/api/docs/guides/ad-customizers#use_the_feed_in_an_ad>
>  
> for more details on using an Ad customizer feed in an Ad. The 
> AddAdCustomizer 
> <https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201702/advancedoperations/AddAdCustomizer.java>
>  
> Java example shows how to create FeedItems with the adGroupTargeting 
> attribute set to different ad group Ids and then create expanded text ads 
> that use ad customizers for the specified ad group Ids. When these Ads 
> serve, they will show different values, since they match different feed 
> items. Example code in other languages is available here 
> <https://developers.google.com/adwords/api/docs/clientlibraries>. 
>
> Regards,
> Shwetha, AdWords API Team.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
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/d92c212b-0ca1-4a3a-b46c-3aa2a9a689e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Assigning an Ad... Paris Theofanidis
    • Re: Assign... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
      • Re: As... Paris Theofanidis
        • Re... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
          • ... Paris Theofanidis

Reply via email to