Finding which Ad Displayed.

Oct 7, 2013 at 8:28 AM
Is there a way to programmatically find which ad is being displayed as AdDuplex has a smaller size when compared to NAX. This causes position problems with the ads.

Stanley J. Maliackal
Coordinator
Oct 7, 2013 at 9:13 AM
AdRotator doesn't currently directly expose the current AdType it is displaying. Traditionally since you always had to call Invalidate to change / start ads. this function always returned the current AdProvider it was displaying. However this is proving inefficient because of the failover mechanism the value returned may not be true because it could change after you have called it when Ads Fail.

We could look to making the "CurrentAdProvider" property public as a string when the current beta is fully released to copy with this and you could bind to that property for when it changes to handle the different sizes.

Although Ad Placement is usually based on the AdRotator's control position and the Provider delivering the ad gets placed central within the control, unless you are positioning within another grid / stack control I suppose.