changed ad_frame to send api call