\doxysection{com.\+tritondigital.\+ads.\+Ad\+Loader Class Reference}
\hypertarget{classcom_1_1tritondigital_1_1ads_1_1AdLoader}{}\label{classcom_1_1tritondigital_1_1ads_1_1AdLoader}\index{com.tritondigital.ads.AdLoader@{com.tritondigital.ads.AdLoader}}


Loads an ad from an ad request.  


\doxysubsubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
interface \mbox{\hyperlink{interfacecom_1_1tritondigital_1_1ads_1_1AdLoader_1_1AdLoaderListener}{Ad\+Loader\+Listener}}
\begin{DoxyCompactList}\small\item\em A listener for receiving Ad\+Loader notifications. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1AdLoader_ad8f0cbf0d3f7037af377ec1cc478cc34}\label{classcom_1_1tritondigital_1_1ads_1_1AdLoader_ad8f0cbf0d3f7037af377ec1cc478cc34} 
void {\bfseries set\+Tag} (String msg)
\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1AdLoader_aae1f12a831c380db993c469c5bcbe5ee}{load}} (String ad\+Request, Map$<$ String, List$<$ Integer $>$ $>$ dmp\+Segments)
\begin{DoxyCompactList}\small\item\em Load an ad request. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1AdLoader_a6626ba28cfe61eacab86ec6956e908f0}{load}} (String ad\+Request)
\begin{DoxyCompactList}\small\item\em Load an ad request. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1AdLoader_ab0e742f05c8a65bfbae40b7b4c3d50b2}\label{classcom_1_1tritondigital_1_1ads_1_1AdLoader_ab0e742f05c8a65bfbae40b7b4c3d50b2} 
void {\bfseries load} (\mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1AdRequestBuilder}{Ad\+Request\+Builder}} ad\+Request\+Builder)
\begin{DoxyCompactList}\small\item\em Load an ad request from its builder. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1AdLoader_af4b858e5c7af3a53c986048582e5f1b6}\label{classcom_1_1tritondigital_1_1ads_1_1AdLoader_af4b858e5c7af3a53c986048582e5f1b6} 
void {\bfseries load} (\mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1AdRequestBuilder}{Ad\+Request\+Builder}} ad\+Request\+Builder, Map$<$ String, List$<$ Integer $>$ $>$ dmp\+Segments)
\begin{DoxyCompactList}\small\item\em Load an ad request from its builder with DMP Segments. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1AdLoader_ac23cd1174f606156b9a0009feb0def0d}\label{classcom_1_1tritondigital_1_1ads_1_1AdLoader_ac23cd1174f606156b9a0009feb0def0d} 
void {\bfseries cancel} ()
\begin{DoxyCompactList}\small\item\em Cancel the current loading. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1AdLoader_adc794e3eaaffe0d6e8e05f1e289c5d23}\label{classcom_1_1tritondigital_1_1ads_1_1AdLoader_adc794e3eaaffe0d6e8e05f1e289c5d23} 
Bundle {\bfseries get\+Ad} ()
\begin{DoxyCompactList}\small\item\em Returns the loaded ad. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1AdLoader_a5a788cba8bb352f55c415b98d42e5a8f}\label{classcom_1_1tritondigital_1_1ads_1_1AdLoader_a5a788cba8bb352f55c415b98d42e5a8f} 
int {\bfseries get\+Error} ()
\begin{DoxyCompactList}\small\item\em Returns the error code. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1AdLoader_a78052184ba9135cc49cd3f2baa5e0e2b}\label{classcom_1_1tritondigital_1_1ads_1_1AdLoader_a78052184ba9135cc49cd3f2baa5e0e2b} 
void {\bfseries set\+Listener} (\mbox{\hyperlink{interfacecom_1_1tritondigital_1_1ads_1_1AdLoader_1_1AdLoaderListener}{Ad\+Loader\+Listener}} listener)
\begin{DoxyCompactList}\small\item\em Sets the ad loader listener. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1AdLoader_a43ba89565f57dec5193af989bdced040}\label{classcom_1_1tritondigital_1_1ads_1_1AdLoader_a43ba89565f57dec5193af989bdced040} 
\mbox{\hyperlink{interfacecom_1_1tritondigital_1_1ads_1_1AdLoader_1_1AdLoaderListener}{Ad\+Loader\+Listener}} {\bfseries get\+Listener} ()
\begin{DoxyCompactList}\small\item\em Returns the ad loader listener. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static String \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1AdLoader_a5a73da181b656f2ec00ecb62f744c506}{debug\+Error\+To\+Str}} (int error\+Code)
\begin{DoxyCompactList}\small\item\em Converts the error codes to a string. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1AdLoader_afe5886089ef33e50b3dae03e30144590}\label{classcom_1_1tritondigital_1_1ads_1_1AdLoader_afe5886089ef33e50b3dae03e30144590} 
static final int {\bfseries ERROR\+\_\+\+UNKNOWN\+\_\+\+HOST} = 8001
\begin{DoxyCompactList}\small\item\em Unknown host. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1AdLoader_afa2ba156301641bc77337334b6e5f393}\label{classcom_1_1tritondigital_1_1ads_1_1AdLoader_afa2ba156301641bc77337334b6e5f393} 
static final int {\bfseries ERROR\+\_\+\+UNKNOWN} = 8003
\begin{DoxyCompactList}\small\item\em Unspecified error. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1AdLoader_ac4c11d23f09655cb90bc79e908986492}\label{classcom_1_1tritondigital_1_1ads_1_1AdLoader_ac4c11d23f09655cb90bc79e908986492} 
static final int {\bfseries ERROR\+\_\+\+NETWORK\+\_\+\+NOT\+\_\+\+AVAILABLE} = 8054
\begin{DoxyCompactList}\small\item\em Network not available. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1AdLoader_ae602559ea3124a3316bb0b6aae93f3bc}\label{classcom_1_1tritondigital_1_1ads_1_1AdLoader_ae602559ea3124a3316bb0b6aae93f3bc} 
static final int {\bfseries ERROR\+\_\+\+NO\+\_\+\+INVENTORY} = 8004
\begin{DoxyCompactList}\small\item\em No ad available. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Loads an ad from an ad request. 

\doxysubsection{Member Function Documentation}
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1AdLoader_a5a73da181b656f2ec00ecb62f744c506}\label{classcom_1_1tritondigital_1_1ads_1_1AdLoader_a5a73da181b656f2ec00ecb62f744c506} 
\index{com.tritondigital.ads.AdLoader@{com.tritondigital.ads.AdLoader}!debugErrorToStr@{debugErrorToStr}}
\index{debugErrorToStr@{debugErrorToStr}!com.tritondigital.ads.AdLoader@{com.tritondigital.ads.AdLoader}}
\doxysubsubsection{\texorpdfstring{debugErrorToStr()}{debugErrorToStr()}}
{\footnotesize\ttfamily static String com.\+tritondigital.\+ads.\+Ad\+Loader.\+debug\+Error\+To\+Str (\begin{DoxyParamCaption}\item[{int}]{error\+Code }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Converts the error codes to a string. 

\begin{DoxyNote}{Note}
Only use for debugging purpose. 
\end{DoxyNote}
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1AdLoader_a6626ba28cfe61eacab86ec6956e908f0}\label{classcom_1_1tritondigital_1_1ads_1_1AdLoader_a6626ba28cfe61eacab86ec6956e908f0} 
\index{com.tritondigital.ads.AdLoader@{com.tritondigital.ads.AdLoader}!load@{load}}
\index{load@{load}!com.tritondigital.ads.AdLoader@{com.tritondigital.ads.AdLoader}}
\doxysubsubsection{\texorpdfstring{load()}{load()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily void com.\+tritondigital.\+ads.\+Ad\+Loader.\+load (\begin{DoxyParamCaption}\item[{String}]{ad\+Request }\end{DoxyParamCaption})}



Load an ad request. 

If this class is already loading an ad, it will be cancelled. \Hypertarget{classcom_1_1tritondigital_1_1ads_1_1AdLoader_aae1f12a831c380db993c469c5bcbe5ee}\label{classcom_1_1tritondigital_1_1ads_1_1AdLoader_aae1f12a831c380db993c469c5bcbe5ee} 
\index{com.tritondigital.ads.AdLoader@{com.tritondigital.ads.AdLoader}!load@{load}}
\index{load@{load}!com.tritondigital.ads.AdLoader@{com.tritondigital.ads.AdLoader}}
\doxysubsubsection{\texorpdfstring{load()}{load()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void com.\+tritondigital.\+ads.\+Ad\+Loader.\+load (\begin{DoxyParamCaption}\item[{String}]{ad\+Request,  }\item[{Map$<$ String, List$<$ Integer $>$ $>$}]{dmp\+Segments }\end{DoxyParamCaption})}



Load an ad request. 

If this class is already loading an ad, it will be cancelled. 

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
ads/src/main/java/com/tritondigital/ads/Ad\+Loader.\+java\end{DoxyCompactItemize}
