-
Notifications
You must be signed in to change notification settings - Fork 3
The config.json file
Juan Gabriel Griggio edited this page Nov 22, 2024
·
12 revisions
This project has a file called config.json
, which contains important settings and credentials required for the program to function. Change the parameters accordingly.
Here is an explanation of the config.json
file with all its possible fields. Note that some of them are optional and recommended to be skipped.
{
"advertiser": "Retailer name",
"project_id": "Cloud project id - e.g.: my-project",
"project_region": "Optional, recommended to skip - use only if another service deployment region other than us-central1 is preferred.",
"client_id": "Optional, recommended to skip - use only if project-level authentication is preferred.",
"client_secret": "Optional, recommended to skip - use only if project-level authentication is preferred.",
"refresh_token": "Optional, recommended to skip - use only if project-level authentication is preferred.",
"login_customer_id": "Optional, recommended to include - Your Google Ads customer id. See the project Wiki on Github, page Authentication params.",
"google_ads_developer_token": "Optional, recommended to include - Your Google Ads developer token. See the project Wiki on Github, page Authentication params.",
"gemini_api_key": "Optional, recommended to include - Your Gemini API key. See the project Wiki on Github, page Authentication params.",
"gemini_model": "Optional, recommended to skip - the Gemini model you want to use. Supported values: gemini-1.5-flash, gemini-1.5-flash-8b, gemini-1.5-pro. Defaults to gemini-1.5-flash.",
"cloud_run_service": "Optional, recommended to skip - use only if another service name other than topic-mine is preferred.",
"service_account_name": "Optional, recommended to skip - use only if another service account name other than topic-mine-service-account is preferred.",
"language": "ES",
"country": "Argentina"
}
This is the most basic config.json
file example. It contains only the minimum required parameters for Topic Mine to function. Note that it is recommended that the parameters login_customer_id
and google_ads_developer_token
are included, and they are not present in this example.
{
"advertiser": "My Store Name",
"project_id": "my-gcp-project-id",
"language": "ES",
"country": "Argentina",
}
- Home
- Project setup
- API Reference
-
Content endpoint
- Query params
-
Body params
- First term source config
- Second term source config
- Output config
- Request examples
- Response examples
- Tasks endpoint
-
Content endpoint