Yandex Mobile Ads
Loading...
Searching...
No Matches
AdRequest.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 AdRequest
18 {
22 public string AdUnitId { get; private set; }
23
27 public AdTargeting Targeting { get; private set; }
28
32 public AdTheme AdTheme { get; private set; }
33
37 public Dictionary<string, string> Parameters { get; private set; }
38
49 public AdRequest(
50 string adUnitId,
51 AdTargeting targeting = null,
52 AdTheme adTheme = AdTheme.None,
53 Dictionary<string, string> parameters = null)
54 {
55 this.AdUnitId = adUnitId;
56 this.Targeting = targeting;
57 this.AdTheme = adTheme;
58 this.Parameters = parameters != null
59 ? new Dictionary<string, string>(parameters)
60 : null;
61 }
62 }
63}
AdTheme AdTheme
Preferred theme.
Definition AdRequest.cs:32
Dictionary< string, string > Parameters
A set of arbitrary input parameters.
Definition AdRequest.cs:37
string AdUnitId
The ad unit identifier.
Definition AdRequest.cs:22
AdRequest(string adUnitId, AdTargeting targeting=null, AdTheme adTheme=AdTheme.None, Dictionary< string, string > parameters=null)
Creates an ad request.
Definition AdRequest.cs:49
AdTargeting Targeting
Targeting information about the user.
Definition AdRequest.cs:27
Contains targeting information used to fetch an ad.