Some questions on final URLs

58 views
Skip to first unread message

Ritvik Singhvi

unread,
Nov 11, 2024, 1:59:44 AM11/11/24
to Google Ads API and AdWords API Forum
Hi, I wanted to fetch data for final URLs for multiple levels and had some clarifying questions:

1. Is there any way to get keyword level final urls with some metrics?
2. Why are there multiple final urls in the ad_group_ad resource? Is it a combination of ad_group_ad.ad.final_urls for mobile, app, etc or is it the keyword level that is rolled up?

Best,
Ritvik

Ritvik Singhvi

unread,
Nov 11, 2024, 5:59:02 AM11/11/24
to Google Ads API and AdWords API Forum
UI image attached

API response

     "metrics": {
                "impressions": "85875"
            },
            "adGroupAd": {
                "resourceName": "",
                "ad": {
                    "type": "EXPANDED_TEXT_AD",
                    "resourceName": "",
                    "id": "",
                    "finalUrls": [
                        "{{baseurl}}.com/Qatar",
                        "{{baseurl}}.com/Qatar"
                    ]
                }
            }
        }


This is some more info for you to help answer Q2. As you can see the UI only has 1 value but the API response is returning 2 URLs which are entirely same.
This is not the ad mobile or keyword mobile URL as the UI returns empty. This is not the keyword final URL because that URL is different than this, so is there any reason for the 2 separate but same final URLs?

I can send this privately if you need more info on the exact IDs but I have seen this happening for all campaigns & accounts.

Any help would be greatly appreciated!

Screenshot 2024-11-11 at 4.21.43 PM (1).png

Google Ads API Forum Advisor

unread,
Nov 11, 2024, 8:47:07 AM11/11/24
to adwor...@googlegroups.com
Hi Ritvik,

Thank you for reaching out to the Google Ads API support team.

Please find the answers for your questions below:


1. Is there any way to get keyword level final urls with some metrics?
  • Yes, you can get the keyword level final urls with metrics using the keyword_view resource from the Google Ads API. You can find the sample GAQL query as per your requirement: 
  • SELECT keyword_view.resource_name, ad_group_criterion.criterion_id, ad_group_criterion.keyword.text, 
    metrics.clicks, metrics.impressions, metrics.ctr, metrics.average_cpc, metrics.cost_micros, 
    metrics.conversions, ad_group_criterion.final_urls FROM keyword_view
  • You can use the search or searchStream methods in making the API calls while retrieving the data. Additionally, you can utilize the Google Ads Query Builder and Query Validator to build and validate the queries for retrieving the data from the Google Ads API.
2. Why are there multiple final urls in the ad_group_ad resource? Is it a combination of ad_group_ad.ad.final_urls for mobile, app, etc or is it the keyword level that is rolled up?
  • There are multiple final urls at the ad_group_ad resource because it's differentiated at the app, mobile and domain level. 
  • ad_group_ad.ad.final_app_urls --> A list of final app URLs that will be used on mobile if the user has the specific app installed.
  • ad_group_ad.ad.final_mobile_urls --> The list of possible final mobile URLs after all cross-domain redirects for the ad.
  • ad_group_ad.ad.final_urls --> The list of possible final URLs after all cross-domain redirects for the ad.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGj4y:ref" (ADR-00275005)

Thanks,
 
Google Logo Google Ads API Team


Ritvik Singhvi

unread,
Nov 11, 2024, 9:33:45 AM11/11/24
to Google Ads API and AdWords API Forum
1. Thank you will try it out
2. Understood but sorry my question wasn't clear- I was wondering why am I getting the same URL twice in the API response for the field ad_group_ad.ad.final_urls where as my keyword final URL is separate and my final mobile url is set empty.

This is what I am getting (replace my url with {{baseurl}}: 

     "metrics": {
                "impressions": "85875"
            },
            "adGroupAd": {
                "resourceName": "",
                "ad": {
                    "type": "EXPANDED_TEXT_AD",
                    "resourceName": "",
                    "id": "",
                    "finalUrls": [
                        "{{baseurl}}.com/Qatar",
                        "{{baseurl}}.com/Qatar"
                    ]
                }
            }
        }
Reply all
Reply to author
Forward
0 new messages