URL data missing in response from query to AdGroupAdService

46 views
Skip to first unread message

tom.wa...@raisingit.com

unread,
Jul 20, 2018, 11:22:50 AM7/20/18
to AdWords API and Google Ads API Forum
Hi everyone,

I'm trying to get data on expanded text ads in existing ad groups via an AWQL query to the AdGroupAdService.

It successfully pulls back most data: headlines, descriptions etc. but all the URL fields are missing (in the Python library I'm using, that is None or an empty list, []).
That goes for url, displayUrl, finalUrls etc. despite the fact I have set the final URL manually in the AdWords GUI.

I've tried with the get method too, and the result is exactly the same.

Could this be another quirk of the test API token?
If not, how do I fix it?

Cheers,
Tom

Milind Sankeshware (AdWords API Team)

unread,
Jul 20, 2018, 5:40:19 PM7/20/18
to AdWords API and Google Ads API Forum
Hi Tom,

Could you please share the query or code snippet along with client customer id so that I can troubleshoot the issue? Also, please elaborate what do you mean by 'Could this be another quirk of the test API token'? Are you checking on your test account? However, you could use displayurlfinal url attribute from Ad performance report to get data for expanded text ads. Please find the selector code for ad performance report below:


selector = {
'fields': ['Id', 'AdGroupId', 'Status', 'HeadlinePart1', 'HeadlinePart2',
'Description','Url','CreativeFinalUrls'],
'predicates': [
{
'field': 'AdGroupId',
'operator': 'EQUALS',
'values': [ad_group_id]
},
{
'field': 'AdType',
'operator': 'EQUALS',
'values': ['EXPANDED_TEXT_AD']
}
],
'paging': {
'startIndex': str(offset),
'numberResults': str(PAGE_SIZE)
},
'ordering': [
{
'field': 'Id',
'sortOrder': 'ASCENDING'
}
]
}

You could use 'Reply privately to author' option while responding. 

Thanks,
Milind, AdWords API Team.

Matthew C. Thrash

unread,
Jul 23, 2018, 5:17:13 AM7/23/18
to AdWords API and Google Ads API Forum
Please. help me. i like you, i have know ideal to fix that

Vào 08:22:50 UTC-7 Thứ Sáu, ngày 20 tháng 7 năm 2018, tom.wa...@raisingit.com đã viết:

Milind Sankeshware (AdWords API Team)

unread,
Jul 23, 2018, 3:52:32 PM7/23/18
to AdWords API and Google Ads API Forum
Hi Tom,

To get finalUrl, could you please try with CreativeFinalUrls attribute from AdGroupAdService. Please check the selector fields for reference. Please give a try and let me know if you are still facing issues. 

tom.wa...@raisingit.com

unread,
Jul 24, 2018, 6:11:36 AM7/24/18
to AdWords API and Google Ads API Forum
Thanks so much Milind, it worked!

Are url and displayUrl deprecated? What circumstances (if any) do they still work in?

Cheers,
Tom

tom.wa...@raisingit.com

unread,
Jul 24, 2018, 6:15:13 AM7/24/18
to AdWords API and Google Ads API Forum
It's okay - found my answer. Thanks for all your help Milind.

In case useful for others:
Caution: Expanded text ads do not use urldisplayUrlfinalAppUrls, or devicePreference; setting these fields on an expanded text ad will cause an error.
Reply all
Reply to author
Forward
0 new messages