有兴趣分享您对 Google Ads API 的反馈吗?
注册即可获邀参与用户调研!
资源名称
<ph type="x-smartling-placeholder">
Google Ads API 中实体的唯一标识符称为资源
名称,并以可预测格式的字符串表示。如果您知道
资源名称的组成部分时,您可以使用此实用程序
生成最终的资源名称。
ResourceNames 类
ResourceNames
类是一种构造实体资源名称的方法
如果您知道与该实体相关的所有相关 ID。例如,
广告系列资源名称的格式为
customers/{customer_id}/campaigns/{campaign_id}
,因此,如果您认识该客户
ID 和广告系列 ID,则可以使用 ResourceNames
类构造完整的
资源名称如下所示:
string campaignResourceName = ResourceNames.Campaign(customerId, campaignId),
您也可以使用其他实体名称,这些实体名称根据不同的标识符采用不同的 ID
资源名称的最终形式
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-10-09。
[null,null,["最后更新时间 (UTC):2024-10-09。"],[[["The Google Ads API client library for .NET will drop support for .NET 5.0 starting with version 19.0.0, urging users to upgrade to a newer version."],["Resource names are unique identifiers for entities in the Google Ads API, following a predictable format based on the entity's components."],["You can easily construct resource names using the `ResourceNames` class if you know the necessary IDs, such as customer and campaign IDs."]]],[]]