I have been trying for Campaign 360 API and tried with the following code
api_name = 'dfareporting'
api_version = 'v3.5'
api_scopes = ['https://www.googleapis.com/auth/dfareporting',
'https://www.googleapis.com/auth/dfatrafficking',
'https://www.googleapis.com/auth/ddmconversions']
store = Storage(GOOGLE_CM360_CREDENTIAL_PATH)
credentials = store.get()
if not credentials or credentials.invalid:
parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter,
parents=[tools.argparser])
flow = client.OAuth2WebServerFlow(
client_id= <my client id>,
client_secret=<my client password>,
scope=api_scopes)
credentials = tools.run_flow(flow, store, parser.parse_args([]))
service = discovery.build(api_name , api_version , http=credentials.authorize(httplib2.Http()))
And my result is Error like this "name: dfareporting version: v3.5" But this code works at version 3.4
What is problem? How can I solve this?
CodePudding user response:
