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.Collections.Generic;
11
13{
17 public class AdInfo
18 {
22 public string AdUnitId { get; private set; }
23
27 public string ExtraData { get; private set; }
28
33 public string PartnerText { get; private set; }
34
38 public List<Creative> Creatives { get; private set; }
39
40 internal AdInfo(
41 string adUnitId,
42 string extraData = null,
43 string partnerText = null,
44 List<Creative> creatives = null)
45 {
46 this.AdUnitId = adUnitId;
47 this.ExtraData = extraData;
48 this.PartnerText = partnerText;
49 this.Creatives = creatives ?? new List<Creative>();
50 }
51
52 public override string ToString()
53 {
54 return $"AdInfo(AdUnitId='{this.AdUnitId}')";
55 }
56 }
57}
Container for ad information.
Definition AdInfo.cs:18
string ExtraData
Extra data of the ad.
Definition AdInfo.cs:27
override string ToString()
Definition AdInfo.cs:52
string AdUnitId
The ad unit identifier.
Definition AdInfo.cs:22
List< Creative > Creatives
Information about creatives of the ad.
Definition AdInfo.cs:38
string PartnerText
Any string in the ad (set in the Partner interface).
Definition AdInfo.cs:33