Yandex Mobile Ads
Loading...
Searching...
No Matches
AdInfo.cs
Go to the documentation of this file.
1/*
2 * This file is a part of the Yandex Advertising Network
3 *
4 * Version for Unity (C) 2023 YANDEX
5 *
6 * You may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at https://legal.yandex.com/partner_ch/
8 */
9
10using System;
11
13{
17 public class AdInfo
18 {
19
23 public string AdUnitId { get; private set; }
24
28 public AdSize AdSize { get; private set; }
29
30 internal AdInfo(string adUnitId, AdSize adSize)
31 {
32 this.AdUnitId = adUnitId;
33 this.AdSize = adSize;
34 }
35
36 override public string ToString()
37 {
38 return $"AdInfo(AdUnitId='{this.AdUnitId}', AdSize={AdSize})";
39 }
40
41 }
42}
Container for base Ad information.
Definition AdInfo.cs:18
override string ToString()
Definition AdInfo.cs:36
string AdUnitId
AdUnitId of the ad.
Definition AdInfo.cs:23
This class represents the size of the ad.
Definition AdSize.cs:16