BingAds / BingAds-Python-SDK

Other
116 stars 162 forks source link

Report Requests Error #13

Closed barnettjacob closed 8 years ago

barnettjacob commented 8 years ago

Hi,

I'm trying to get the report download script from this link working:

https://msdn.microsoft.com/en-us/library/bing-ads-reporting-request-and-download-a-keyword-performance-report-in-python.aspx

I've entered my credentials as requested however I get the following message. I'm on OSX using bingads 10.4.1

Thanks Jacob

TypeError                                 Traceback (most recent call last)
<ipython-input-1-7ef94934851a> in <module>()
----> 1 from bingads.service_client import ServiceClient
      2 from bingads.authorization import *
      3 from bingads import *
      4 from bingads.reporting import *
      5 

/Users/jb/anaconda/lib/python2.7/site-packages/bingads/__init__.py in <module>()
      4 from .authorization import *
      5 
----> 6 import bingads.bulk  # noqa
      7 
      8 __author__ = 'Bing Ads SDK Team'

/Users/jb/anaconda/lib/python2.7/site-packages/bingads/bulk/__init__.py in <module>()
      6 from .upload_parameters import *
      7 from .bulk_operation import *
----> 8 from .file_reader import *
      9 from .file_writer import *
     10 from .bulk_service_manager import *

/Users/jb/anaconda/lib/python2.7/site-packages/bingads/bulk/file_reader.py in <module>()
      1 from .enums import DownloadFileType, ResultFileType
----> 2 from .entities.bulk_entity import BulkEntity
      3 from ..internal.bulk.stream_reader import _BulkStreamReader
      4 from ..internal.bulk.entities.multi_record_bulk_entity import _MultiRecordBulkEntity
      5 

/Users/jb/anaconda/lib/python2.7/site-packages/bingads/bulk/entities/__init__.py in <module>()
      6 from .unknown_bulk_entity import *
      7 from .bulk_account import *
----> 8 from .bulk_campaign import *
      9 from .bulk_ad_group import *
     10 from .bulk_ad_group_product_target import *

/Users/jb/anaconda/lib/python2.7/site-packages/bingads/bulk/entities/bulk_campaign.py in <module>()
      6 from bingads.internal.extensions import bulk_str, csv_to_budget, budget_to_csv
      7 
----> 8 _ShoppingSetting = type(_CAMPAIGN_OBJECT_FACTORY.create('ShoppingSetting'))
      9 
     10 

/Users/jb/anaconda/lib/python2.7/site-packages/bingads/service_client.pyc in _create_with_cache(self, name)
    294         self.object_cache[name] = self.create_without_cache(name)
    295     obj = self.object_cache[name]
--> 296     copied_obj = _suds_objects_deepcopy(obj)
    297     return copied_obj
    298 

/Users/jb/anaconda/lib/python2.7/site-packages/bingads/service_client.pyc in _suds_objects_deepcopy(origin)
    283         new.__metadata__ = origin.__metadata__
    284         return new
--> 285     new = origin_type()
    286     for name in origin.__keylist__:
    287         setattr(new, name, _suds_objects_deepcopy(getattr(origin, name)))

TypeError: instance() takes at least 1 argument (0 given)
barnettjacob commented 8 years ago

Sorry this was covered by https://github.com/bing-ads-sdk/BingAds-Python-SDK/issues/5