的 Google AdWords 連接器位於beta中。 查看 源概述 的子菜單。
基連接表示源和Adobe Experience Platform之間經過驗證的連接。
本教程將指導您完成建立基本連接的步驟 Google AdWords (以下簡稱:AdWords")使用 Flow Service API。
本指南要求對Adobe Experience Platform的下列組成部分有工作上的理解:
以下各節提供了要成功連接到所需的其他資訊 AdWords 使用 Flow Service API。
為了 Flow Service 連接 AdWords,必須為以下連接屬性提供值:
憑據 | 說明 |
---|---|
clientCustomerId |
客戶端客戶ID AdWords 帳戶。 |
developerToken |
與管理器帳戶關聯的開發者令牌。 |
refreshToken |
從獲取的刷新令牌 Google 授權訪問 AdWords。 |
clientId |
的客戶端ID Google 用於獲取刷新令牌的應用程式。 |
clientSecret |
客戶機密碼 Google 用於獲取刷新令牌的應用程式。 |
connectionSpec.id |
連接規範返回源的連接器屬性,包括與建立基連接和源連接相關的驗證規範。 連接規範ID AdWords 為: d771e9c1-4f26-40dc-8617-ce58c4b53702 。 |
有關這些值的詳細資訊,請參閱 GoogleAdWords文檔。
有關如何成功調用平台API的資訊,請參見上的指南 平台API入門。
基本連接將保留源和平台之間的資訊,包括源的驗證憑據、連接的當前狀態和唯一的基本連接ID。 基本連接ID允許您從源中瀏覽和導航檔案,並標識要攝取的特定項目,包括有關其資料類型和格式的資訊。
要建立基本連接ID,請向 /connections
提供端點 AdWords 身份驗證憑據作為請求參數的一部分。
API格式
POST /connections
要求
以下請求為 AdWords:
curl -X POST \
'https://platform.adobe.io/data/foundation/flowservice/connections' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-H 'Content-Type: application/json'
-d '{
"name": "google-AdWords connection",
"description": "Connection for google-AdWords",
"auth": {
"specName": "Basic Authentication",
"params": {
"clientCustomerID": "{CLIENT_CUSTOMER_ID}",
"developerToken": "{DEVELOPER_TOKEN}",
"authenticationType": "{AUTHENTICATION_TYPE}"
"clientId": "{CLIENT_ID}",
"clientSecret": "{CLIENT_SECRET}",
"refreshToken": "{REFRESH_TOKEN}"
}
},
"connectionSpec": {
"id": "d771e9c1-4f26-40dc-8617-ce58c4b53702",
"version": "1.0"
}
}'
屬性 | 說明 |
---|---|
auth.params.clientCustomerID |
您的客戶端客戶ID AdWords 帳戶。 |
auth.params.developerToken |
您的開發人員令牌 AdWords 帳戶。 |
auth.params.refreshToken |
您的刷新令牌 AdWords 帳戶。 |
auth.params.clientID |
您的客戶端ID AdWords 帳戶。 |
auth.params.clientSecret |
你的客戶機密碼 AdWords 帳戶。 |
connectionSpec.id |
的 Google AdWords 連接規範ID: d771e9c1-4f26-40dc-8617-ce58c4b53702 。 |
回應
成功的響應返回新建立的基本連接的詳細資訊,包括其唯一標識符(id
)。 在下一步建立源連接時需要此ID。
{
"id": "2484f2df-c057-4ab5-84f2-dfc0577ab592",
"etag": "\"10033e77-0000-0200-0000-5e96785b0000\""
}
按照本教程,您建立了 Google AdWords 基本連接使用 Flow Service API。 您可以在以下教程中使用此基本連接ID: