コード例 #1
0
 /// <inheritdoc/>
 public object GetTargetingStats(GetTargetingStatsParams getTargetingStatsParams)
 {
     return(_vk.Call <object>("ads.getTargetingStats",
                              new VkParameters
     {
         { "account_id", getTargetingStatsParams.AccountId }, { "criteria", getTargetingStatsParams.Criteria },
         { "ad_platform", getTargetingStatsParams.AdPlatform },
         { "ad_platform_no_wall", getTargetingStatsParams.AdPlatformNoWall }, { "link_url", getTargetingStatsParams.LinkUrl },
         { "link_domain", getTargetingStatsParams.LinkDomain }, { "client_id", getTargetingStatsParams.ClientId },
         { "ad_id", getTargetingStatsParams.AdId }, { "ad_format", getTargetingStatsParams.AdFormat }
     }));
 }
コード例 #2
0
 /// <inheritdoc/>
 public async Task <object> GetTargetingStatsAsync(GetTargetingStatsParams getTargetingStatsParams)
 {
     return(await TypeHelper.TryInvokeMethodAsync(() => GetTargetingStats(getTargetingStatsParams)));
 }