The following JavaScript code allows you to do something as soon as Advanced Ads Pro finished loading ads.

if ( typeof advanced_ads_pro === 'object' ) {
  advanced_ads_pro.observers.add(function(event) {
      // Note: These events may be triggered multiple times
      // because not all ads are injected at the same time.   
      // The injection may be delayed by the lazy load feature or the group refresh feature.
      if (event.event === 'inject_passive_ads') {
        console.log(event);
      }
      if (event.event === 'inject_ajax_ads') {
        console.log(event);
      }
      if (event.event === 'inject_placement') {
        console.log(event);
      }
    } );
}