question

davidrabineau avatar image
davidrabineau asked

Empty AdPlacement[] when calling GetAdPlacements.

After setting up Ad Placements (following the ironSource/Playfab tutorial) in the Ads section and upon calling GetAdPlacements in the Client API, we're getting an empty array from the server :

{
    "code": 200,
    "status": "OK",
    "data": {
        "AdPlacements": []
    }
}

It may be worth noting that those Placements do not have any rewards attached to them, but the GetAdPlacement API documentation seems to say that they are not mandatory to work.

Is there anything we're missing in order to get data with this API call ?

apis
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

·
brendan avatar image
brendan answered

Actually, I'm finding that it returns that regardless of whether the placement has items it returns or not. Looks like a regression (granted, on a beta feature). I've opened a bug on this for the team. We're talking about making this a non-beta feature soon, so this should be fixed quickly.

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.