Google. Maps. PlayableLocationsService
The entry point for using Playable Locations.
Summary
Inheritance
Inherits from: MonoBehaviour
Public types |
|
---|---|
BadLocationReason{
|
enum Reason for reporting a bad playable location. |
Public functions |
|
---|---|
ReportBadPoint(string placeId, BadLocationReason reason, string reasonDetails, ReportBadPointStatusCallback statusCallback)
|
void
Submits a bad place report to the server.
|
ReportInteractedPlace(int gameObjectType, string placeId)
|
void
Reports that the user interacted with the game object placed at this playable location.
|
ReportPresentedPlace(int gameObjectType, string placeId)
|
void
Reports that a game object placed at this playable location was presented to the user.
|
Classes |
|
---|---|
Google. |
Encapsulates the status of the completed request for submitting a bad place report. |
Public types
BadLocationReason
BadLocationReason
Reason for reporting a bad playable location.
Public functions
ReportBadPoint
void ReportBadPoint( string placeId, BadLocationReason reason, string reasonDetails, ReportBadPointStatusCallback statusCallback )
Submits a bad place report to the server.
After the request finishes, the ReportBadPointStatus parameter of the callback is populated with information about whether the request succeeded. Internally, the network requests are retried multiple times in case of failures.
Note:reasonDetails
must be non-empty.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
ReportInteractedPlace
void ReportInteractedPlace( int gameObjectType, string placeId )
Reports that the user interacted with the game object placed at this playable location.
For more information about gameObjectType
, see ReportPresentedPlace().
Details | |||||
---|---|---|---|---|---|
Parameters |
|
ReportPresentedPlace
void ReportPresentedPlace( int gameObjectType, string placeId )
Reports that a game object placed at this playable location was presented to the user.
Google uses the information logged in ReportPresentedPlace
and ReportInteractedPlace
to improve the quality of playable locations. This is done by comparing how often game objects placed at different playable locations are visited by players.
Because different game object types (for example, monster and powerup) are expected to be visited with different frequencies, you must assign a gameObjectType
to each playable location (for example: monster=0, powerup=1). This is used to bucket reports into comparable events. There should be only a small number of unique game object types—ideally no more than 10.
You can call this method repeatedly with the same Place IDs. The SDK only reports places to the server if they haven't been reported before, or if the player interacted with the game object placed at the playable location since the last report.
Note: You are free to define what presented means, as long as you use that definition consistently. One possibility is to report all playable locations the lie within 500 meters of the player.
Details | |||||
---|---|---|---|---|---|
Parameters |
|