[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-05 (世界標準時間)。"],[[["\u003cp\u003eRetrieve Smart campaign performance data, including impressions, clicks, and cost, using the \u003ccode\u003eGoogleAdsService.SearchStream\u003c/code\u003e and relevant resources like \u003ccode\u003esmart_campaign_search_term_view\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAccess and analyze search terms that triggered your Smart campaigns along with their corresponding metrics.\u003c/p\u003e\n"],["\u003cp\u003eIdentify the \u003ccode\u003eKeywordThemeConstants\u003c/code\u003e associated with your campaigns and retrieve their attributes using the \u003ccode\u003ecampaign_criterion\u003c/code\u003e and \u003ccode\u003ekeyword_theme_constant\u003c/code\u003e resources.\u003c/p\u003e\n"],["\u003cp\u003eFulfill reporting requirements by querying specific fields from the \u003ccode\u003ecampaign\u003c/code\u003e and \u003ccode\u003esmart_campaign_search_term_view\u003c/code\u003e resources, as outlined in the required minimum functionality (RMF).\u003c/p\u003e\n"],["\u003cp\u003eLeverage per-store metrics and segment data by specific timeframes, such as phone calls by hour, to gain deeper insights into campaign performance.\u003c/p\u003e\n"]]],[],null,["# Reporting\n\nAs with other campaign types, you can use\n[`GoogleAdsService.SearchStream`](/google-ads/api/reference/rpc/v21/GoogleAdsService/SearchStream)\nto retrieve attributes and performance metrics for Smart campaigns.\n\nSmart campaign metrics are available from the [`campaign`](/google-ads/api/fields/v21/campaign)\nresource, and search-term specific metrics are available from the\n[`smart_campaign_search_term_view`](/google-ads/api/fields/v21/smart_campaign_search_term_view)\nresource. In the `smart_campaign_search_term_view`, the\n[`search_term`](/google-ads/api/fields/v21/smart_campaign_search_term_view#smart_campaign_search_term_view.search_term)\nfield contains any matching queries that generated results.\n\nImpressions and clicks of Smart campaigns in last 30 days\n---------------------------------------------------------\n\nThe following query retrieves impressions and clicks for each search term from\nthe last 30 days for all Smart campaigns, segmented by date. \n\n SELECT\n campaign.id,\n campaign.name,\n segments.date,\n metrics.impressions,\n metrics.clicks,\n smart_campaign_search_term_view.search_term\n FROM smart_campaign_search_term_view\n WHERE segments.date DURING LAST_30_DAYS\n\nTop 10 search terms by impressions\n----------------------------------\n\nThe following query retrieves the top 10 search terms that have generated the\nmost impressions over the past 30 days, along with their cost. \n\n SELECT\n campaign.id,\n campaign.name,\n segments.date,\n metrics.impressions,\n metrics.cost_micros,\n smart_campaign_search_term_view.search_term\n FROM smart_campaign_search_term_view\n ORDER BY metrics.impressions DESC\n LIMIT 10\n\nRetrieve attributes of a `KeywordThemeConstant`\n-----------------------------------------------\n\nBecause `KeywordThemeConstants` are retrieved from a large dataset that is not\ncustomer-specific, it's not possible to scan the entire\n[`keyword_theme_constant`](/google-ads/api/fields/v21/keyword_theme_constant)\nresource all at once. To retrieve individual `KeywordThemeConstants`, you must\nquery the [`campaign_criterion`](/google-ads/api/fields/v21/campaign_criterion) resource to find\nthe resource names of the keyword themes associated with your campaigns, then\nuse those resource names to filter the `keyword_theme` resource. \n\n SELECT\n campaign_criterion.type,\n campaign_criterion.status,\n campaign_criterion.criterion_id,\n campaign_criterion.keyword_theme.keyword_theme_constant\n FROM campaign_criterion\n WHERE campaign_criterion.type = KEYWORD_THEME\n\nNow use the resource name in the\n`campaign_criterion.keyword_theme.keyword_theme_constant` field in the following\nquery: \n\n SELECT\n keyword_theme_constant.resource_name,\n keyword_theme_constant.display_name,\n keyword_theme_constant.country_code\n FROM keyword_theme_constant\n WHERE keyword_theme_constant.resource_name = 'keywordThemeConstants/40804~0'\n\nReporting functionality requirements\n------------------------------------\n\nTo implement Smart campaigns, your application must satisfy a set of\n[required minimum functionality (RMF)](/google-ads/api/docs/rmf#smart_campaign_feature_list).\n\nFor reporting specifically, a number of reporting fields must be made\navailable to the end user. Here's how to retrieve the required fields from item\nnumber **R.20 Campaign Performance** in the RMF: \n\n SELECT\n metrics.clicks,\n metrics.cost_micros,\n metrics.impressions,\n metrics.conversions,\n metrics.all_conversions\n FROM campaign\n\nHere's how to retrieve the required fields from item number **R.70\nSmart Campaign Search Term View**: \n\n SELECT\n metrics.clicks,\n metrics.cost_micros\n FROM smart_campaign_search_term_view\n\nPer-store metrics\n-----------------\n\nHere's a query that includes all of the available per-store metrics. These\nfields can also be combined with other fields in a single query: \n\n SELECT\n metrics.all_conversions_from_click_to_call,\n metrics.all_conversions_from_directions,\n metrics.all_conversions_from_menu,\n metrics.all_conversions_from_order,\n metrics.all_conversions_from_other_engagement,\n metrics.all_conversions_from_store_visit,\n metrics.all_conversions_from_store_website\n FROM campaign\n\nPhone calls segmented by hour\n-----------------------------\n\nHere's how to retrieve all phone call metrics between 12 PM and 5 PM: \n\n SELECT\n segments.hour,\n metrics.phone_calls\n FROM campaign\n WHERE segments.hour BETWEEN 12 and 17"]]