Twitch SDK (Internal)
Classes | Namespaces | Enumerations
adtypes.h File Reference
#include <map>
#include <stdint.h>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  ttv::ads::MediaFile
 
struct  ttv::ads::LinearCreative
 
struct  ttv::ads::CompanionCreative
 
struct  ttv::ads::Impression
 
struct  ttv::ads::AdFetchRequestInfo
 
struct  ttv::ads::Ad
 
struct  ttv::ads::AdConfiguration
 

Namespaces

 ttv
 JSON (JavaScript Object Notation).
 
 ttv::ads
 

Enumerations

enum  ttv::ads::TrackingEventType {
  ttv::ads::TrackingEventType::Unknown, ttv::ads::TrackingEventType::CreativeView, ttv::ads::TrackingEventType::Start, ttv::ads::TrackingEventType::FirstQuartile,
  ttv::ads::TrackingEventType::Midpoint, ttv::ads::TrackingEventType::ThirdQuartile, ttv::ads::TrackingEventType::Complete, ttv::ads::TrackingEventType::Mute,
  ttv::ads::TrackingEventType::Unmute, ttv::ads::TrackingEventType::Pause, ttv::ads::TrackingEventType::Rewind, ttv::ads::TrackingEventType::Resume,
  ttv::ads::TrackingEventType::Fullscreen, ttv::ads::TrackingEventType::ExitFullscreen, ttv::ads::TrackingEventType::Expand, ttv::ads::TrackingEventType::Collapse,
  ttv::ads::TrackingEventType::AcceptInvitation, ttv::ads::TrackingEventType::Close, ttv::ads::TrackingEventType::Skip, ttv::ads::TrackingEventType::Progress
}
 
enum  ttv::ads::AdPosition { ttv::ads::AdPosition::Undefined = 0, ttv::ads::AdPosition::Preroll = 1, ttv::ads::AdPosition::Midroll = 2, ttv::ads::AdPosition::Postroll = 3 }
 
enum  ttv::ads::ContentMode { ttv::ads::ContentMode::Live, ttv::ads::ContentMode::Vod, ttv::ads::ContentMode::Playlist, ttv::ads::ContentMode::VodCast }
 

Class Documentation

◆ ttv::ads::Impression

struct ttv::ads::Impression
Class Members
string identifier
string resourceUrl

◆ ttv::ads::AdConfiguration

struct ttv::ads::AdConfiguration
Class Members
string adTrackingIdentifer
string adUnit
string languageCode
vector< string > mediaTypeFilters

This list will be used to filter the media types of the ads. If empty, no filter wil be applied. For example, if you only support mp4 playback then add "video/mp4" to the list of filters.

string platform
string userAgentString