Yandex Mobile Ads
Loading...
Searching...
No Matches
Assets
YandexMobileAds
Base
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
10
using
System.Collections.Generic;
11
12
namespace
YandexMobileAds.Base
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
}
YandexMobileAds.Base.AdRequest.AdTheme
AdTheme AdTheme
Preferred theme.
Definition
AdRequest.cs:32
YandexMobileAds.Base.AdRequest.Parameters
Dictionary< string, string > Parameters
A set of arbitrary input parameters.
Definition
AdRequest.cs:37
YandexMobileAds.Base.AdRequest.AdUnitId
string AdUnitId
The ad unit identifier.
Definition
AdRequest.cs:22
YandexMobileAds.Base.AdRequest.AdRequest
AdRequest(string adUnitId, AdTargeting targeting=null, AdTheme adTheme=AdTheme.None, Dictionary< string, string > parameters=null)
Creates an ad request.
Definition
AdRequest.cs:49
YandexMobileAds.Base.AdRequest.Targeting
AdTargeting Targeting
Targeting information about the user.
Definition
AdRequest.cs:27
YandexMobileAds.Base.AdTargeting
Contains targeting information used to fetch an ad.
Definition
AdTargeting.cs:18
YandexMobileAds.Base
Definition
AdError.cs:13
Generated by
1.16.1