> ## 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 OAuth 2.0 凭据来完成 Google Play Games 登录。

PFAccountManagementLinkGooglePlayGamesServicesAccountRequest 数据模型。使用设备上适用于 Android API 的 Google Play Games 登录来获取 Google OAuth 2.0 凭据，然后将其传递给此 API，从而完成 Google Play Games 登录。

## 语法

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

### 成员

**`customTags`**   [PFStringDictionaryEntry](/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*

通过在客户端调用 requestServerSideAccess() ([https://developers.google.com/games/services/android/signin](https://developers.google.com/games/services/android/signin)) Google Play Games 客户端 API 而获得的 OAuth 2.0 服务器身份验证代码。

## 要求

**头文件：** PFAccountManagementTypes.h

## 另请参阅

[PFAccountManagementTypes 成员](/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members)


## Related topics

- [PFAccountManagementClientLinkGooglePlayGamesServicesAccountAsync](/zh-CN/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientlinkgoogleplaygamesservicesaccountasync.md)
- [服务 C API 概览 - PFAccountManagementTypes.h](/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members.md)
- [PFAccountManagementLinkGoogleAccountRequest](/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementlinkgoogleaccountrequest.md)
- [PFAccountManagementUnlinkGooglePlayGamesServicesAccountRequest](/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementunlinkgoogleplaygamesservicesaccountrequest.md)
- [PFAccountManagementClientUnlinkGooglePlayGamesServicesAccountAsync](/zh-CN/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientunlinkgoogleplaygamesservicesaccountasync.md)
