Adwords API not returning Final URLs for ExpandedTextAds

35 views
Skip to first unread message

Paul Grenyer

unread,
Nov 2, 2016, 3:10:10 PM11/2/16
to AdWords API Forum

I'm trying to get the final url array from a Google Adwords Java API ExpandedTextAdd. I can get all of the other fields, such as the headlines, description and path urls, but calling getfinalUrls always returns null, even though the ad being requested has a final url.

This is my selector:

selector.fields(AdGroupAdField.Id, AdGroupAdField.AdGroupId, AdGroupAdField.Status, AdGroupAdField.Labels)
                .orderAscBy(AdGroupAdField.Id)
                .equals(AdGroupAdField.AdGroupId, adGroupIds.toString())
                .in(AdGroupAdField.Status, "ENABLED", "PAUSED")
                .equals("AdType", getAdType());

There doesn't seem to be a AdGroupAdField for final urls. Calling getFinalUrls on the ExpandedTextAd returns null every time. I'm getting the other fields such as headline and description just fine.


Shwetha Vastrad (AdWords API Team)

unread,
Nov 2, 2016, 4:25:58 PM11/2/16
to AdWords API Forum
Hi Paul, 

You need to include "CreativeFinalUrls" (AdGroupAdField.CreativeFinalUrls in this case) in the selector for the finalUrls of an ExpandedTextAd to be populated in the response. If this doesn't return the results as expected, please provide the complete SOAP XML request and response logs so I can further investigate. Please use Reply privately to author when responding. 

Regards,
Shwetha, AdWords API Team.

Paul Grenyer

unread,
Nov 3, 2016, 3:21:49 AM11/3/16
to AdWords API Forum
Thanks, Shwetha. I thought I'd tried this. Obviously I hadn't properly and it works.



Reply all
Reply to author
Forward
0 new messages