Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17dfefa

Browse files
committed
po
1 parent 310a488 commit 17dfefa

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"installed":{"client_id":"364534642169-0h82sbsnl48ks125o3lsb66trocbln08.apps.googleusercontent.com","project_id":"gtm-ks5qhpr-mznjz","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"n0_kEpCa_m72Ed02iPc7Vg42","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}

examples/basic_operations/get_campaigns.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def main(client, customer_id):
4949
if __name__ == "__main__":
5050
# GoogleAdsClient will read the google-ads.yaml configuration file in the
5151
# home directory if none is specified.
52-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
52+
googleads_client = GoogleAdsClient.load_from_storage(r"c:\programmation\python\google-ads-python\google-ads.yaml")
5353

5454
parser = argparse.ArgumentParser(
5555
description="Lists all campaigns for specified customer."

google-ads.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
# configurations. To obtain a developer token see: #
66
# https://developers.google.com/google-ads/api/docs/first-call/dev-token #
77
###############################################################################
8-
developer_token: INSERT_DEVELOPER_TOKEN_HERE
8+
developer_token: DV7cPVeC0aDrtiKe9U2xKQ
99

1010
# OAuth2 configuration
1111
###############################################################################
1212
# The below configuration parameters are used to authenticate using the #
1313
# recommended OAuth2 flow. For more information on authenticating with OAuth2 #
1414
# see: https://developers.google.com/google-ads/api/docs/oauth/overview #
1515
###############################################################################
16-
client_id: INSERT_OAUTH2_CLIENT_ID_HERE
17-
client_secret: INSERT_OAUTH2_CLIENT_SECRET_HERE
18-
refresh_token: INSERT_REFRESH_TOKEN_HERE
16+
client_id: 364534642169-0h82sbsnl48ks125o3lsb66trocbln08.apps.googleusercontent.com
17+
client_secret: n0_kEpCa_m72Ed02iPc7Vg42
18+
refresh_token: 1//09vCf2vEnmFtZCgYIARAAGAkSNwF-L9Ir2UMK7e8RAJ9E999WJ4XJ5qDAgjhXQKDm1Mp3LAzEUSWESIz1eBz1uDQEoN-E9Y1Ny-s
1919

2020
# Service Account configuration
2121
###############################################################################

0 commit comments

Comments
 (0)