bool CzAds::ExtractAdKomliMobile(CzAd& ad, CzString& ad_body) { return false; // We dont use a full on XML parser to parse the returned XML, instead we just search for the required info int pos; ad.isHtml = false; ad.isText = false; ad.ImageURI = ""; ad.LinkURI = ""; ad.Text = ""; ad.AdTime = PLATFORM_SYS->getTimeInMs(); ad_body.FindReset(); // Find render section if (ad_body.FindNext("\"action\"") < 0) { return false; } // Find click URL pos = ad_body.GetNextMarkedStringAfterString("\"data\"", '"', '"', ad.LinkURI); if (pos >= 0) { #if defined(_DEBUG) CzDebug::Log(CZ_DEBUG_CHANNEL_INFO, "Ad Click URL: ", ad.LinkURI.c_str()); #endif // _DEBUG } else return false; // Find render section if (ad_body.FindNext("\"render\"") < 0) { return false; } // Find Image URL pos = ad_body.GetNextMarkedStringAfterString("\"data\"", '"', '"', ad.ImageURI); if (pos > 0) { #if defined(_DEBUG) CzDebug::Log(CZ_DEBUG_CHANNEL_INFO, "Ad Image URL: ", ad.ImageURI.c_str()); #endif // _DEBUG } else return false; /* // Find click URL pos = ad_body.GetNextMarkedStringAfterString("\"notify\"", '"', '"', ad.LinkURI); if (pos >= 0) { #if defined(_DEBUG) CzDebug::Log(CZ_DEBUG_CHANNEL_INFO, "Ad Click URL: ", ad.LinkURI.c_str()); #endif // _DEBUG } else return false;(*/ return true; }