BingAds / BingAds-Python-SDK

Other
116 stars 162 forks source link

Invalid client data. Check the SOAP fault details for more information. TrackingId: 905027f5-fc4e-44ab-9af4-58af8ced8dae. #245

Open BigBig-joe opened 1 year ago

BigBig-joe commented 1 year ago

Hi Support team,

We used to download bing ads report by python SDK, and it works well. When I tried to use campaignManagementService, I got errors , and don't know why.

I use the same authenticate method as report service, and it can return right accountid, and report service works well under it , but campaign service failed.

additional info

I also tried CustomerBillingService, it works fine too. is there any difference in campaign service ?

part of the code like below:

`campaign_service = ServiceClient( service='CampaignManagementService', version=13, authorization_data=authorization_data, environment=ENVIRONMENT, )

campaignType=['Audience DynamicSearchAds Search Shopping'] campaigns = campaign_service.GetCampaignsByAccountId(AccountId=135100365,CampaignType=campaignType)`

and the full error log campaigns = campaign_service.GetCampaignsByAccountId(AccountId=135100365,CampaignType=campaignType) File "D:\python\lib\site-packages\bingads\service_client.py", line 286, in __call__ raise ex File "D:\python\lib\site-packages\bingads\service_client.py", line 278, in __call__ response = self.service_client.soap_client.service.__getattr__(self.name)(*args, **kwargs) File "D:\python\lib\site-packages\suds\client.py", line 586, in __call__ return client.invoke(args, kwargs) File "D:\python\lib\site-packages\suds\client.py", line 728, in invoke result = self.send(soapenv, timeout=timeout) File "D:\python\lib\site-packages\suds\client.py", line 777, in send return self.process_reply(reply.message, None, None) File "D:\python\lib\site-packages\suds\client.py", line 840, in process_reply raise WebFault(fault, replyroot) suds.WebFault: Server raised fault: 'Invalid client data. Check the SOAP fault details for more information. TrackingId: 6265f8ba-0134-40b6-a0b4-1a5ca02a0182.'

qitia commented 1 year ago

can you debug and share the request payload?

check from the service log and seems you are not passing in valid CstomerAccountId.