共用方式為


UpdateClientLinks 服務作業 - 客戶管理

更新指定之客戶端連結的狀態。

注意事項

只有具有超級管理員或標準認證的使用者可以新增、更新及搜尋廣告客戶帳戶的客戶端連結。 只有具有超級管理員認證的使用者可以新增、更新及搜尋客戶端連結。 如需詳細資訊,請參閱 使用者角色 技術指南。

如果您的使用者在機構內,則作業可用來更新您所管理或已邀請管理之任何帳戶的用戶端連結狀態。

如果您的使用者位於客戶端客戶內,且客戶擁有一或多個受管理或受邀由代理商管理的帳戶,則您只能使用此作業來更新 LinkAcceptedLinkDeclined 的狀態。 用戶端也可以透過 Microsoft Advertising Web 應用程式來接受或拒絕連結要求。

提示

如需客戶端連結生命週期的詳細資訊,請參閱 帳戶階層 技術指南。 如需成為機構的詳細資訊,請參閱 機構合作夥伴的資源。 如需客戶端觀點的詳細資訊,請參閱 如何讓機構管理您的 Microsoft Advertising 帳戶

要求專案

UpdateClientLinksRequest 物件會定義服務作業要求的主體標頭元素。 元素的順序必須與 要求SOAP中所示的順序相同。

注意事項

除非下面另有說明,否則所有要求專案都是必要的。

要求本文專案

元素 描述 資料類型
ClientLinks 要更新的用戶端連結清單。

您應該將要求限制為每個呼叫 10 個客戶端連結。
ClientLink 陣

要求標頭元素

元素 描述 資料類型
AuthenticationToken OAuth 存取令牌,代表有權Microsoft Advertising 帳戶之用戶的認證。

如需詳細資訊,請 參閱使用 OAuth 進行驗證
string
DeveloperToken 用來存取 Bing 廣告 API 的開發人員令牌。

如需詳細資訊 ,請參閱取得開發人員令牌
string
密碼 此元素會保留供內部使用,並會從未來的 API 版本中移除。 您必須使用 AuthenticationToken 元素來設定用戶認證。 string
UserName 此元素會保留供內部使用,並會從未來的 API 版本中移除。 您必須使用 AuthenticationToken 元素來設定用戶認證。 string

Response 元素

UpdateClientLinksResponse 物件會定義服務作業響應的主體標頭元素。 這些元素的傳回順序與 回應SOAP中所示的順序相同。

回應本文專案

元素 描述 資料類型
OperationErrors 服務作業失敗的一或多個原因清單,且未新增任何客戶端連結。 OperationError 陣
PartialErrors OperationError 清單的數位,其中包含未成功新增之任何用戶端鏈接的詳細數據。

結果會以與要求的用戶端連結對應的相同順序傳回。 第一個維度清單元素的數目等於要求的用戶端連結計數。 針對成功新增的用戶端鏈接,對應索引處的 OperationError 元素為 Null。
OperationError 陣

回應標頭元素

元素 描述 資料類型
TrackingId 包含 API 呼叫詳細數據的記錄項目識別碼。 string

要求SOAP

此範本是由工具所產生,用來顯示SOAP要求的主體標頭元素順序。 如需可搭配此服務作業使用的支援類型,請參閱上述 的要求本文項目 參考。

<s:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header xmlns="https://bingads.microsoft.com/Customer/v13">
    <Action mustUnderstand="1">UpdateClientLinks</Action>
    <AuthenticationToken i:nil="false">ValueHere</AuthenticationToken>
    <DeveloperToken i:nil="false">ValueHere</DeveloperToken>
  </s:Header>
  <s:Body>
    <UpdateClientLinksRequest xmlns="https://bingads.microsoft.com/Customer/v13">
      <ClientLinks xmlns:e277="https://bingads.microsoft.com/Customer/v13/Entities" i:nil="false">
        <e277:ClientLink>
          <e277:Type i:nil="false">ValueHere</e277:Type>
          <e277:ClientEntityId i:nil="false">ValueHere</e277:ClientEntityId>
          <e277:ClientEntityNumber i:nil="false">ValueHere</e277:ClientEntityNumber>
          <e277:ClientEntityName i:nil="false">ValueHere</e277:ClientEntityName>
          <e277:ManagingCustomerId i:nil="false">ValueHere</e277:ManagingCustomerId>
          <e277:ManagingCustomerNumber i:nil="false">ValueHere</e277:ManagingCustomerNumber>
          <e277:ManagingCustomerName i:nil="false">ValueHere</e277:ManagingCustomerName>
          <e277:Note i:nil="false">ValueHere</e277:Note>
          <e277:Name i:nil="false">ValueHere</e277:Name>
          <e277:InviterEmail i:nil="false">ValueHere</e277:InviterEmail>
          <e277:InviterName i:nil="false">ValueHere</e277:InviterName>
          <e277:InviterPhone i:nil="false">ValueHere</e277:InviterPhone>
          <e277:IsBillToClient i:nil="false">ValueHere</e277:IsBillToClient>
          <e277:StartDate i:nil="false">ValueHere</e277:StartDate>
          <e277:Status i:nil="false">ValueHere</e277:Status>
          <e277:SuppressNotification>ValueHere</e277:SuppressNotification>
          <e277:LastModifiedDateTime>ValueHere</e277:LastModifiedDateTime>
          <e277:LastModifiedByUserId>ValueHere</e277:LastModifiedByUserId>
          <e277:Timestamp i:nil="false">ValueHere</e277:Timestamp>
          <e277:ForwardCompatibilityMap xmlns:e278="http://schemas.datacontract.org/2004/07/System.Collections.Generic" i:nil="false">
            <e278:KeyValuePairOfstringstring>
              <e278:key i:nil="false">ValueHere</e278:key>
              <e278:value i:nil="false">ValueHere</e278:value>
            </e278:KeyValuePairOfstringstring>
          </e277:ForwardCompatibilityMap>
          <e277:CustomerLinkPermission i:nil="false">ValueHere</e277:CustomerLinkPermission>
        </e277:ClientLink>
      </ClientLinks>
    </UpdateClientLinksRequest>
  </s:Body>
</s:Envelope>

回應 SOAP

此範本是由工具所產生,用來顯示SOAP回應的 主體標頭 元素順序。

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header xmlns="https://bingads.microsoft.com/Customer/v13">
    <TrackingId d3p1:nil="false" xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance">ValueHere</TrackingId>
  </s:Header>
  <s:Body>
    <UpdateClientLinksResponse xmlns="https://bingads.microsoft.com/Customer/v13">
      <OperationErrors xmlns:e279="https://bingads.microsoft.com/Customer/v13/Exception" d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">
        <e279:OperationError>
          <e279:Code>ValueHere</e279:Code>
          <e279:Details d4p1:nil="false">ValueHere</e279:Details>
          <e279:Message d4p1:nil="false">ValueHere</e279:Message>
        </e279:OperationError>
      </OperationErrors>
      <PartialErrors xmlns:e280="https://bingads.microsoft.com/Customer/v13/Exception" d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">
        <e280:ArrayOfOperationError>
          <e280:OperationError>
            <e280:Code>ValueHere</e280:Code>
            <e280:Details d4p1:nil="false">ValueHere</e280:Details>
            <e280:Message d4p1:nil="false">ValueHere</e280:Message>
          </e280:OperationError>
        </e280:ArrayOfOperationError>
      </PartialErrors>
    </UpdateClientLinksResponse>
  </s:Body>
</s:Envelope>

程序代碼語法

範例語法可以與 Bing 廣告 SDK 搭配使用。 如需更多範例,請參閱 Bing 廣告 API 程式代碼範 例。

public async Task<UpdateClientLinksResponse> UpdateClientLinksAsync(
	IList<ClientLink> clientLinks)
{
	var request = new UpdateClientLinksRequest
	{
		ClientLinks = clientLinks
	};

	return (await CustomerManagementService.CallAsync((s, r) => s.UpdateClientLinksAsync(r), request));
}
static UpdateClientLinksResponse updateClientLinks(
	ArrayOfClientLink clientLinks) throws RemoteException, Exception
{
	UpdateClientLinksRequest request = new UpdateClientLinksRequest();

	request.setClientLinks(clientLinks);

	return CustomerManagementService.getService().updateClientLinks(request);
}
static function UpdateClientLinks(
	$clientLinks)
{

	$GLOBALS['Proxy'] = $GLOBALS['CustomerManagementProxy'];

	$request = new UpdateClientLinksRequest();

	$request->ClientLinks = $clientLinks;

	return $GLOBALS['CustomerManagementProxy']->GetService()->UpdateClientLinks($request);
}
response=customermanagement_service.UpdateClientLinks(
	ClientLinks=ClientLinks)

需求

服務: CustomerManagementService.svc v13
命名空間: https://bingads.microsoft.com/Customer/v13