> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFAccountManagementLinkGoogleAccountRequest

> PFAccountManagementLinkGoogleAccountRequest 資料模型。Google 登入的完成方式是：使用 Google 登入取得 Google OAuth 2.0 認證。

PFAccountManagementLinkGoogleAccountRequest 資料模型。Google 登入的完成方式是：在裝置上使用 Google sign-in for Android API 取得 Google OAuth 2.0 認證，並將其傳遞至此 API。

## 語法

```cpp theme={null}
typedef struct PFAccountManagementLinkGoogleAccountRequest {  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    bool const* forceLink;  
    const char* serverAuthCode;  
} PFAccountManagementLinkGoogleAccountRequest;  
```

### 成員

**`customTags`**   [PFStringDictionaryEntry](/zh-TW/services/playfab/api-references/c/pftypes/structs/pfstringdictionaryentry) const\*<br />*may be nullptr*

（選擇性）與要求相關聯的選擇性自訂標籤（例如組建編號、外部追蹤識別碼等）。

**`customTagsCount`**   uint32\_t

customTags 的計數

**`forceLink`**   bool const\*<br />*may be nullptr*

（選擇性）如果已有其他使用者連結至此帳戶，則取消連結該使用者並重新連結。如果目前使用者已連結，則連結兩個帳戶。

**`serverAuthCode`**   const char\*<br />*is null-terminated*

（選擇性）在用戶端上透過從 Google Play 為使用者呼叫 getServerAuthCode() ([https://developers.google.com/identity/sign-in/android/offline-access](https://developers.google.com/identity/sign-in/android/offline-access)) 所取得的伺服器驗證碼。

## 需求

**標頭：** PFAccountManagementTypes.h

## 另請參閱

[PFAccountManagementTypes 成員](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members)


## Related topics

- [PFAccountManagementClientLinkGoogleAccountAsync](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientlinkgoogleaccountasync.md)
- [服務 C API 概觀 - PFAccountManagementTypes.h](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members.md)
- [Link Google Account](/api-reference/account-management/link-google-account.md)
- [PFAccountManagementLinkGooglePlayGamesServicesAccountRequest](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementlinkgoogleplaygamesservicesaccountrequest.md)
- [PFAccountManagementClientLinkGooglePlayGamesServicesAccountAsync](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientlinkgoogleplaygamesservicesaccountasync.md)
