Google Ads API: final_urls: list or string?

80 views
Skip to first unread message

Mat

unread,
Mar 22, 2019, 7:15:06 AM3/22/19
to AdWords API and Google Ads API Forum
Hi,

the Google Ads API reference says, in the field description that "final_urls" is "A list of possible final URLs after all cross domain redirects." But the Data Type is specified with STRING, e.g.:

extension_feed_item.sitelink_feed_item.final_urls

Field descriptionA list of possible final URLs after all cross domain redirects.
CategoryATTRIBUTE
Data TypeSTRING
Type URLgoogle.protobuf.StringValue
FilterableTrue
SelectableTrue
SortableFalse
RepeatedTrue


When you pull a report, the actual data structure looks like this:


extension_feed_item {
  resource_name: "customers/xxxxxxxxx/extensionFeedItems/1234567890"
  sitelink_feed_item {
    final_urls {
      value: "https://www...."
    }
  }
  status: ENABLED
}


I can't find a list there. 

Question: Is it even possible for the report to return multiple urls in a single final_urls field and if yes, how would that field look like?

Regards
Mat

googleadsapi...@google.com

unread,
Mar 22, 2019, 3:14:11 PM3/22/19
to AdWords API and Google Ads API Forum
Hi Mat, 

The final_urls is a list with String value. You may refer to this code snippet as a reference in Java. Code samples in other languages can be found here. If you're looking to add multiple Final Urls, you may refer to this code snippet as a reference. The reports will return the Final Urls as a list. Please find below the sample results returned through the reports. 

ad_group_ad { 
resource_name: "customers/3246533697/adGroupAds/55754688135~339572894867" 
ad { 
id { 
value: 339572894867 

final_urls { 
value: "http://www.example.com/cruise/space/

final_urls { 
value: "http://www.example.com/locations/mars/


}

Thanks,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Reply all
Reply to author
Forward
0 new messages