diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2017-04-13 13:52:32 +0300 |
---|---|---|
committer | Ilya Grechuhin <i.grechuhin@gmail.com> | 2017-04-13 15:48:12 +0300 |
commit | d5ea81c371213ad762aa2e1f751c5f5ce5f6d3b0 (patch) | |
tree | f753a2ab7118c23b1a8ad586423f4a5a756607d9 /partners_api/mopub_ads.cpp | |
parent | 0485d4a10aecc3ba78a36bb566acc058719d57f8 (diff) |
mopub core
Diffstat (limited to 'partners_api/mopub_ads.cpp')
-rw-r--r-- | partners_api/mopub_ads.cpp | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/partners_api/mopub_ads.cpp b/partners_api/mopub_ads.cpp new file mode 100644 index 0000000000..e7162b6d03 --- /dev/null +++ b/partners_api/mopub_ads.cpp @@ -0,0 +1,78 @@ +#include "partners_api/mopub_ads.hpp" + +namespace +{ +#if defined(OMIM_OS_IPHONE) + auto const kTourismPlacementId = "29c1bc85b46442b5a370552916aa6822"; + auto const kNavigationPlacementId = "00af522ea7f94b77b6c671c7e1b13c3f"; + auto const kNonTourismPlacementId = "67ebcbd0af8345f18cccfb230ca08a17"; +#else + auto const kTourismPlacementId = "d298f205fb8a47aaafb514d2b5b8cf55"; + auto const kNavigationPlacementId = "fbd54c31a20347a6b5d6654510c542a4"; + auto const kNonTourismPlacementId = "94b8d70370a643929aa4c8c764d25e5b"; +#endif +} // namespace + +namespace ads +{ +Mopub::Mopub() +{ + AppendEntry({{"amenity", "cafe"}, // food + {"amenity", "fast_food"}, + {"amenity", "restaurant"}, + {"amenity", "bar"}, + {"amenity", "pub"}, + {"shop"}, // shops + {"amenity", "marketplace"}, + {"tourism", "hotel"}, // hotels + {"tourism", "hostel"}, + {"tourism", "motel"}, + {"tourism", "apartment"}, + {"tourism", "resort"}, + {"tourism", "chalet"}, + {"tourism", "zoo"}, // sights + {"tourism", "artwork"}, + {"tourism", "information"}, + {"tourism", "attraction"}, + {"tourism", "viewpoint"}, + {"tourism", "museum"}, + {"amenity", "fountain"}, + {"amenity", "townhall"}, + {"historic"}, + {"amenity", "cinema"}, // entertainment + {"amenity", "brothel"}, + {"amenity", "casino"}, + {"amenity", "nightclub"}, + {"amenity", "theatre"}, + {"boundary", "national_park"}, + {"leisure"}}, + kTourismPlacementId); + + AppendEntry({{"building"}, // building + {"place"}, // large toponyms + {"aerialway"}, // city transport + {"highway", "bus_stop"}, + {"highway", "speed_camera"}, + {"public_transport"}, + {"aeroway"}, // global transport + {"railway"}, + {"man_made", "pier"}}, + kNavigationPlacementId); + + AppendEntry({{"amenity", "dentist"}, // health + {"amenity", "doctors"}, + {"amenity", "clinic"}, + {"amenity", "hospital"}, + {"amenity", "pharmacy"}, + {"amenity", "veterinary"}, + {"amenity", "bank"}, // finansial + {"amenity", "atm"}, + {"amenity", "bureau_de_change"}}, + kNonTourismPlacementId); +} + +std::string Mopub::GetBannerIdForOtherTypes() const +{ + return kNonTourismPlacementId; +} +} // namespace ads |