Hi Andrei,
Thanks for reaching out to the Google Ads API Team. I hope you are doing well today.
Thank you for providing a sample query. With regards to your concern about “getting all the keywords with non-empty final_urls array but d_group_criterion_final_urls does not work as expected”, for our team to further compare, investigate, validate and can provide a right recommendation for you, could you please provide us with the complete logs (request and response with request-id) generated on your end?
Also, we recommend that you enable logging to capture complete details by navigating to the Client libraries > Your client library (ex Python) > Logging documentation, which you can access from this link.
For REST interface requests, you can enable logging via the curl command by using the -i flag. This will cause the tool to include the HTTP response headers in the output.
You may then send the requested information via the Reply privately to the author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.
In addition, you may validate your query here for keyword_view and for url reports, see here.
Have a great day.
Regards,
|
||||||
Hi Andrei,
Thanks for getting back to us.
I’ve tried to filter the sample final url as https://www.mag**a-cms.com, and it is showing the correct response. You may see below GAQL where it pulled a successful response.
SELECT customer.resource_name, customer.id, customer.descriptive_name, customer.status, campaign.resource_name, campaign.id, campaign.name, campaign.status, ad_group.resource_name, ad_group.id, ad_group.name, ad_group.status, ad_group_criterion.resource_name, ad_group_criterion.criterion_id, ad_group_criterion.display_name, ad_group_criterion.status, ad_group_criterion.final_urls, ad_group_criterion.final_mobile_urls, campaign.url_expansion_opt_out, metrics.clicks, metrics.cost_micros, metrics.impressions, metrics.conversions FROM keyword_view WHERE campaign.status IN ('ENABLED') AND ad_group.status IN ('PAUSED') AND segments.date DURING LAST_7_DAYS AND ad_group_criterion.final_urls CONTAINS ANY ('https://www.magnolia-cms.com')
Response:
"results": [
{
"customer": {
"status": "ENABLED",
"resourceName": "customers/**",
"descriptiveName": "**",
"id": "9392902305"
},
"adGroup": {
"status": "PAUSED",
"resourceName": "customers/**/adGroups/145117578611",
"id": "145117578611",
"name": "Gartner - DXP"
},
"campaign": {
"status": "ENABLED",
"resourceName": "customers/***/campaigns/17866379228",
"name": "TR - SRC - Gartner - WCMS (#gc-gartner)",
"id": "17866379228"
},
"keywordView": {
"resourceName": "customers/**/keywordViews/145117578611~***"
},
"metrics": {
"conversions": 0,
"impressions": "0",
"costMicros": "0",
"clicks": "0"
},
"adGroupCriterion": {
"status": "ENABLED",
"resourceName": "customers/9392902305/adGroupCriteria/145117578611~320125480291",
"finalUrls": [
"https://www.magnolia-cms.com"
],
"displayName": "gartner ***",
"criterionId": "320****91"
}
}
],
That being said, you may try to add a valid final url that you want to filter and see if it works on your end.
Regards,
![]() |
Google Ads API Team |