擷取資產屬性和指標
資產屬性
您可以將 Search Ads 360 查詢語言查詢傳送至 SearchAds360Service,取得資源和相關屬性清單。資產由 asset
實體表示,該實體會公開多個資產專屬欄位。
以下查詢會列出廣告主帳戶中的所有素材資源,以及資源名稱和類型。
SELECT
asset.id,
asset.name,
asset.resource_name,
asset.type
FROM asset
請注意,您可以將類型專屬屬性新增至上述查詢,以便讀取資源專屬的屬性,例如 SitelinkAsset
或 MobileAppAsset
。
舉例來說,以下查詢會篩選 MobileAppAsset
的 asset.type
值,並列出帳戶中所有 MobileAppAsset
物件的行動應用程式 ID。
SELECT
asset.id,
asset.name,
asset.resource_name,
asset.mobile_app_asset.app_store
FROM asset
WHERE asset.type = 'MOBILE_APP'
素材資源指標
資產指標可透過以下資源取得:
有了這些資源,您就能在各個層級查詢素材資源指標。舉例來說,在查詢 ad_group_asset
資源時,您可以使用 ad_group.id
欄位區隔結果,藉此擷取 ad_group
和 asset
每個不重複組合的指標:
SELECT
ad_group.id,
asset.id,
metrics.clicks,
metrics.impressions
FROM ad_group_asset
WHERE segments.date DURING LAST_MONTH
ORDER BY metrics.impressions DESC
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-23 (世界標準時間)。
[null,null,["上次更新時間:2024-11-23 (世界標準時間)。"],[[["Retrieve a list of assets and their attributes, including resource name and type, using Search Ads 360 Query Language."],["Access type-specific attributes, such as mobile app IDs, by filtering the `asset.type` value in your query."],["Query asset metrics at the ad group, campaign, or customer level through respective resources like `ad_group_asset`, `campaign_asset`, and `customer_asset`."],["Segment asset metric results by fields like `ad_group.id` to analyze performance for specific combinations of assets and ad groups, campaigns, or customers."]]],["Assets and their attributes can be retrieved by sending a Search Ads 360 Query Language query to the SearchAds360Service, using the `asset` entity. Type-specific attributes can be added to queries. Asset metrics are available through `ad_group_asset`, `campaign_asset`, and `customer_asset` resources, enabling queries at various levels. For example, metrics can be retrieved for each unique combination of `ad_group` and `asset` using `ad_group_asset` resource.\n"]]