Hi Andy, Yes, you can have both TextAd and ExpandedTextAd in an Adgroup. In the selector you could add '.in(AdGroupAdField.AdType,"TEXT_AD","EXPANDED_TEXT_AD")'.
Thanks, Sreelakshmi, AdWords API Team On Friday, January 6, 2017 at 2:36:31 PM UTC-5, Andy Lin wrote: > > Can we have both TextAd and ExpandedTextAd in Adgroup? If yes, can I use > one selector to get all the ads (Both TextAd, ExpandedTextAd) for the > adgroup, avoid to make 2 remote calls? > > Selector selector = builder.fields(AdGroupAdField.Id, AdGroupAdField. > AdGroupId,AdGroupAdField.Headline, AdGroupAdField. > description1,AdGroupAdField.headlinePart1, AdGroupAdField.headlinePart2, > AdGroupAdField.CreativeFinalUrls).orderAscBy(AdGroupAdField.AdGroupId) > > .offset(offset) > > .equals(AdGroupAdField.Status, AdGroupAdStatus._ENABLED) > > .in(AdGroupAdField.AdGroupId, predicateGroupIDs).limit(PAGE_SIZE).build(); > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/3786dfb0-25ba-443c-97d4-d8d4c9a5932c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
