• Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums

brainCloudAdmin

brainCloud personnel

Private

Posts


    Question about adding Items/Bundles to a Promotion via Cloud Code API
  • johnhJ johnh

    @moondory77

    Regarding your question: "Has the LiveOps feature been removed or deprecated? I can no longer find any documentation for it, and it seems to be missing from the dashboard as well."

    I am not 100% sure which feature you are referring to. But maybe you are referring to a feature in our upcoming 6.0 release?

    In brainCloud6.0, we will be moving Promotions and Redemptions to a new Braincloud Category called Live Ops.

    24292fca-d9f9-41e0-8760-f13a71891da0-image.png

    We will also be introducing a new feature called Campaigns. (In some previews we may have described it as Live Ops Campaigns).

    Campaigns are a major showcase of the 6.0 release and will enable Scheduled Limited-Time Game Modes and A/B Scenarios (w/ built-in promotions)

    Additional features being released in 6.0 will compliment the development of Promotions and Campaigns making them incredibly easy to develop and powerful.

    Could it be possible you saw a sneak peek at the Live Ops Campaigns feature?

    Let me know,
    Thanks
    JH


  • Question about adding Items/Bundles to a Promotion via Cloud Code API
  • johnhJ johnh

    @moondory77 Hello,

    Regarding your question: " I can easily attach Items and Bundles to it. I am wondering if there is a way to achieve this programmatically via a Cloud Code API?"
    The calls you referred to (SysCreatePromotion and SysUpdatePromotion) can be used to attach Items and Bundles to promotions.

    Could you to check the example script in API explorer to see if it provides what you need?

    c5757b80-d160-4384-b4d1-830f5d10bfc0-image.png

    The devs use the API Explorer to test the new/updated calls during development - and so the JSON there is always up-to-date.


  • Questions about brainCloud Friends and Social Leaderboard behavior
  • J JasonL

    Hi @gyutaelee ,

    Thanks for the detailed questions.

    1. Friend Relationship Direction - Yes, bidirectional

    • AddFriends: When user A calls AddFriends([B]), both A and B see each other in ListFriends("brainCloud")
    • Both A and B will appear in each other's GetSocialLeaderboard results (if they have scores)
    • RemoveFriends: Removes the relationship from both users atomically

    2. Idempotency - Yes, both are idempotent

    • Calling AddFriends([B]) when already friends: No-op, no error thrown (skips DB write)
    • Calling RemoveFriends([B]) when not friends: No-op, no error thrown

    3. Consistency and Caching - Immediate

    • Friend changes are persisted immediately to the database (no write-behind caching)
    • ListFriends("brainCloud") and GetSocialLeaderboard reflect changes immediately after AddFriends/RemoveFriends
    • No eventual consistency or caching delay

    4. Friend Count Limits - No hard cap

    • No code-enforced limit on brainCloud friends per user
    • Practical consideration: Friend IDs stored as array on UserProfile; very large arrays (>10K) may impact read/write performance

    5. GetSocialLeaderboard Behavior - Returns all friends + self + pacers, no limit

    • Returns all recognized friends + self + pacers
    • No hidden maximum result count
    • Pacers are included (if leaderboard has pacers configured)
    • Warning: Response payload grows linearly with friend count

    6. Recommended API for Top-N - Yes, use GetMultiSocialLeaderboard

    • GetMultiSocialLeaderboard with a single leaderboard ID is a correct approach for top-N results
    • leaderboardResultCount is applied after social filtering and score sorting
    • leaderboardResultCount is capped by maxMultipleLeaderboardScoreLimit app property (default 10, can be raised in app-basis)
    • Preferred over GetSocialLeaderboard for top-N because it has built-in truncation

    7. Social Leaderboard Pagination - Not supported

    • No GetSocialLeaderboardPage API exists (only GetGlobalLeaderboardPage for global leaderboards)
    • Social leaderboards always return the full friend set (potentially truncated by leaderboardResultCount only in the multi variant)
    • I will forward your pagination request for team review

    8. Billing and API Counts - 1 API call per request

    • GetSocialLeaderboard = 1 API call regardless of friends/entries returned
    • GetMultiSocialLeaderboard = 1 API call even with multiple leaderboards
    • AddFriends/RemoveFriends = 1 API call even though they modify both users' profiles

    9. Recommended Usage - Yes, your design aligns perfectly


  • Question about using unique indexes for Custom Entities
  • J JasonL

    Hi @gyutaelee,
    Currently, brainCloud blocks unique indexes on all custom collections as a blanket safeguard. The check happens unconditionally before the system even evaluates whether your collection is owned or sharded, so it rejects the unique option with that error.

    We can manually add the unique index for your FOLLOW collection on our end. Please send us a request with:

    1. Your appId
    2. The entityType (is it FOLLOW only?)
    3. The field name(s) that need uniqueness
    4. The desired index name (e.g., test_index)

    Once we receive your request, we'll add the uniqueness constraint for you directly.


  • Automated Promotion not associated for users already in target segment
  • Paul WinterhalderP Paul Winterhalder

    Ah - great to hear @jongdae-won . Thanks for the update!


  • Automated Promotion not associated for users already in target segment
  • Paul WinterhalderP Paul Winterhalder

    That patch has been deployed @jongdae-won - give it a try!


  • Automated Promotion not associated for users already in target segment
  • Paul WinterhalderP Paul Winterhalder

    Hi @jongdae-won,

    We have a patch being deployed today that will allow you to create promotions that will allow you to target both existing and new members of a segment. We plan to have that deployed by the end of the day.

    2026-05-26_11-46-14.png

    We hope that this will address the primary issue.

    Your latest message seems to indicate that even new users to a segment are not getting the promotion offer... that does seem odd. I will point out that segments only get refreshed nightly and upon login - so if a new stat meant that they should be added to a new segment - the new segment and/or promotion wouldn't be refreshed until they logged back in again...

    Unless... your app is making this call before it brings up the store:
    https://docs.braincloudservers.com/api/capi/appstore/refreshpromotions

    Could that be [that specific] issue?

    In any event - we are hopeful that the patch should address your primary concern. We'll post here once it has been deployed.

    Paul.


  • Admin Billing API request
  • johnhJ johnh

    Added the additional details to 13660


  • Feature Request / Question: Selective Promotion Exclusion During App Deployment
  • johnhJ johnh

    @gyutaelee I will investigate the Per Promotion Deployment option you requested.

    As I was working on this I thought there may be a workaround for you that you would like. This could work for your team with minimal effort and on your current version of brainCloud portal.

    My solution hides the promotion so that only users you flag as TESTERS will see it.

    This would let your PROD testers gain the benefit of the no-ads promotion without disrupting your monetization.

    Within Automatic Promotions, there is the option to Target members of any of these segments.

    cb1f4861-16f8-432a-bb22-4b71dc0b0ce1-image.png

    Within Scheduled Promotions, there is the option to Offer this promo to: Only users in:

    2a5f3a28-91ba-4f2c-bb1c-5a2c04ead1e5-image.png

    Advancing to App > Design > Segmentation > Segments we can create a segment that filters to players that are flagged as Testers.

    59f8d7bc-3640-450f-ab67-086af9b8acdd-image.png

    Now, segments need to have at least one more criteria, so let's choose something like has logged in at least 1 time.

    d86e5f6d-ded8-4c7e-ab26-1c07f9813f0e-image.png

    Save this Segment

    IMPORTANT! Add the segment to your Promotion
    This will limit the promo to only eligible users. Noone else sees it!
    7aca6582-cff3-4469-ae98-6339b341ba06-image.png

    Next we will need to flag some users as Testers. For a DEV app, the easiest way to do this is to go to the User Browser, RECENTLY ACTIVE and pick players (your testers) with recent activity.

    ec366981-f641-4833-87f2-64798766555c-image.png

    GO TO USER to bring up their user summary and check the IsTester checkbox.
    d1094afd-ca63-4ce6-8070-477c879fb1d4-image.png

    Testers get a special icon
    e02b71bc-db5b-4127-a6a7-1528697aee6f-image.png

    Next, we will return to Segments.

    Segments are automatically processed overnight, but you can Refresh Segments immediately with the REFRESH SEGMENTS button. Please note: refreshing segments processes every player so this process can take a while and preferably left to low-traffic times of day.

    e306d8e0-553d-475c-a780-43fbed29a271-image.png

    After processing completes, we can check the cohort of testers by returning to the User Browser choosing BROWSE, and Browse Within A Segment.

    43a330f6-e572-4b0b-a8ca-c0d631e63240-image.png

    These are my Testers, so everything worked.
    a8b56bbb-536c-447b-9e7d-a8d8236ff165-image.png

    Since only testers are eligible for the promotion, you are free to deploy it to PROD without affecting your monetization. And the PROD Testers you select will be able to gain the workflow benefit of no ads.

    Could you let me know if this solution solves your problem?

    Let me know if you have any questions,
    Regards
    John
    -Design


  • Admin Billing API request
  • johnhJ johnh

    Case 13660 - investigating

Member List

R Roger Masse
Paul WinterhalderP Paul Winterhalder
C Claire Raby
C Corey Clarke
Mark DouthwrightM Mark Douthwright
A adamg
bitAlexiB bitAlexi
Hoar JoanneH Hoar Joanne
johnhJ johnh
V Vasanthan Rajendran
C Cody Melvin
Scott SimpsonS Scott Simpson
R Rick McMullin
Pierre ProulxP Pierre Proulx
Michael CostaM Michael Costa
N Nick Haidar
Franco LagoF Franco Lago
J JasonL
Greg MouldsG Greg Moulds
H Holly Leung
  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users