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

# PFPlayerProfileModel

> PFPlayerProfileModel data model.

PFPlayerProfileModel data model.

## Syntax

```cpp theme={null}
typedef struct PFPlayerProfileModel {  
    PFAdCampaignAttributionModel const* adCampaignAttributions;  
    uint32_t adCampaignAttributionsCount;  
    const char* avatarUrl;  
    time_t const* bannedUntil;  
    PFContactEmailInfoModel const* contactEmailAddresses;  
    uint32_t contactEmailAddressesCount;  
    time_t const* created;  
    const char* displayName;  
    const char* const* experimentVariants;  
    uint32_t experimentVariantsCount;  
    time_t const* lastLogin;  
    PFLinkedPlatformAccountModel const* linkedAccounts;  
    uint32_t linkedAccountsCount;  
    PFLocationModel const* locations;  
    uint32_t locationsCount;  
    PFMembershipModel const* memberships;  
    uint32_t membershipsCount;  
    PFLoginIdentityProvider const* origination;  
    const char* playerId;  
    const char* publisherId;  
    PFPushNotificationRegistrationModel const* pushNotificationRegistrations;  
    uint32_t pushNotificationRegistrationsCount;  
    PFStatisticModel const* statistics;  
    uint32_t statisticsCount;  
    PFTagModel const* tags;  
    uint32_t tagsCount;  
    const char* titleId;  
    uint32_t const* totalValueToDateInUSD;  
    PFValueToDateModel const* valuesToDate;  
    uint32_t valuesToDateCount;  
} PFPlayerProfileModel;  
```

### Members

**`adCampaignAttributions`**   [PFAdCampaignAttributionModel](/services/playfab/api-references/c/pftypes/structs/pfadcampaignattributionmodel) const\*\
*may be nullptr*

(Optional) List of advertising campaigns the player has been attributed to.

**`adCampaignAttributionsCount`**   uint32\_t

Count of adCampaignAttributions

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

(Optional) URL of the player's avatar image.

**`bannedUntil`**   time\_t const\*\
*may be nullptr*

(Optional) If the player is currently banned, the UTC Date when the ban expires.

**`contactEmailAddresses`**   [PFContactEmailInfoModel](/services/playfab/api-references/c/pftypes/structs/pfcontactemailinfomodel) const\*\
*may be nullptr*

(Optional) List of all contact email info associated with the player account.

**`contactEmailAddressesCount`**   uint32\_t

Count of contactEmailAddresses

**`created`**   time\_t const\*\
*may be nullptr*

(Optional) Player record created.

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

(Optional) Player display name.

**`experimentVariants`**   const char\* const\*\
*may be nullptr*

(Optional) List of experiment variants for the player. Note that these variants are not guaranteed to be up-to-date when returned during login because the player profile is updated only after login. Instead, use the LoginResult.TreatmentAssignment property during login to get the correct variants and variables.

**`experimentVariantsCount`**   uint32\_t

Count of experimentVariants

**`lastLogin`**   time\_t const\*\
*may be nullptr*

(Optional) UTC time when the player most recently logged in to the title.

**`linkedAccounts`**   [PFLinkedPlatformAccountModel](/services/playfab/api-references/c/pftypes/structs/pflinkedplatformaccountmodel) const\*\
*may be nullptr*

(Optional) List of all authentication systems linked to this player account.

**`linkedAccountsCount`**   uint32\_t

Count of linkedAccounts

**`locations`**   [PFLocationModel](/services/playfab/api-references/c/pftypes/structs/pflocationmodel) const\*\
*may be nullptr*

(Optional) List of geographic locations from which the player has logged in to the title.

**`locationsCount`**   uint32\_t

Count of locations

**`memberships`**   [PFMembershipModel](/services/playfab/api-references/c/pftypes/structs/pfmembershipmodel) const\*\
*may be nullptr*

(Optional) List of memberships for the player, along with whether are expired.

**`membershipsCount`**   uint32\_t

Count of memberships

**`origination`**   [PFLoginIdentityProvider](/services/playfab/api-references/c/pftypes/enums/pfloginidentityprovider) const\*\
*may be nullptr*

(Optional) Player account origination.

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

(Optional) PlayFab player account unique identifier.

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

(Optional) Publisher this player belongs to.

**`pushNotificationRegistrations`**   [PFPushNotificationRegistrationModel](/services/playfab/api-references/c/pftypes/structs/pfpushnotificationregistrationmodel) const\*\
*may be nullptr*

(Optional) List of configured end points registered for sending the player push notifications.

**`pushNotificationRegistrationsCount`**   uint32\_t

Count of pushNotificationRegistrations

**`statistics`**   [PFStatisticModel](/services/playfab/api-references/c/pftypes/structs/pfstatisticmodel) const\*\
*may be nullptr*

(Optional) List of leaderboard statistic values for the player.

**`statisticsCount`**   uint32\_t

Count of statistics

**`tags`**   [PFTagModel](/services/playfab/api-references/c/pftypes/structs/pftagmodel) const\*\
*may be nullptr*

(Optional) List of player's tags for segmentation.

**`tagsCount`**   uint32\_t

Count of tags

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

(Optional) Title ID this player profile applies to.

**`totalValueToDateInUSD`**   uint32\_t const\*\
*may be nullptr*

(Optional) Sum of the player's purchases made with real-money currencies, converted to US dollars equivalent and represented as a whole number of cents (1/100 USD). For example, 999 indicates nine dollars and ninety-nine cents.

**`valuesToDate`**   [PFValueToDateModel](/services/playfab/api-references/c/pftypes/structs/pfvaluetodatemodel) const\*\
*may be nullptr*

(Optional) List of the player's lifetime purchase totals, summed by real-money currency.

**`valuesToDateCount`**   uint32\_t

Count of valuesToDate

## Requirements

**Header:** PFTypes.h

## See also

[PFTypes members](/services/playfab/api-references/c/pftypes/pftypes_members)


## Related topics

- [PFAccountManagementGetPlayerProfileResult](/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementgetplayerprofileresult.md)
- [Services C API overview - PFTypes.h](/services/playfab/api-references/c/pftypes/pftypes_members.md)
- [PFGetPlayerCombinedInfoResultPayload](/services/playfab/api-references/c/pftypes/structs/pfgetplayercombinedinforesultpayload.md)
- [PFFriendsFriendInfo](/services/playfab/api-references/c/pffriendstypes/structs/pffriendsfriendinfo.md)
- [PFSegmentsPlayerProfile](/services/playfab/api-references/c/pfsegmentstypes/structs/pfsegmentsplayerprofile.md)
