def extract_adm_click_beacons(self, adm): ''' Return a list of url beacons to be called to generate clicks. The urls may have macros that need to be replaced ''' bcns = [ extract_click_beacons_from_adm(adm) ] return bcns
def extract_adm_click_beacons(self, adm): ''' Return a list of url beacons to be called to generate clicks. The urls may have macros that need to be replaced ''' bcns = [extract_click_beacons_from_adm(adm)] return bcns
def do_event_from_html_snippet(self, bid_resp, notif_render_map): # Get the corresponding urls and set the price to the imp url # Extract beacons from tag tag = bid_resp.ad[0].html_snippet imp_url = tg.extract_imp_beacons_from_adm(tag) clicl_url = tg.extract_click_beacons_from_adm(tag) # Do macro replacement imp_url = self.replace_adx_macros(imp_url, notif_render_map) clicl_url = self.replace_adx_macros(clicl_url, notif_render_map) # Now do beaconing self.__send_impression_notification(imp_url) self.__send_click_notification(clicl_url)
def do_event_from_html_snippet(self, bid_resp, notif_render_map): # Get the corresponding urls and set the price to the imp url # Extract beacons from tag tag = bid_resp.ad[0].html_snippet imp_url = tg.extract_imp_beacons_from_adm(tag) clicl_url = tg.extract_click_beacons_from_adm(tag) # Do macro replacement imp_url = self.replace_adx_macros(imp_url, notif_render_map) clicl_url = self.replace_adx_macros(clicl_url, notif_render_map) # Now do beaconing self.__send_impression_notification(imp_url) self.__send_click_notification(clicl_url)
def extract_adm_click_beacons(self, adm): if tgp.is_vast(adm): return tgp.extract_click_beacons_from_adm(adm) else : return self._extract_adm_click(adm)