Skip to main content

initializeMetaAdsConnection

Starts connecting a Meta ad account to a site and returns the Meta authorization URL. This call creates nothing: a user must open the URL in a browser and approve access, after which Crazy Egg creates the connection and sends the browser to returnUrl. Requires Ad Performance edit access.

initializeMetaAdsConnection(
siteId: Int!
returnUrl: String!
): InitializeMetaAdsConnectionResult

Arguments​

initializeMetaAdsConnection.siteId ● Int! non-null scalar​

Accessible site id from sites.

initializeMetaAdsConnection.returnUrl ● String! non-null scalar​

Where the browser returns after authorization: a path starting with / or an http(s) Crazy Egg URL.

Type​

InitializeMetaAdsConnectionResult object​

Authorization redirect returned by either Meta or Reddit connection initialization.