REST Resource: partners.adsAccountLinks
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源:AdsAccountLink
AdsAccountLink 是 Google Ads 账号与 Partner Center 账号以及广告资源项之间的关联。
JSON 表示法 |
{
"name": string,
"itemIds": [
string
],
"state": enum (State )
} |
字段 |
name |
string
标识符。AdsAccountLink 的资源名称。格式:partners/{partner}/adsAccountLinks/{adsAccountLink}
|
itemIds[] |
string
必需。要与 Google Ads 账号相关联的商品目录项 ID 的列表。
|
state |
enum (State )
仅限输出。Google Ads 账号关联的状态。
|
州
枚举 |
STATE_UNSPECIFIED |
未知状态。 |
LINKED |
账号在合作伙伴中心与 Google Ads 门户之间关联。 |
PENDING |
账号正在等待 Partner Center 或 Google Ads 门户的批准。 |
DELETED |
账号关联已删除。 |
REJECTED |
账号关联请求被合作伙伴中心或 Google Ads 门户拒绝。 |
方法 |
|
创建 Google Ads 账号关联。 |
|
删除 Google Ads 账号关联。 |
|
获取 Google Ads 账号关联。 |
|
更新 Google Ads 账号与产品目录项的关联。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-24。
[null,null,["最后更新时间 (UTC):2025-07-24。"],[[["\u003cp\u003eAdsAccountLink connects an Ads account with a Partner Center account, including inventory items.\u003c/p\u003e\n"],["\u003cp\u003eIt includes essential fields like name, inventory item IDs, and the link's current state.\u003c/p\u003e\n"],["\u003cp\u003eThe state of the link can be linked, pending, deleted, or rejected, reflecting its status.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage AdsAccountLinks by creating, deleting, retrieving, and updating them via API methods.\u003c/p\u003e\n"],["\u003cp\u003eThe AdsAccountLink resource uses a JSON representation for data exchange.\u003c/p\u003e\n"]]],[],null,["# REST Resource: partners.adsAccountLinks\n\n- [Resource: AdsAccountLink](#AdsAccountLink)\n - [JSON representation](#AdsAccountLink.SCHEMA_REPRESENTATION)\n- [State](#State)\n- [Methods](#METHODS_SUMMARY)\n\nResource: AdsAccountLink\n------------------------\n\nAdsAccountLink is a link between an Ads account and a Partner Center account along with the inventory items.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"itemIds\": [ string ], \"state\": enum (/maps-booking/reference/maps-booking-api/rest/v1alpha/partners.adsAccountLinks#State) } ``` |\n\n| Fields ||\n|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Identifier. Resource name of the AdsAccountLink. Format: `partners/{partner}/adsAccountLinks/{adsAccountLink}` |\n| `item``Ids[]` | `string` Required. List of inventory item Ids to be linked with the Google Ads account. |\n| `state` | `enum (`[State](/maps-booking/reference/maps-booking-api/rest/v1alpha/partners.adsAccountLinks#State)`)` Output only. State of the Ads account link. |\n\nState\n-----\n\nState of the Ads account link.\n\n| Enums ||\n|---------------------|----------------------------------------------------------------------------------|\n| `STATE_UNSPECIFIED` | Unknown state. |\n| `LINKED` | Account is linked between the Partner Center and the Ads Portal. |\n| `PENDING` | Account is waiting for approval on either the Partner Center or the Ads Portal. |\n| `DELETED` | Account link is deleted. |\n| `REJECTED` | Account link request is rejected by either the Partner Center or the Ads Portal. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------------------------------|------------------------------------------------|\n| ### [create](/maps-booking/reference/maps-booking-api/rest/v1alpha/partners.adsAccountLinks/create) | Creates Ads account link. |\n| ### [delete](/maps-booking/reference/maps-booking-api/rest/v1alpha/partners.adsAccountLinks/delete) | Deletes Ads account link. |\n| ### [get](/maps-booking/reference/maps-booking-api/rest/v1alpha/partners.adsAccountLinks/get) | Gets Ads account link. |\n| ### [patch](/maps-booking/reference/maps-booking-api/rest/v1alpha/partners.adsAccountLinks/patch) | Updates Ads account link with inventory items. |"]]