BingAds / BingAds-Python-SDK

Other
116 stars 162 forks source link

Bing Delete Adgroup Issue #49

Closed notty-geek closed 7 years ago

notty-geek commented 7 years ago

I am getting an error

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/CampaignManagement/v10:AdGroupIds. The InnerException message was 'There was an error deserializing the object of type System.Int64[]. End element 'AdGroupIds' from namespace 'https://bingads.microsoft.com/CampaignManagement/v10' expected. Found text '1144591690019879'. Line 1, position 1743.'. Please see InnerException

While deleting an ad groups.

I am passing an array of Long, also tried passing the single value as well, but the same error is displayed.

Code Sample

delete_adgroup_response = campaign_service.DeleteAdGroups( CampaignId= xxxxxxxx, AdGroupIds= xxxxxxxxxxxxxL, )

notty-geek commented 7 years ago

Found an solution for this, closing an issue.