I am requesting compaign data via bing api using Python SDK, and this line of code throws a suds.WebFault error
get_keyword_ideas_response = adinsight_service.GetAuctionInsightData(EntityType ='Campaign',EntityIds =entityIds, SearchParameters=search_parameters)
the EntityIds is np.array of accounts. and the search parameters are
(ArrayOfSearchParameter){
SearchParameter[] =
(DateRangeSearchParameter){
EndDate =
(DayMonthAndYear){
Day = 30
Month = 8
Year = 2022
}
StartDate =
(DayMonthAndYear){
Day = 1
Month = 8
Year = 2022
}
},
(AuctionSegmentSearchParameter){
Segment = "Week"
},,
}
the full message of exception is : suds.WebFault: Server raised fault: 'The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter https://bingads.microsoft.com/AdInsight/v13:EntityIds. The InnerException message was 'Error in line 6 position 51. Expecting state 'Element'.. Encountered 'Text' with name '', namespace ''. '. Please see InnerException for more details.'