What do you think it means for a Double to be null in this case, if it's not documented, and if it specifically says in the docs that 0..5 are the valid values ?
It has to be for this purpose, and indeed it can be null. Check your own sample. It's always null when using test-unit-ID.
If null was not planned to be used for this purpose, the type would have been "double" instead of "Double", and a special value would be used for this purpose.
The sample you have should suffice. Just use ad unit ID (and maybe app ID too) that offers to show star rating. Might need real ones.
Since I can't always reproduce it, as you don't offer ad unit IDs that are predictable and they are all random (including of course real ones), you should find one that does have it.
And sadly since test ad unit IDs can fail even loading (and I reported about this), it's even worse to show you on the real app.
So in short, getting a non-null value for starRating is very rare. It would be nice if you could offer easier way to test native ads.
Currently it's random, but it's also very restricted to very specific set of fields that will ever be filled.
Can you please fix the communication here?I keep seeing just "ref" instead of the conversation and links to the forum.There is no context. I can't see what you wrote before, and I can't see what I wrote before.
Each time I get an email, I lose the context. I lose the entire conversation. I need to reach the forum again and find where is what you wrote.
And even when I do write a reply here, I can't attach files to it. I have to first post without files, and then edit it and add them.