question

Mehmet Aydin Unlu avatar image
Mehmet Aydin Unlu asked

GetAdPlacements() ResultCallback returns empty AdPlacements[]

Hi, i am trying to get AdPlacements info with Unity Client.

This is my RewardedAd definition.

And this is my request code.

Actually the response is success but all the details are empty.

var request = new GetAdPlacementsRequest()
{
AppId = "testId"
};

PlayFabClientAPI.GetAdPlacements(request, resultCallback => { List<AdPlacementDetails> details = resultCallback.AdPlacements; Debug.Log("Details: " + details.Count); }, errorCallback => { Debug.Log(errorCallback.ErrorDetails); });
img-1.png (199.1 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Seth Du avatar image
Seth Du answered

I have reproduced this issue when I leave the Rewards unconfigured and details. The count returns 0.

However, If I configure at least one reward, the result will return the Placement details normally. Would you add the reward and give it another try?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.