Advanced Ads offers a couple of action hooks you can use to change settings, ad output or other things. To learn more about each hook you might take a look into the code or simply experiment a bit. You can learn more about actions and how to use them from the add_action page on wordpress.org.

advanced-ads-ad-list-details-column-after

After the list of ad details in the ad list in dashboard

  • file: admin/view/ad_list_details_column.php

parameters:

  • $ad – ad object

advanced-ads-ad-list-timing-column-after

After the timing details in the ad list.

advanced-ads-ad-params-after

Called after rendering the ad parameters. Doesn’t get updated/changed by ad type change.

  • file: admin/views/ad-parameters-metabox.php

parameters:

  • $ad – ad object
  • $types – array with ad types

advanced-ads-ad-params-before

Before the ad parameters are rendered. No update when the ad type changes.

advanced-ads-additional-settings-form

Allow developers to to display additional content (forms) in the settings page. Data is not registered in the WP SAPI like the default form, so processing it is left to the developer.

  • file: admin/views/settings.php

advanced-ads-admin-overview-after

Called after rendering the overview page.

  • file: admin/views/overview.php

advanced-ads-admin-overview-before

Called before rendering the overview page.

  • file: admin/views/overview.php

advanced-ads-adsense-parameters-before

Before the AdSense ad parameters are rendered.

advanced-ads-adsense-settings-init

Fired after setting init of the AdSense settings.

advanced-ads-ajax-ad-select-init

Fired before an ad is selected via ajax.

advanced-ads-debug-after

At the bottom of the debug page in the dashboard.

advanced-ads-gadsense-extra-ad-param

Allows the display of additional HTML in the adsense ad param meta box.

  • module: gadsense
  • file: modules/gadsense/admin/views/adsense-ad-parameters.php

parameters:

  • arr $extra_param
  • obj $content, the content object

advanced-ads-group-form-options

Add new form fields to the group form.

advanced-ads-output

Runs after the output of an ad is created, but before being displayed.

  • file: classes/ad.php

parameters:

  • $ad – ad object
  • $output – generated output (string)

advanced-ads-placement-options-after

Add placement options based on placement type after the default options get rendered

  • file: admin/view/placements.php

parameters:

  • $_placement_slug – slug/id of the current placement $_placement – array with all placement information

advanced-ads-placement-options-before

Add placement options based on placement type before the default options (and even item select) get rendered

  • file: admin/view/placements.php

parameters:

  • $_placement_slug – slug/id of the current placement $_placement – array with all placement information

advanced-ads-save-options

Manipulate option parameters or add new options for an ad before saving them

  • file: classes/ad.php
  • function: save()

parameters:

  • $options – array with options
  • $ad – ad object

advanced-ads-settings-form

Action to add more settings to the settings form

  • file: admin/views/settings.php

parameters:

  • string $_setting_tab_id, identifier of the setting tab
  • array $_setting_tab, array with setting tab options

advanced-ads-settings-init

Action to add more settings to the settings page after the settings of the main plugin

  • file: admin/class-advanced-ads-admin.php

parameters:

  • $hook – page hook

advanced-ads-submenu-pages

Allow developers to insert sub menu page bellow the advanced ads menu (top level menu)

  • file: /admin/class-advanced-ads-admin.php

parameters:

  • string $plugin_slug

advanced-ads-tracking-email-report-below-headline

Add custom text below the headline in the email reports.

advanced-ads-tracking-email-report-below-content

Add custom text below the content in the email reports.

advanced-ads-visitor-conditions-after

Called after rendering the visitor conditions. Doesn’t get updated/changed by ad type change.

  • file: admin/views/ad-visitor-metabox.php