Get the plugin
WP MCP/Integrations/Operations

Operations integration

Advanced Ads MCP

WP MCP adds eight free Advanced Ads ops on the plugin-data pair, so it adds no new tools. advancedads-list-ads lists ads by title with type, enabled, status, size, link, expiry and groups, filtered by status, type, group or search. advancedads-get-ad reads one ad with its code, settings, groups and the placements that show it. advancedads-list-placements lists placements with the ad or group each shows. advancedads-create-ad creates a plain, content, image or dummy ad as a draft, so nothing shows until advancedads-enable-ad publishes it; rollback moves the new ad to the trash. advancedads-update-ad changes the title, code and the settings given, merged into the ad's options, and advancedads-disable-ad takes an ad off the site while its placements keep it. advancedads-assign-placement sets which ad or group a placement shows, or clears it. Each change is snapshotted first, so rollback-operation restores it. Writes are off until a site opts in with the wpmcp_enable_advanced_ads_write filter, since an ad's code runs on every page it shows on. The code of a plain ad (raw HTML and JavaScript) is taken only from users with unfiltered_html, and allow_php is never set. The ops also take Advanced Ads's own capabilities, which administrators have.

plugin-data-readplugin-data-write

What your AI can do

Real Advanced Ads operations, every write reversible.

  • List ads with status, type, size, link, expiry and groups
  • Read one ad's code, settings and the placements that show it
  • List placements and what each one shows
  • Create ads as drafts, then enable or disable them (opt-in)
  • Update an ad's title, code, link, size, image or description (opt-in)
  • Point a placement at an ad or a group, or clear it, with rollback

Example prompts

Example Advanced Ads prompts.

Which Advanced Ads ads are enabled right now, and where does each one show?

Create an image ad for the spring sale using image 512 and link it to /sale.

Point the sidebar placement at the spring sale ad and disable the old banner.

Under the hood

The Advanced Ads calls, under the hood.

wpmcp, advanced-ads

plugin-data-read({ operation: "advancedads-list-placements" }), each placement with the ad or group it shows

plugin-data-write({ operation: "advancedads-create-ad", args: { title: "Spring sale", type: "image", image_id: 512, url: "https://example.com/sale" } }), opt-in; created as a draft

plugin-data-write({ operation: "advancedads-assign-placement", args: { id: 88, ad_id: 1450 } }), snapshotted; rollback-operation

In the free plugin

The Advanced Ads integration is in the free plugin.

The core Advanced Ads tools ship in the free, GPL plugin with the full snapshot and undo engine, and no trial clock. Pro adds 133 more tools, including Elementor deep editing, the other page builders, the forms adapter pack and, for some integrations, extra operations. The pricing page lists what each tier includes.

Frequently asked

Advanced Ads MCP: questions, answered.

With Advanced Ads, can the agent put JavaScript on my site through an ad?

Only if you allow it. Writes are off until the site turns on the wpmcp_enable_advanced_ads_write filter, the code of a plain ad is accepted only from users with the unfiltered_html capability, as Advanced Ads itself requires, and new ads start as drafts that show nowhere until enabled.

Can the Advanced Ads integration turn on PHP execution in an ad?

No. allow_php is not an argument to any op, and update-ad keeps whatever the site already chose.

Are the changes reversible?

Yes. Updates, enable, disable and placement changes are snapshotted first, so rollback-operation restores them, and rolling back a created ad moves it to the trash.

Point your AI at Advanced Ads.