I'm building a google maps API to get all the places from a certain US state, and I don't undestand how the google API pricing work. I've read the pricing documentation but, after reading the API documentatin I'm confused. How do I choose the type of request result I want (Basic v Advanced v Preferred), in the API as a parameter?
As it says in the pricing documentation you linked:
Note: If you select any fields from the Nearby Search (Advanced) SKU, then you are billed at that rate. If you select any fields from the Nearby Search (Preferred) SKU, then you are billed at that rate.
If you include any of the fields from a higher level, your call is billed at that level. So there is no explicit choice of level, you have to check which level the required fields belong to.