获取资产属性和指标
素材资源属性
您可以向 SearchAds360Service 发送 Search Ads 360 查询语言查询,获取素材资源及其属性的列表。资产由 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
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-23。
[null,null,["最后更新时间 (UTC):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"]]