Skip to main content

adPerformanceAdPreview

Returns an imported ad's identity and normalized creative for rendering a preview, or an error when the ad is not on the site. May fetch fresh Meta media from Meta and save it; unsupported formats return previewSupported: false with whatever text and media are available. Requires Ad Performance view access.

adPerformanceAdPreview(
siteId: Int!
adId: Int!
): AdPerformanceAdPreviewPayload

Arguments​

adPerformanceAdPreview.siteId ● Int! non-null scalar​

Accessible site id from sites.

adPerformanceAdPreview.adId ● Int! non-null scalar​

Crazy Egg ad id from adPerformanceAdTree or platform-mode performance results; not the provider's ad id.

Type​

AdPerformanceAdPreviewPayload object​

Imported ad identity and normalized creative returned by adPerformanceAdPreview and adsLibraryPreviewAdPreview.