Connect popularity source
connect_popularityConnect Apple Ads, Google Ads Keyword Planner, or an imported CSV/JSON file as a real keyword popularity source, store credentials in the OS keychain, and enable later popularity fetches.
Instructions
Connect a source of REAL keyword popularity: apple_ads (Apple Ads API: clientId, teamId, keyId, private key, optional orgId), google_ads_planner (Google Ads Keyword Planner: developerToken, customerId, refreshToken, oauthClientId, oauthClientSecret, optional loginCustomerId) or imported (a popularity export file at filePath). Prefer file paths for keys. Secrets go to the OS keychain and are never returned. Then call fetch_popularity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyId | No | apple_ads: key id. | |
| orgId | No | apple_ads: org id when several are visible. | |
| store | No | Store: "apple" (App Store) or "google" (Google Play). | |
| source | Yes | Popularity source. | |
| teamId | No | apple_ads: team id. | |
| clientId | No | apple_ads: client id. | |
| filePath | No | imported: path to the export file (CSV / JSON). | |
| customerId | No | google_ads_planner: customer id. | |
| refreshToken | No | google_ads_planner: OAuth refresh token. | |
| oauthClientId | No | google_ads_planner: OAuth client id. | |
| privateKeyPem | No | apple_ads: PEM contents (prefer privateKeyPath). | |
| developerToken | No | google_ads_planner: developer token. | |
| privateKeyPath | No | apple_ads: path to the private key PEM. | |
| loginCustomerId | No | google_ads_planner: manager account id. | |
| oauthClientSecret | No | google_ads_planner: OAuth client secret. |