-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.config
198 lines (172 loc) · 9.56 KB
/
App.config
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="AdWordsApi" type="System.Configuration.DictionarySectionHandler" />
</configSections>
<startup>
<supportedUploadOfflineConvertiontime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
<supportedUploadOfflineConvertiontime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
<AdWordsApi>
<!--
This section contains the settings specific to AdWords and DoubleClick Ad
Exchange Buyer API DotNet Client Library. You can use the App.config /
Web.config for quickly configuring and running a simple application.
However, it is not mandatory to provide your settings in the config file,
you may also set or override these settings at runtime. See
https://github.com/googleads/googleads-dotnet-lib/wiki/Getting-Started
for details.
You can refer to
https://github.com/googleads/googleads-dotnet-lib/wiki/Understanding-App.config
for detailed explanation of each configuration key.
-->
<!-- Settings related to SOAP logging. -->
<add key="MaskCredentials" value="true" />
<!-- Settings related to general library behaviour. -->
<!-- Use this key to automatically retry a call that failed due to a
recoverable error like expired credentials. -->
<!-- <add key="RetryCount" value="1" /> -->
<!-- Set the service timeout in milliseconds. -->
<!-- <add key="Timeout" value="100000" /> -->
<!-- Use this key to enable or disable gzip compression in SOAP requests.-->
<add key="EnableGzipCompression" value="true" />
<!-- Set this flag to true to include the list of client library utilities
that your code uses in the user agent string.-->
<add key="IncludeUtilitiesInUserAgent" value="true" />
<!-- Proxy settings for library. -->
<add key="ProxyServer" value="" />
<add key="ProxyUser" value="" />
<add key="ProxyPassword" value="" />
<add key="ProxyDomain" value="" />
<!-- Settings specific to AdWords API.-->
<!-- The name to uniquely identify your application. The client library
will include this text in the user agent when sending requests to the
server. This name may be used to uniquely identify your application's
API requests from the server logs. This field is optional. If
specified, the value should contain only printable ASCII characters.
If this field is not set, a default value of "unknown" will be used. -->
<!-- <add key="UserAgent" value="INSERT_YOUR_COMPANY_OR_APPLICATION_NAME_HERE" /> -->
<!-- See https://developers.google.com/adwords/api/docs/signingup for
instructions on signing up for a developer token.-->
<add key="DeveloperToken" value="jccmfpy6dSX53huqQDOfzA" />
<!-- If your application is a simple script that makes calls to only a
single Adwords account, then you can set your customer ID here. If you
have multiple customer IDs to deal with in your account, then you can
comment out this key and set the value at runtime by setting
((AdWordsAppConfig) user.Config).ClientCustomerId = "xxx";
<add key="ClientCustomerId" value="6321543736" />
-->
<!-- Use the following settings to skip the report header and summary rows
when downloading a report in CSV, TSV or their gzipped formats. -->
<add key="SkipReportHeader" value="false" />
<add key="SkipReportSummary" value="false" />
<add key="SkipColumnHeader" value="false" />
<!-- Use the following setting to include zero impression rows when
downloading a report. If this setting is commented out, then the server
behaves as explained in
https://developers.google.com/adwords/api/docs/guides/zero-impression-reports#default_behavior.
-->
<!-- <add key="IncludeZeroImpressions" value="true" /> -->
<!-- Use the following setting to return enum values as actual enum values
instead of display values when downloading a report. If this setting
is commented out, then the server behaves as explained in
https://developers.google.com/adwords/api/docs/guides/reporting#request-headers.
-->
<!-- <add key="UseRawEnumValues" value="true" /> -->
<!-- Settings specific to use OAuth2 as authentication mechanism. You could
run Common\Util\OAuth2TokenGenerator.cs to generate this section of the
config file.
-->
<!-- Provide the OAuth2 client ID and secret. You can create one from
https://console.developers.google.com. See
https://github.com/googleads/googleads-dotnet-lib/wiki/Using-OAuth2
for more details.
<add key="AuthorizationMethod" value="OAuth2" />
<add key="OAuth2ClientId" value="84927887988-bgmcnnpkbgbjb36d7m0aq0mq870dluip.apps.googleusercontent.com" />
<add key="OAuth2ClientSecret" value="l61O6QbQV0accYbF5JZyhrKs" />
-->
<!-- The following OAuth2 settings are optional. -->
<!-- Provide a different OAuth2 scope if required. Multiple scopes should be
separated by spaces. -->
<!-- <add key="OAuth2Scope" value="INSERT_OAUTH2_SCOPE_HERE" /> -->
<!-- Use the following keys if you want to use Web / Installed application
OAuth flow.-->
<add key="OAuth2Mode" value="SERVICE_ACCOUNT" />
<!-- If you are using a single AdWords manager account's credentials to make
calls to all your accounts, then you can run OAuth2TokenGenerator.cs to
generate a RefreshToken for that account and set this key in your
application's App.config / Web.config. If you are making calls to
multiple unrelated accounts, then you need to implement OAuth2 flow in
your account and set this key at runtime. See OAuth folder under
Examples folder for a web and a console application example.
-->
<!-- Optional: Specify an OAuth2 redirect url if you are building a
web application and implementing OAuth2 web flow in your application.
-->
<!-- <add key="OAuth2RedirectUri" value="" /> -->
<!-- Use the following keys if you want to use OAuth2 service account flow.
You should comment out all the keys for Web / Installed application
OAuth flow above. See
https://developers.google.com/adwords/api/docs/guides/service-accounts
https://github.com/googleads/googleads-dotnet-lib/wiki/Using-OAuth2
for more details.
-->
<!-- -->
<add key="OAuth2Mode" value="SERVICE_ACCOUNT" />
<add key="OAuth2PrnEmail" value="[email protected]" />
<add key="OAuth2SecretsJsonPath" value="oauth2_secrets.json" />
</AdWordsApi>
<system.net>
<settings>
<httpWebRequest maximumErrorResponseLength="-1" />
</settings>
</system.net>
<system.diagnostics>
<sources>
<source name="AdsClientLibs.DeprecationMessages" switchName="AdsClientLibs.DeprecationMessages" switchType="System.Diagnostics.SourceSwitch">
<listeners>
<add name="myListener" type="System.Diagnostics.EventLogTraceListener" initializeData="Application" />
</listeners>
</source>
<source name="AdsClientLibs.DetailedRequestLogs" switchName="AdsClientLibs.DetailedRequestLogs" switchType="System.Diagnostics.SourceSwitch">
<listeners>
<add name="detailedRequestLogListener" type="System.Diagnostics.ConsoleTraceListener" initializeData="true" />
<!-- Use the following to log to file. Modify the initializeData
attribute to control the path to the detailed request log file.
<add name="detailedRequestLogListener" type="System.Diagnostics.TextWriterTraceListener"
initializeData="C:\Logs\AdWords\detailed_logs.log"/>
-->
<remove name="Default" />
</listeners>
</source>
<source name="AdsClientLibs.SummaryRequestLogs" switchName="AdsClientLibs.SummaryRequestLogs" switchType="System.Diagnostics.SourceSwitch">
<listeners>
<add name="summaryRequestLogListener" type="System.Diagnostics.ConsoleTraceListener" initializeData="true" />
<!-- Use the following to log to file. Modify the initializeData
attribute to control the path to the summary request log file.
<add name="summaryRequestLogListener" type="System.Diagnostics.TextWriterTraceListener"
initializeData="C:\Logs\AdWords\summary_logs.log"/>
-->
<remove name="Default" />
</listeners>
</source>
</sources>
<switches>
<!-- Use this trace switch to control the deprecation trace messages
written by Ads* .NET libraries. The default is level is set to
Warning. To disable all messages, set this value to Off. See
http://msdn.microsoft.com/en-us/library/system.diagnostics.sourcelevels.aspx
for all possible values this key can take. -->
<add name="AdsClientLibs.DeprecationMessages" value="Warning" />
<!-- Use this trace switch to control the detailed request logs written by Ads*
.NET libraries. The default level is set to Off. Logs are generated at
both the Error and Information levels. -->
<add name="AdsClientLibs.DetailedRequestLogs" value="Off" />
<!-- Use this trace switch to control the summary request logs written by
Ads* .NET libraries. The default level is set to Off. Logs are
generated at both the Error and Information levels. -->
<add name="AdsClientLibs.SummaryRequestLogs" value="Off" />
</switches>
<trace autoflush="true" />
</system.diagnostics>
</configuration>