Twitch SDK (Internal)
vastparser.h
Go to the documentation of this file.
1 /********************************************************************************************
2 * Twitch Broadcasting SDK
3 *
4 * This software is supplied under the terms of a license agreement with Twitch Interactive, Inc. and
5 * may not be copied or used except in accordance with the terms of that agreement
6 * Copyright (c) 2012-2017 Twitch Interactive, Inc.
7 *********************************************************************************************/
8 
9 #pragma once
10 
11 #include "twitchsdk/ads/adtypes.h"
12 
13 #include <string>
14 #include <vector>
15 
16 namespace ttv
17 {
18  namespace ads
19  {
20  struct AdWrapper
21  {
23  : depth(0)
24  {
25  }
26 
27  std::string nextTagUrl;
28  std::vector<Impression> impressions;
29  std::vector<std::string> errorUrls;
30  std::map<TrackingEventType, std::vector<std::string>> linearTrackingEventUrls;
31  std::vector<std::string> linearClickTrackingUrls;
32  std::vector<CompanionCreative> companionCreatives;
33 
34  uint8_t depth;
35  };
36 
37  AdError ParseVASTResponse(const std::string& responseData, std::vector<Ad>& inlineAds, std::vector<AdWrapper>& adWrappers, std::vector<std::string>& playlistUrls);
38  AdError ParseVASTResponseFromWrapper(const std::string& responseData, std::vector<Ad>& inlineAds, std::vector<AdWrapper>& adWrappers, AdWrapper& parentWrapper);
39  }
40 }
Definition: vastparser.h:20
std::map< TrackingEventType, std::vector< std::string > > linearTrackingEventUrls
Definition: vastparser.h:30
AdError
Definition: pch.h:36
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
std::vector< Impression > impressions
Definition: vastparser.h:28
std::vector< std::string > linearClickTrackingUrls
Definition: vastparser.h:31
AdWrapper()
Definition: vastparser.h:22
AdError ParseVASTResponse(const std::string &responseData, std::vector< Ad > &inlineAds, std::vector< AdWrapper > &adWrappers, std::vector< std::string > &playlistUrls)
AdError ParseVASTResponseFromWrapper(const std::string &responseData, std::vector< Ad > &inlineAds, std::vector< AdWrapper > &adWrappers, AdWrapper &parentWrapper)
std::vector< CompanionCreative > companionCreatives
Definition: vastparser.h:32
std::vector< std::string > errorUrls
Definition: vastparser.h:29
uint8_t depth
Definition: vastparser.h:34
std::string nextTagUrl
Definition: vastparser.h:27