Help us translate this website and improve this translation and earn free licenses!
Anonymous user  |  Log in  |  Create Account

GAdsManager

The GoogleMaps API gives us the oportunity of showing Adsense advertising in our maps. To achieve this we have to use GAdsManager, which is maked up of three porperties:
  • publisherId: ID of your Adsense account
  • helpSubgurim: of type HelpSubgurimEnum, allows us to define the percentage, from 0% to 100%, of printed advertising corresponds to Subgurim, with the only aim of supporting this project. It's completely optional.
  • options: of type GAdsManagerOptions; we can define parameters like "minZoomLevel" (minimum zoom level at which to show ads), "maxAdsOnMap" (maximum number of ads to show on the map at any time), position, style (icon or adunit) and the "channel" (the AdSense channel used for fetching ads).




Code.aspx
<cc1:GMap ID="GMap1" runat="server" />
Code.aspx.cs
GAdsManagerOptions options = new GAdsManagerOptions(1, 30);
options.style = GAdsManagerOptions.GAdsManagerStyleEnum.adunit;
GMap1.addAdsManager(new GAdsManager("YourPublisherID", GAdsManager.HelpSubgurimEnum.FullHelp, options));
Powered by Subgurim.NET