Yandex Mobile Ads
Loading...
Searching...
No Matches
AdTargeting.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 AdTargeting
18 {
22 public string Age { get; private set; }
23
28 public string Gender { get; private set; }
29
33 public Location Location { get; private set; }
34
38 public string ContextQuery { get; private set; }
39
43 public List<string> ContextTags { get; private set; }
44
59 string age = null,
60 string gender = null,
61 Location location = null,
62 string contextQuery = null,
63 List<string> contextTags = null)
64 {
65 this.Age = age;
66 this.Gender = gender;
67 this.Location = location;
68 this.ContextQuery = contextQuery;
69 this.ContextTags = contextTags != null ? new List<string>(contextTags) : null;
70 }
71 }
72}
Location Location
User location.
string ContextQuery
The search query that the user entered in the app.
AdTargeting(string age=null, string gender=null, Location location=null, string contextQuery=null, List< string > contextTags=null)
Creates targeting data.
string Age
The string representation of the user's age.
string Gender
The string representation of the user's gender. See the list of values in YandexMobileAds....
List< string > ContextTags
A list of tags. Matches the context in which the ad will be displayed.