Hi Fábio,
Thanks for reaching out to the Google Ads API Forum.
You may note that you don’t need to replace "login_customer_id" by "customer_id" in the YAML file. You will need to ensure that the user / email address you used to generate the credentials indeed has access to the account in your request. If the user / email address has access or is associated with the MCC / manager account, you will need to specify the said MCC / manager account's ID as the value of the login-customer-id field.
However, regarding the error message “The following arguments are required: -c/--customer_id”, you may need to pass the customer_id inside get_campaigns.py code example. You may see below code snippet where you may need to pass customer_id.
: : : try: main(googleads_client, args.customer_id) except GoogleAdsException as ex: : :
If you’re running Python client library code using terminal, then the value is passed via the command line when executing the example, so for instance, note the -c flag in the below command:
python examples/basic_operations/get_campaigns.py -c 123456789
Let us know if this helps.
![]() |
Google Ads API Team |