Trong ví dụ sau, truy vấn GAQL sẽ truy xuất hiệu suất trong tháng qua:
SELECT
dynamic_search_ads_search_term_view.search_term,
metrics.clicks,
metrics.impressions,
segments.date,
metrics.cost_micros,
dynamic_search_ads_search_term_view.landing_page
FROM dynamic_search_ads_search_term_view
WHERE segments.date DURING LAST_MONTH
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2024-11-28 UTC."],[[["The `dynamic_search_ads_search_term_view` resource provides statistics for Dynamic Search Ads (DSAs) based on user search terms."],["The `search_term` field shows the queries that triggered your ads and led to impressions or clicks."],["You can use GAQL queries to retrieve performance data, like clicks, impressions, cost, and landing page, for specific periods, such as the last month, based on search terms."],["The example provided demonstrates how to use a GAQL query to retrieve DSA performance metrics for the previous month."]]],[]]