forked from organicmaps/organicmaps
placement ids for ios
This commit is contained in:
parent
f433a64407
commit
11d5d9b9fb
2 changed files with 52 additions and 22 deletions
|
@ -5,6 +5,32 @@
|
|||
|
||||
namespace
|
||||
{
|
||||
#if defined(OMIM_OS_IPHONE)
|
||||
auto const kFoodPlacementId = "185237551520383_1425355070841952";
|
||||
auto const kShopsPlacementId = "185237551520383_1425355647508561";
|
||||
auto const kCityTransportPlacementId = "185237551520383_1425356124175180";
|
||||
auto const kGlobalTransportPlacementId = "185237551520383_1425356400841819";
|
||||
auto const kHotelsPlacementId = "185237551520383_1425356560841803";
|
||||
auto const kSightsPlacementId = "185237551520383_1425356720841787";
|
||||
auto const kLargeToponymsPlacementId = "185237551520383_1425356987508427";
|
||||
auto const kHealthPlacementId = "185237551520383_1425357194175073";
|
||||
auto const kFinancialPlacementId = "185237551520383_1425358064174986";
|
||||
auto const kEntertainmentPlacementId = "185237551520383_1425358274174965";
|
||||
auto const kBuildingPlacementId = "185237551520383_1425358410841618";
|
||||
#else
|
||||
auto const kFoodPlacementId = "185237551520383_1384650164912443";
|
||||
auto const kShopsPlacementId = "185237551520383_1384650804912379";
|
||||
auto const kCityTransportPlacementId = "185237551520383_1384651074912352";
|
||||
auto const kGlobalTransportPlacementId = "185237551520383_1387632484614211";
|
||||
auto const kHotelsPlacementId = "185237551520383_1384651324912327";
|
||||
auto const kSightsPlacementId = "185237551520383_1384651734912286";
|
||||
auto const kLargeToponymsPlacementId = "185237551520383_1384652164912243";
|
||||
auto const kHealthPlacementId = "185237551520383_1384652351578891";
|
||||
auto const kFinancialPlacementId = "185237551520383_1384652658245527";
|
||||
auto const kEntertainmentPlacementId = "185237551520383_1384653001578826";
|
||||
auto const kBuildingPlacementId = "185237551520383_1419317661445693";
|
||||
#endif
|
||||
|
||||
using namespace facebook;
|
||||
|
||||
template <typename It>
|
||||
|
@ -28,36 +54,35 @@ namespace facebook
|
|||
{
|
||||
Ads::Ads()
|
||||
{
|
||||
// Food.
|
||||
AppendEntry({{"amenity", "cafe"},
|
||||
{"amenity", "fast_food"},
|
||||
{"amenity", "restaurant"},
|
||||
{"amenity", "bar"},
|
||||
{"amenity", "pub"}},
|
||||
"185237551520383_1384650164912443");
|
||||
// Shops.
|
||||
kFoodPlacementId);
|
||||
|
||||
AppendEntry({{"shop"},
|
||||
{"amenity", "marketplace"}},
|
||||
"185237551520383_1384650804912379");
|
||||
// City Transport.
|
||||
kShopsPlacementId);
|
||||
|
||||
AppendEntry({{"aerialway"},
|
||||
{"highway", "bus_stop"},
|
||||
{"highway", "speed_camera"},
|
||||
{"public_transport"}},
|
||||
"185237551520383_1384651074912352");
|
||||
// Global transport.
|
||||
kCityTransportPlacementId);
|
||||
|
||||
AppendEntry({{"aeroway"},
|
||||
{"railway"},
|
||||
{"man_made", "pier"}},
|
||||
"185237551520383_1387632484614211");
|
||||
// Hotels.
|
||||
kGlobalTransportPlacementId);
|
||||
|
||||
AppendEntry({{"tourism", "hotel"},
|
||||
{"tourism", "hostel"},
|
||||
{"tourism", "motel"},
|
||||
{"tourism", "apartment"},
|
||||
{"tourism", "resort"}},
|
||||
"185237551520383_1384651324912327");
|
||||
// Sights.
|
||||
kHotelsPlacementId);
|
||||
|
||||
AppendEntry({{"tourism", "chalet"},
|
||||
{"tourism", "zoo"},
|
||||
{"tourism", "artwork"},
|
||||
|
@ -69,20 +94,20 @@ Ads::Ads()
|
|||
{"amenity", "theatre"},
|
||||
{"amenity", "townhall"},
|
||||
{"historic"}},
|
||||
"185237551520383_1384651734912286");
|
||||
// Large toponyms.
|
||||
AppendEntry({{"place"}}, "185237551520383_1384652164912243");
|
||||
// Health.
|
||||
kSightsPlacementId);
|
||||
|
||||
AppendEntry({{"place"}}, kLargeToponymsPlacementId);
|
||||
|
||||
AppendEntry({{"amenity", "dentist"},
|
||||
{"amenity", "doctors"},
|
||||
{"amenity", "clinic"},
|
||||
{"amenity", "hospital"},
|
||||
{"amenity", "pharmacy"},
|
||||
{"amenity", "veterinary"}},
|
||||
"185237551520383_1384652351578891");
|
||||
// Financial.
|
||||
AppendEntry({{"amenity", "bank"}, {"amenity", "atm"}}, "185237551520383_1384652658245527");
|
||||
// Entertainment.
|
||||
kHealthPlacementId);
|
||||
|
||||
AppendEntry({{"amenity", "bank"}, {"amenity", "atm"}}, kFinancialPlacementId);
|
||||
|
||||
AppendEntry({{"amenity", "cinema"},
|
||||
{"amenity", "brothel"},
|
||||
{"amenity", "casino"},
|
||||
|
@ -90,9 +115,9 @@ Ads::Ads()
|
|||
{"amenity", "theatre"},
|
||||
{"boundary", "national_park"},
|
||||
{"leisure"}},
|
||||
"185237551520383_1384653001578826");
|
||||
// Building.
|
||||
AppendEntry({{"building"}}, "185237551520383_1419317661445693");
|
||||
kEntertainmentPlacementId);
|
||||
|
||||
AppendEntry({{"building"}}, kBuildingPlacementId);
|
||||
|
||||
SetExcludeTypes({{"sponsored", "booking"}});
|
||||
}
|
||||
|
|
|
@ -24,7 +24,12 @@ struct TypeAndlevel
|
|||
class Ads
|
||||
{
|
||||
public:
|
||||
|
||||
#if defined(OMIM_OS_IPHONE)
|
||||
static auto constexpr kBannerIdForOtherTypes = "185237551520383_1425363454174447";
|
||||
#else
|
||||
static auto constexpr kBannerIdForOtherTypes = "185237551520383_1384653421578784";
|
||||
#endif
|
||||
|
||||
static Ads const & Instance();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue