ads
GET /v1/ads/connections/{connection_id}/microsoft/import-google
What importing the org's Google Ads Search campaigns into this Microsoft account would queue (za-39).
Authentication
Send an API key as a bearer token. The key must carry the ads.view permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X GET https://api.zinndigital.com/v1/ads/connections/{connection_id}/microsoft/import-google?google_connection_id=<google_connection_id> \
-H "Authorization: Bearer zdk_live_…"Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
Gated on ads.view. connection_id is a Microsoft Advertising connection, google_connection_id a Google Ads connection of the same org (else 422 refusal.adsconnect.importNotOnNetwork; different currencies importCurrency; an account whose currency is unknown importCurrencyUnknown; a failed read importReadFailed, whose error.failure is the classified VendorFailure of the network that failed: an outage, the customer's own credential, or ours, §2.57). Reads both networks, writes nothing. Each enabled Google campaign is listed: a Search campaign is ready or says why it cannot be copied, any other type (Performance Max, Display, Shopping, Video) is notSearch; a name already live in Microsoft or already imported is alreadyThere; a campaign with no daily budget (a Google total budget) is noDailyBudget, never ready (docs/1006 §103).
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
connection_id (path) | string | Yes | — |
google_connection_id (query) | string | Yes | — |
max_cpc_micros (query) | integer | No | Max CPC for campaigns Google gives none. |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
connection_id | string | Yes | — |
google_connection_id | string | Yes | — |
currency | string | Yes | — |
data | object[] | Yes | — |
Errors this endpoint can return
401 · 403 · 404 · 422 · 429