Hi, I’ve checked provious dicussion the group, here is my code of following instructions of logging.
I have used this code to create trial campaign 2weeks ago and it worked well. Now get below error, and I get no more logging when after following instructions.
trial = {
'draftId': available_pool.loc[index]['draftId'],
'baseCampaignId': available_pool.loc[index]['draft_campaign_id'],
'name': '%s_value' %available_pool.loc[index]['CampaignName'],
'trafficSplitPercent': 30,
'startDate': '2018-10-01',
'endDate': '2019-01-26'
}
trial_operation = {'operator': 'ADD', 'operand': trial}
import logging
logging.basicConfig(level=logging.INFO)
logging.getLogger('suds.transport').setLevel(logging.DEBUG)
trial_result = trial_service.mutate([trial_operation])
[WARNING] 2018-09-28 09:18:55,308 googleads.soap(363): Error summary: {'faultMessage': '[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro]', 'requestId': '000576f0cfd8ecd00a37ac0b110b3534', 'serviceName': 'TrialService', 'methodName': 'mutate', 'operations': '1', 'responseTime': '337'}
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/googleads/common.py", line 1371, in MakeSoapRequest
*packed_args, _soapheaders=soap_headers)['body']['rval']
File "/usr/local/lib/python3.6/site-packages/zeep/client.py", line 45, in __call__
self._op_name, args, kwargs)
File "/usr/local/lib/python3.6/site-packages/zeep/wsdl/bindings/soap.py", line 121, in send
return self.process_reply(client, operation_obj, response)
File "/usr/local/lib/python3.6/site-packages/zeep/wsdl/bindings/soap.py", line 186, in process_reply
return self.process_error(doc, operation)
File "/usr/local/lib/python3.6/site-packages/zeep/wsdl/bindings/soap.py", line 291, in process_error
detail=fault_node.find('detail'))
zeep.exceptions.Fault: [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/stellayang/Library/Python/3.6/lib/python/site-packages/IPython/core/interactiveshell.py", line 2881, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-531-055786788567>", line 15, in <module>
trial_result = trial_service.mutate([trial_operation])['value']
File "/usr/local/lib/python3.6/site-packages/googleads/common.py", line 1383, in MakeSoapRequest
e.detail, errors=error_list, message=e.message)
googleads.errors.GoogleAdsServerFault: [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro]