Google Ads CLI Setup Google Ads can be configured headlessly with `kosmokrator integrations:configure google_ads`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure google_ads --set developer_token=" $GOOGLE_ADS_DEVELOPER_TOKEN " --enable --read allow --write ask --json
kosmokrator integrations:doctor google_ads --json
kosmokrator integrations:status --json Runtime Requirements Install these host dependencies before calling Google Ads locally.
Credentials
Authentication type: oauth2 with developer token oauth2_with_developer_token. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Call Google Ads Headlessly Use the generic call form when another coding CLI or script needs a stable universal interface.
kosmo integrations:call google_ads.google_ads_diagnostics '{}' --json Use the provider shortcut form for shorter human-facing commands.
kosmo integrations:google_ads google_ads_diagnostics '{}' --json Agent Discovery Commands
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs google_ads --json
kosmo integrations:docs google_ads.google_ads_diagnostics --json
kosmo integrations:schema google_ads.google_ads_diagnostics --json
kosmo integrations:search "Google Ads" --json
kosmo integrations:list --json All CLI Functions
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Google Ads.
google_ads.google_ads_diagnostics Read read Show safe configuration diagnostics.
none kosmo integrations:call google_ads.google_ads_diagnostics '{}' --json copy kosmo integrations:google_ads google_ads_diagnostics '{}' --json copy
google_ads.google_ads_list_accessible_customers Read read List Google Ads customers directly accessible to the OAuth user.
none kosmo integrations:call google_ads.google_ads_list_accessible_customers '{}' --json copy kosmo integrations:google_ads google_ads_list_accessible_customers '{}' --json copy
google_ads.google_ads_list_customer_clients Read read List managed client accounts under a manager or customer.
none kosmo integrations:call google_ads.google_ads_list_customer_clients '{}' --json copy kosmo integrations:google_ads google_ads_list_customer_clients '{}' --json copy
google_ads.google_ads_search Read read Run a paginated Google Ads Query Language search.
none kosmo integrations:call google_ads.google_ads_search '{}' --json copy kosmo integrations:google_ads google_ads_search '{}' --json copy
google_ads.google_ads_search_stream Read read Run a streaming GAQL report for larger result sets.
none kosmo integrations:call google_ads.google_ads_search_stream '{}' --json copy kosmo integrations:google_ads google_ads_search_stream '{}' --json copy
google_ads.google_ads_campaign_report Read read Run a normalized campaign performance report.
none kosmo integrations:call google_ads.google_ads_campaign_report '{}' --json copy kosmo integrations:google_ads google_ads_campaign_report '{}' --json copy
google_ads.google_ads_ad_group_report Read read Run a normalized ad group performance report.
none kosmo integrations:call google_ads.google_ads_ad_group_report '{}' --json copy kosmo integrations:google_ads google_ads_ad_group_report '{}' --json copy
google_ads.google_ads_ad_report Read read Run an ad and creative performance report.
none kosmo integrations:call google_ads.google_ads_ad_report '{}' --json copy kosmo integrations:google_ads google_ads_ad_report '{}' --json copy
google_ads.google_ads_keyword_report Read read Run a keyword performance report.
none kosmo integrations:call google_ads.google_ads_keyword_report '{}' --json copy kosmo integrations:google_ads google_ads_keyword_report '{}' --json copy
google_ads.google_ads_search_term_report Read read Analyze search terms and query performance.
none kosmo integrations:call google_ads.google_ads_search_term_report '{}' --json copy kosmo integrations:google_ads google_ads_search_term_report '{}' --json copy
google_ads.google_ads_asset_report Read read Report on assets and policy/performance labels.
none kosmo integrations:call google_ads.google_ads_asset_report '{}' --json copy kosmo integrations:google_ads google_ads_asset_report '{}' --json copy
google_ads.google_ads_performance_max_report Read read Report on Performance Max campaigns and asset groups.
none kosmo integrations:call google_ads.google_ads_performance_max_report '{}' --json copy kosmo integrations:google_ads google_ads_performance_max_report '{}' --json copy
google_ads.google_ads_list_campaigns Read read List campaigns with status, budget, channel, and optimization fields.
none kosmo integrations:call google_ads.google_ads_list_campaigns '{}' --json copy kosmo integrations:google_ads google_ads_list_campaigns '{}' --json copy
google_ads.google_ads_create_campaign_budget Write write Create a campaign budget with micros normalization.
none kosmo integrations:call google_ads.google_ads_create_campaign_budget '{}' --json copy kosmo integrations:google_ads google_ads_create_campaign_budget '{}' --json copy
google_ads.google_ads_manage_campaign Write write Create, update, pause, enable, or remove campaigns.
none kosmo integrations:call google_ads.google_ads_manage_campaign '{}' --json copy kosmo integrations:google_ads google_ads_manage_campaign '{}' --json copy
google_ads.google_ads_manage_ad_group Write write Create, update, pause, enable, or remove ad groups.
none kosmo integrations:call google_ads.google_ads_manage_ad_group '{}' --json copy kosmo integrations:google_ads google_ads_manage_ad_group '{}' --json copy
google_ads.google_ads_manage_keyword Write write Add, update, or remove keyword criteria.
none kosmo integrations:call google_ads.google_ads_manage_keyword '{}' --json copy kosmo integrations:google_ads google_ads_manage_keyword '{}' --json copy
google_ads.google_ads_manage_ad Write write Create or manage responsive search ads and ad statuses.
none kosmo integrations:call google_ads.google_ads_manage_ad '{}' --json copy kosmo integrations:google_ads google_ads_manage_ad '{}' --json copy
google_ads.google_ads_manage_campaign_criteria Write write Add or remove location, language, schedule, and negative criteria.
none kosmo integrations:call google_ads.google_ads_manage_campaign_criteria '{}' --json copy kosmo integrations:google_ads google_ads_manage_campaign_criteria '{}' --json copy
google_ads.google_ads_upload_image_asset Write write Create image assets from pre-encoded image metadata.
none kosmo integrations:call google_ads.google_ads_upload_image_asset '{}' --json copy kosmo integrations:google_ads google_ads_upload_image_asset '{}' --json copy
google_ads.google_ads_link_asset Write write Link an asset to a customer, campaign, ad group, or asset group.
none kosmo integrations:call google_ads.google_ads_link_asset '{}' --json copy kosmo integrations:google_ads google_ads_link_asset '{}' --json copy
google_ads.google_ads_create_search_campaign Write write Create a complete paused Search campaign with budget, ad group, keywords, targets, and RSA.
none kosmo integrations:call google_ads.google_ads_create_search_campaign '{}' --json copy kosmo integrations:google_ads google_ads_create_search_campaign '{}' --json copy
google_ads.google_ads_create_performance_max_campaign Write write Create a governed Performance Max campaign using mixed mutate operations.
none kosmo integrations:call google_ads.google_ads_create_performance_max_campaign '{}' --json copy kosmo integrations:google_ads google_ads_create_performance_max_campaign '{}' --json copy
google_ads.google_ads_generate_keyword_ideas Read read Generate keyword ideas and forecasts inputs.
none kosmo integrations:call google_ads.google_ads_generate_keyword_ideas '{}' --json copy kosmo integrations:google_ads google_ads_generate_keyword_ideas '{}' --json copy
google_ads.google_ads_list_recommendations Read read List optimization recommendations.
none kosmo integrations:call google_ads.google_ads_list_recommendations '{}' --json copy kosmo integrations:google_ads google_ads_list_recommendations '{}' --json copy
google_ads.google_ads_apply_recommendations Write write Apply selected recommendations with explicit confirmation.
none kosmo integrations:call google_ads.google_ads_apply_recommendations '{}' --json copy kosmo integrations:google_ads google_ads_apply_recommendations '{}' --json copy
google_ads.google_ads_upload_click_conversions Write write Upload offline or enhanced lead click conversions.
none kosmo integrations:call google_ads.google_ads_upload_click_conversions '{}' --json copy kosmo integrations:google_ads google_ads_upload_click_conversions '{}' --json copy
google_ads.google_ads_upload_call_conversions Write write Upload offline call conversions.
none kosmo integrations:call google_ads.google_ads_upload_call_conversions '{}' --json copy kosmo integrations:google_ads google_ads_upload_call_conversions '{}' --json copy
google_ads.google_ads_create_customer_match_list Write write Create a CRM-based user list for Customer Match.
none kosmo integrations:call google_ads.google_ads_create_customer_match_list '{}' --json copy kosmo integrations:google_ads google_ads_create_customer_match_list '{}' --json copy
google_ads.google_ads_run_customer_match_job Write write Create, populate, and run an OfflineUserDataJob for audience uploads.
none kosmo integrations:call google_ads.google_ads_run_customer_match_job '{}' --json copy kosmo integrations:google_ads google_ads_run_customer_match_job '{}' --json copy
google_ads.google_ads_get_change_status Read read List changed resources for sync workflows.
none kosmo integrations:call google_ads.google_ads_get_change_status '{}' --json copy kosmo integrations:google_ads google_ads_get_change_status '{}' --json copy
google_ads.google_ads_get_change_events Read read List field-level recent account changes.
none kosmo integrations:call google_ads.google_ads_get_change_events '{}' --json copy kosmo integrations:google_ads google_ads_get_change_events '{}' --json copy
google_ads.google_ads_create_batch_job Write write Create a batch job for large async operations.
none kosmo integrations:call google_ads.google_ads_create_batch_job '{}' --json copy kosmo integrations:google_ads google_ads_create_batch_job '{}' --json copy
google_ads.google_ads_mutate Write write Governed resource-specific or mixed mutate escape hatch.
none kosmo integrations:call google_ads.google_ads_mutate '{}' --json copy kosmo integrations:google_ads google_ads_mutate '{}' --json copy
google_ads.google_ads_raw_request Write write Low-level versioned Google Ads API request for advanced coverage.
none kosmo integrations:call google_ads.google_ads_raw_request '{}' --json copy kosmo integrations:google_ads google_ads_raw_request '{}' --json copy
google_ads.google_ads_list_billing_setups Read read List billing setup resources.
none kosmo integrations:call google_ads.google_ads_list_billing_setups '{}' --json copy kosmo integrations:google_ads google_ads_list_billing_setups '{}' --json copy
google_ads.google_ads_account_budget_proposal Write write Create account budget proposal operations for monthly invoicing accounts.
none kosmo integrations:call google_ads.google_ads_account_budget_proposal '{}' --json copy kosmo integrations:google_ads google_ads_account_budget_proposal '{}' --json copy
google_ads.google_ads_invite_user Write write Invite a user to a Google Ads account.
none kosmo integrations:call google_ads.google_ads_invite_user '{}' --json copy kosmo integrations:google_ads google_ads_invite_user '{}' --json copy Function Schemas Use these parameter tables when building CLI payloads without calling integrations:schema first.
Operation Read read
Schema command kosmo integrations:schema google_ads.google_ads_diagnostics --json
Operation Read read
Schema command kosmo integrations:schema google_ads.google_ads_list_accessible_customers --json
Operation Read read
Schema command kosmo integrations:schema google_ads.google_ads_list_customer_clients --json
Operation Read read
Schema command kosmo integrations:schema google_ads.google_ads_search --json
Operation Read read
Schema command kosmo integrations:schema google_ads.google_ads_search_stream --json
Operation Read read
Schema command kosmo integrations:schema google_ads.google_ads_campaign_report --json
Operation Read read
Schema command kosmo integrations:schema google_ads.google_ads_ad_group_report --json
Operation Read read
Schema command kosmo integrations:schema google_ads.google_ads_ad_report --json
Operation Read read
Schema command kosmo integrations:schema google_ads.google_ads_keyword_report --json
Operation Read read
Schema command kosmo integrations:schema google_ads.google_ads_search_term_report --json
Operation Read read
Schema command kosmo integrations:schema google_ads.google_ads_asset_report --json
Operation Read read
Schema command kosmo integrations:schema google_ads.google_ads_performance_max_report --json
Operation Read read
Schema command kosmo integrations:schema google_ads.google_ads_list_campaigns --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_create_campaign_budget --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_manage_campaign --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_manage_ad_group --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_manage_keyword --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_manage_ad --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_manage_campaign_criteria --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_upload_image_asset --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_link_asset --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_create_search_campaign --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_create_performance_max_campaign --json
Operation Read read
Schema command kosmo integrations:schema google_ads.google_ads_generate_keyword_ideas --json
Operation Read read
Schema command kosmo integrations:schema google_ads.google_ads_list_recommendations --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_apply_recommendations --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_upload_click_conversions --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_upload_call_conversions --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_create_customer_match_list --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_run_customer_match_job --json
Operation Read read
Schema command kosmo integrations:schema google_ads.google_ads_get_change_status --json
Operation Read read
Schema command kosmo integrations:schema google_ads.google_ads_get_change_events --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_create_batch_job --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_mutate --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_raw_request --json
Operation Read read
Schema command kosmo integrations:schema google_ads.google_ads_list_billing_setups --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_account_budget_proposal --json
Operation Write write
Schema command kosmo integrations:schema google_ads.google_ads_invite_user --json Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.