303,
'build',
'raise UnknownApiNameOrVersion("name: %s version: %s" % (serviceName, version))')],
'type': "<class 'googleapiclient.errors.UnknownApiNameOrVersion'>",
'value': 'name: realtimebidding version: v1.0'},
'message': None},
Our code are still using python 2.7 and not able to upgrade to python. 3.x for our various reasons. Next we are going with google-api-python-client==1.12.8. from google-api-python-client==1.6.5. but not going up to 2.x
Next On credentials and scope
From using the following values
"SCOPE": "https://www.googleapis.com/auth/adexchange.buyer",
"VERSION": "v1.3",
"ACCOUNT_ID": ?????????,
"SERVICE_ACCOUNT_EMAIL": "?????@developer.gserviceaccount.com",
"KEY_FILE": "?????????.p12",
Changing to or staying with.
different Scope but same key file, same email and account_id
"SERVICE_ACCOUNT_EMAIL": "?????@developer.gserviceaccount.com",
"KEY_FILE": "?????????.p12",
"SCOPE": "https://www.googleapis.com/auth/realtime-bidding",
2. Is the Scope value correct? do I need to set http?
3. Do I need to acquire a different key and/or key file type when performing our migration or can we stay with what we are using?
The exact initialization code as follows
http = httplib2.Http()
credentials = ServiceAccountCredentials.from_p12_keyfile(
SERVICE_ACCOUNT_EMAIL,
os.path.dirname(os.path.realpath(__file__)) + "/" + "KEY_FILE",
scopes=SCOPE
)
http = credentials.authorize(http)
self.client = build('realtimebidding', version=VERSION, http=http)
Any other info and hints to get pass this API exception trying to connect and make the API request will be great (our task is submitting Creatives supported now in the real time bidding API from the current adexchangebuyer creative API)
Thanks very much
Chunyee Leung
Inmar Intelligence