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

# PFAuthenticationServerLoginWithAndroidDeviceIDRequest

> Settings.Secure.ANDROID_ID などの Android デバイス ID でサインインするためのサーバー リクエスト データ。CreateAccount を指定すると、新しい PlayFab アカウントが作成されてリンクされます。

PFAuthenticationServerLoginWithAndroidDeviceIDRequest データ モデル。Android デバイスでは、このブログ記事 ([http://android-developers.blogspot.com/2011/03/identifying-app-installations.html](http://android-developers.blogspot.com/2011/03/identifying-app-installations.html)) で説明されているように、AndroidDeviceId として Settings.Secure.ANDROID\_ID を使用することをお勧めします。この識別子の詳細については、Android のドキュメント ([http://developer.android.com/reference/android/provider/Settings.Secure.html](http://developer.android.com/reference/android/provider/Settings.Secure.html)) を参照してください。ユーザーがその Android デバイスで初めてサインインし、CreateAccount が true に設定されている場合、新しい PlayFab アカウントが作成され、Android デバイス ID にリンクされます。この場合、PlayFab アカウントにはメールアドレスやユーザー名は関連付けられません。それ以外の場合、Android デバイスにリンクされた PlayFab アカウントがなければ、その旨を示すエラーが返されるため、タイトルはユーザーに PlayFab アカウントの作成を案内できます。この種類のデバイスは 1 つのユーザー アカウントに複数リンクできますが、ユーザーのアカウント情報に反映されるのは、最後にログインに使用された (または最後にリンクされた) デバイスのみであることに注意してください。今後のリリースで、リンクされたすべてのデバイスを表示するように更新する予定です。

## 構文

```cpp theme={null}
typedef struct PFAuthenticationServerLoginWithAndroidDeviceIDRequest {  
    const char* androidDevice;  
    const char* androidDeviceId;  
    bool createAccount;  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    PFGetPlayerCombinedInfoRequestParams const* infoRequestParameters;  
    const char* OS;  
} PFAuthenticationServerLoginWithAndroidDeviceIDRequest;  
```

### メンバー

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

(オプション) ユーザーのデバイスの具体的なモデル。

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

ユーザーのデバイスの Android デバイス識別子。

**`createAccount`**   bool

この ID に現在リンクされている PlayFab アカウントがない場合、自動的に PlayFab アカウントを作成します。

**`customTags`**   PFStringDictionaryEntry const\*<br />*may be nullptr*

(オプション) リクエストに関連付けるオプションのカスタム タグ (ビルド番号、外部トレース識別子など)。

**`customTagsCount`**   uint32\_t

customTags の数

**`infoRequestParameters`**   PFGetPlayerCombinedInfoRequestParams const\*<br />*may be nullptr*

(オプション) ユーザーに対して返す情報のフラグ。

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

(オプション) ユーザーのデバイスの具体的なオペレーティング システムのバージョン。

## 要件

**ヘッダー:** PFAuthenticationTypes.h

## 関連項目

[PFAuthenticationTypes のメンバー](/ja-jp/services/playfab/api-references/c/pfauthenticationtypes/pfauthenticationtypes_members)


## Related topics

- [PFAuthenticationServerLoginWithAndroidDeviceIDAsync](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithandroiddeviceidasync.md)
- [PFAuthenticationServerLoginWithAndroidDeviceIDGetResult](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithandroiddeviceidgetresult.md)
- [PFAuthenticationServerLoginWithAndroidDeviceIDGetResultSize](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithandroiddeviceidgetresultsize.md)
- [PFAuthenticationServerLoginWithIOSDeviceIDRequest](/ja-jp/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationserverloginwithiosdeviceidrequest.md)
- [PFAuthenticationServerLoginWithIOSDeviceIDAsync](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithiosdeviceidasync.md)
