Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
google-ads-python/google-ads.yaml at main · googleads/google-ads-python · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
googleads
google-ads-python
Repository navigation
Code
Issues
3
(3)
Pull requests
6
(6)
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
google-ads-python
/
google-ads.yaml
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
91 lines (84 loc) · 5.6 KB
main
Breadcrumbs
google-ads-python
/
google-ads.yaml
Copy path
Top
File metadata and controls
Code
Blame
91 lines (84 loc) · 5.6 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#
Developer token
#
#########################################################################################
#
A developer token is required when making requests to the Google Ads API regardless of #
#
whether you're using the OAuth2 or Service Account configurations. To obtain a #
#
developer token see: #
#
https://developers.google.com/google-ads/api/docs/first-call/dev-token #
#
#########################################################################################
developer_token
:
INSERT_DEVELOPER_TOKEN_HERE
#
Use proto plus
#
#########################################################################################
#
This parameter specifies whether the client library should return proto-plus messages #
#
or protobuf messages. This value should be explicitly set to either "True" or "False", #
#
For more information on the differences between these two types, see our Protobuf #
#
Messages guide: #
#
https://developers.google.com/google-ads/api/docs/client-libs/python/protobuf-messages #
#
#########################################################################################
use_proto_plus
:
INSERT_USE_PROTO_PLUS_FLAG_HERE
#
OAuth2 configuration
#
#########################################################################################
#
The below configuration parameters are used to authenticate using the recommended #
#
OAuth2 flow. For more information on authenticating with OAuth2 see: #
#
https://developers.google.com/google-ads/api/docs/oauth/overview #
#
#########################################################################################
client_id
:
INSERT_OAUTH2_CLIENT_ID_HERE
client_secret
:
INSERT_OAUTH2_CLIENT_SECRET_HERE
refresh_token
:
INSERT_REFRESH_TOKEN_HERE
#
Service Account configuration
#
#########################################################################################
#
To authenticate with a service account add the appropriate values to the below #
#
configuration parameters and remove the three OAuth2 credentials above. The #
#
"json_key_file_path" value should be a path to your local private key json file, and #
#
"impersonated_email" should be the email address that is being used to impersonate the #
#
credentials making requests. for more information on service accounts, see: #
#
https://developers.google.com/google-ads/api/docs/oauth/service-accounts. #
#
If you're authorizing with direct account access, then the "impersonated_email" #
#
configuration is optional. #
#
#########################################################################################
#
json_key_file_path: INSERT_PATH_TO_JSON_KEY_FILE_HERE
#
impersonated_email: INSERT_DOMAIN_WIDE_DELEGATION_ACCOUNT
#
Login customer ID configuration
#
#########################################################################################
#
Required for manager accounts only: Specify the login customer ID used to authenticate #
#
API calls. This will be the customer ID of the authenticated manager account. It #
#
should be set without dashes, for example: 1234567890 instead of 123-456-7890. You can #
#
also specify this later in code if your application uses multiple manager account + #
#
OAuth pairs. #
#
#########################################################################################
login_customer_id
:
INSERT_LOGIN_CUSTOMER_ID_HERE
#
Logging configuration
#
#########################################################################################
#
Below you may specify the logging configuration. This will be provided as an input to #
#
logging.config.dictConfig. Use the "level" block under the root logger configuration #
#
to adjust the logging level. Note in the "format" field that log messages are #
#
truncated to 5000 characters by default. You can change this to any length by removing #
#
the ".5000" portion or changing it to a different number. #
#
########################################################################################
#
logging:
#
version: 1
#
disable_existing_loggers: False
#
formatters:
#
default_fmt:
#
format: '[%(asctime)s - %(levelname)s] %(message).5000s'
#
datefmt: '%Y-%m-%d %H:%M:%S'
#
handlers:
#
default_handler:
#
class: logging.StreamHandler
#
formatter: default_fmt
#
loggers:
#
"":
#
handlers: [default_handler]
#
level: INFO
#
Proxy configuration
#
#########################################################################################
#
Below you can specify an optional proxy configuration to be used by requests. If you #
#
don't have username and password, just specify host and port. #
#
########################################################################################
#
http_proxy: http://user:password@localhost:8000
#
Application default credentials configuration
#
#########################################################################################
#
Below you can specify whether to initialize the library using Application Default #
#
Credentials (ADC). To understand how ADC discovers credentials in a given environment, #
#
see: https://developers.google.com/identity/protocols/application-default-credentials #
#
########################################################################################
#
use_application_default_credentials: True
You can’t perform that action at this time.