> ## 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.

# PFAccountManagementLinkGooglePlayGamesServicesAccountRequest

> PFAccountManagementLinkGooglePlayGamesServicesAccountRequest 資料模型。Google Play Games 登入的完成方式是：取得 Google OAuth 2.0 認證。

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

## 語法

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

### 成員

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

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

**`customTagsCount`**   uint32\_t

customTags 的計數

**`forceLink`**   bool const\*\
*may be nullptr*

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

**`serverAuthCode`**   const char\*\
*is null-terminated*

在用戶端上透過呼叫 Google Play Games 用戶端 API requestServerSideAccess() ([https://developers.google.com/games/services/android/signin](https://developers.google.com/games/services/android/signin)) 所取得的 OAuth 2.0 伺服器驗證碼。

## 需求

**標頭：** PFAccountManagementTypes.h

## 另請參閱

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


## Related topics

- [PFAccountManagementClientLinkGooglePlayGamesServicesAccountAsync](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientlinkgoogleplaygamesservicesaccountasync.md)
- [服務 C API 概觀 - PFAccountManagementTypes.h](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members.md)
- [Link Google Play Games Services Account](/api-reference/account-management/link-google-play-games-services-account.md)
- [PFAccountManagementLinkGoogleAccountRequest](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementlinkgoogleaccountrequest.md)
- [PFAccountManagementUnlinkGooglePlayGamesServicesAccountRequest](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementunlinkgoogleplaygamesservicesaccountrequest.md)
