blob: 159341b1f3222bf2c9bba95167d57c36ae9748c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
using System;
using System.Collections.Generic;
using GoogleMobileAds.Common;
using UnityEngine;
namespace GoogleMobileAds.Api
{
public class CustomNativeTemplateAd
{
private ICustomNativeTemplateClient client;
internal CustomNativeTemplateAd(ICustomNativeTemplateClient client)
{
this.client = client;
}
public List<string> GetAvailableAssetNames()
{
return this.client.GetAvailableAssetNames();
}
public string GetCustomTemplateId()
{
return this.client.GetTemplateId();
}
public Texture2D GetTexture2D(string key)
{
byte[] imageByteArray = this.client.GetImageByteArray(key);
if (imageByteArray == null)
{
return null;
}
return Utils.GetTexture2DFromByteArray(imageByteArray);
}
public string GetText(string key)
{
return this.client.GetText(key);
}
public void PerformClick(string assetName)
{
this.client.PerformClick(assetName);
}
public void RecordImpression()
{
this.client.RecordImpression();
}
}
}
|