Selector fields for both TextAd, ExpandedTextAd

13 views
Skip to first unread message

Andy Lin

unread,
Jan 6, 2017, 2:36:31 PM1/6/17
to AdWords API Forum
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();

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Jan 6, 2017, 5:32:57 PM1/6/17
to AdWords API Forum
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
Reply all
Reply to author
Forward
0 new messages