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

# PFAccountManagementLinkGoogleAccountRequest

> PFAccountManagementLinkGoogleAccountRequest 数据模型。使用 Google 登录来获取 Google OAuth 2.0 凭据以完成 Google 登录。

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

## 语法

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

### 成员

**`customTags`**   [PFStringDictionaryEntry](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pftypes/structs/pfstringdictionaryentry.md) const\*\
*may be nullptr*

（可选）与请求关联的可选自定义标记（例如构建版本号、外部跟踪标识符等）。

**`customTagsCount`**   uint32\_t

customTags 的计数

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

（可选）如果另一个用户已链接到该账号，则取消该用户的链接并重新链接。如果当前用户已链接，则同时链接两个账号。

**`serverAuthCode`**   const char\*\
*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 成员](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members.md)


## Related topics

- [PFAccountManagementClientLinkGoogleAccountAsync](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientlinkgoogleaccountasync.md)
- [服务 C API 概览 - PFAccountManagementTypes.h](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members.md)
- [Link Google Account](https://docs.xbox.com/api-reference/account-management/link-google-account.md)
- [PFAccountManagementLinkGooglePlayGamesServicesAccountRequest](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementlinkgoogleplaygamesservicesaccountrequest.md)
- [Link Google Play Games Services Account](https://docs.xbox.com/api-reference/account-management/link-google-play-games-services-account.md)
