Hi,
I have an issue with the API.
Since yesterday I'm no longer able to upload media bundles.
It's easily reproducible by executing the example
on
https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201710/misc/upload_media_bundle.py
the error I get is "[OperationAccessDenied.ACTION_NOT_PERMITTED @ class
com.google.ads.api.serviceimpls.campaignmgmt.media.UploadAction]" (attached
you can find the complete log).
Yes, the refresh token I'm using is the correct one, I can successfully
execute all the other examples of that repo.
Also (always since yesterday) when uploading *the same* bundle with a bulk
job I get this error:
"OrderedDict([('@xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'),
('@xsi:type', 'MediaBundleError'), ('fieldPath',
'operations[1].operand.ad.templateElements[0].fields[0].fieldMedia.data'),
('fieldPathElements', [OrderedDict([('field', 'operations'), ('index',
'1')]), OrderedDict([('field', 'operand')]), OrderedDict([('field',
'ad')]), OrderedDict([('field', 'templateElements'), ('index', '0')]),
OrderedDict([('field', 'fields'), ('index', '0')]), OrderedDict([('field',
'fieldMedia')]), OrderedDict([('field', 'data')])]), ('trigger', None),
('errorString', 'MediaBundleError.INVALID_MEDIA_BUNDLE'), ('ApiError.Type',
'MediaBundleError'), ('reason', 'INVALID_MEDIA_BUNDLE')])"
What is the reason of this sudden change of behaviour?
Cheers
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/56ce69e9-41a9-4e65-a673-7ce29bb169a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Response summary - {'requestId': 0005603a69c019400a37be46e90103f6,
'responseTime': 87, 'serviceName': MediaService, 'methodName': upload,
'operations': 1, 'isFault': True, 'faultMessage':
'[OperationAccessDenied.ACTION_NOT_PERMITTED @ class
com.google.ads.api.serviceimpls.campaignmgmt.media.UploadAction]'}
Traceback (most recent call last):
File
"/Users/stefano/.virtualenvs/wbrp_scripts_py3/lib/python3.6/site-packages/googleads/util.py",
line 123, in PatchedHttpTransportSend
fp = self.u2open(u2request)
File
"/Users/stefano/.virtualenvs/wbrp_scripts_py3/lib/python3.6/site-packages/suds/transport/http.py",
line 132, in u2open
return url.open(u2request, timeout=tm)
File
"/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py",
line 532, in open
response = meth(req, response)
File
"/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py",
line 642, in http_response
'http', request, response, code, msg, hdrs)
File
"/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py",
line 570, in error
return self._call_chain(*args)
File
"/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py",
line 504, in _call_chain
result = func(*args)
File
"/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py",
line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Internal Server Error
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/Users/stefano/.virtualenvs/wbrp_scripts_py3/lib/python3.6/site-packages/suds/client.py",
line 613, in send
reply = self.options.transport.send(request)
File
"/Users/stefano/.virtualenvs/wbrp_scripts_py3/lib/python3.6/site-packages/googleads/util.py",
line 134, in PatchedHttpTransportSend
raise suds.transport.TransportError(e.msg, e.code, e.fp)
suds.transport.TransportError: Internal Server Error
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "examples/adwords/v201710/misc/upload_media_bundle.py", line 60, in
<module>
main(adwords_client)
File "examples/adwords/v201710/misc/upload_media_bundle.py", line 39, in main
response = media_service.upload(media)
File
"/Users/stefano/.virtualenvs/wbrp_scripts_py3/lib/python3.6/site-packages/googleads/common.py",
line 767, in MakeSoapRequest
self._packer) for arg in args])
File
"/Users/stefano/.virtualenvs/wbrp_scripts_py3/lib/python3.6/site-packages/suds/client.py",
line 521, in __call__
return client.invoke(args, kwargs)
File
"/Users/stefano/.virtualenvs/wbrp_scripts_py3/lib/python3.6/site-packages/suds/client.py",
line 581, in invoke
result = self.send(soapenv)
File
"/Users/stefano/.virtualenvs/wbrp_scripts_py3/lib/python3.6/site-packages/suds/client.py",
line 619, in send
description=tostr(e), original_soapenv=original_soapenv)
File
"/Users/stefano/.virtualenvs/wbrp_scripts_py3/lib/python3.6/site-packages/suds/client.py",
line 670, in process_reply
raise WebFault(fault, replyroot)
suds.WebFault: Server raised fault:
'[OperationAccessDenied.ACTION_NOT_PERMITTED @ class
com.google.ads.api.serviceimpls.campaignmgmt.media.UploadAction]'