Skip to content

Commit 7618fdb

Browse files
authored
Add sample ads.properties file (#341)
1 parent 0136a2a commit 7618fdb

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

ads.properties.sample

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# ads.properties
2+
#
3+
# Defines configuration for Google Ads API client library for Java.
4+
#
5+
# See our developer documentation for more details:
6+
# https://developers.google.com/google-ads/api/docs/client-libs/java/quick-start
7+
#
8+
# - By default this is searched for in ~/ads.properties.
9+
# e.g. GoogleAdsClient.newBuilder().fromPropertiesFile()
10+
#
11+
# - Can load from an arbitrary path.
12+
# e.g. GoogleAdsClient.newBuilder().fromPropertiesFile("some/path")
13+
#
14+
# - All settings in this file can be set & overridden programmatically.
15+
# e.g. GoogleAdsClient.newBuilder()
16+
# .fromPropertiesFile() // optionally load from config file.
17+
# .setDeveloperToken("your_token")
18+
19+
# ------------------------------- OAuth ---------------------------------------
20+
21+
# OAuth client ID
22+
#
23+
# Specifies the client ID that is used for Google's OAuth 2 API.
24+
#
25+
# - Must use the same client ID which originally generated the refresh token.
26+
# - Created and managed via http://console.developers.google.com
27+
# - Doesn't grant access to any specific ad account.
28+
#api.googleads.clientId=
29+
30+
# OAuth client secret
31+
#
32+
# Specifies the client secret that is used for Google's OAuth 2 API.
33+
#
34+
# - Must be the secret associated with the OAuth clientId.
35+
# - Created and managed via http://console.developers.google.com.
36+
#api.googleads.clientSecret=
37+
38+
# OAuth refresh token
39+
#
40+
# Credential which authorizes access to a Google account.
41+
#
42+
# - See guide for instructions on how to obtain a refresh token.
43+
# https://developers.google.com/google-ads/api/docs/oauth/client-library
44+
# - Provides access to all Google Ads accounts on which the associated Google
45+
# account is a user.
46+
# - Ad account is specified by the customerId in each request.
47+
#api.googleads.refreshToken=
48+
49+
# -------------------------- Google Ads API -----------------------------------
50+
51+
# Developer token
52+
#
53+
# Specifies the credential used to access the Google Ads API.
54+
#
55+
# - Grants access to the API, not any Google account or Google Ads account.
56+
# - Associated with a Google Ads manager accoount.
57+
# - Found by logging into the manager account on http://ads.google.com
58+
# and navigating to -> Tools & Settings -> API Center.
59+
# - An unapproved developer token can be used to issue requests against test
60+
# accounts.
61+
#api.googleads.developerToken=
62+
63+
# Login customer ID
64+
#
65+
# Specifies an ad account which grants access to ad accounts.
66+
#
67+
# - Must be specified if your access to an ad account is via a manager account.
68+
# - May be specified in all requests if your Google user has direct access to
69+
# the ad account.
70+
# - Ad account access can be managed via http://ads.google.com and navigating
71+
# to Tools & Settings -> Account Access
72+
#api.googleads.loginCustomerId=
73+

0 commit comments

Comments
 (0)