BingAds / BingAds-Python-SDK

Other
118 stars 164 forks source link

Getting "(1011) CampaignServiceFutureFeatureCode" error uploading audience members #216

Closed CarlosMecha closed 2 years ago

CarlosMecha commented 2 years ago

Hi,

(This error comes from the pip package bingads v13.0.13).

We are uploading audience members using bulk uploads. For each member, we upload the hashed email. When the operation completes, we receive a very cryptic error with code 1011 CampaignServiceFutureFeatureCode as the result.

Here's an extract of the code:

upload_parameters = EntityUploadParameters(
    entities=entities,
    result_file_directory="/tmp/",
    result_file_name="audience-response.csv",
    overwrite_result_file=True,
    response_mode="ErrorsAndResults",
)

results = bulk.upload_entities(upload_parameters)
errors = []
for entity in results:
    if entity.has_errors:
        if isinstance(entity, BulkCustomerList):
            # Errors in the customer list
            message = f"Error uploading audience {audience_id}, bulk operation failed:\n"
            for error in entity.errors:
                message = (
                    message
                    + f"- ({error.number}) - {error.error} in path {error.field_path} \n"
                )

            raise Error(message)

        reason = f"{entity.errors[0].number}: {entity.errors[0].error}"
        errors.append(reason)

The official documentation doesn't mention much other than "An internal error has occurred". Is there any way to further debug this issue, or get more information (ex request number, etc) using this SDK? We have found that this error only affects to an account. We are not able to reproduce it with other accounts.

We are planning to contact Bing Ads support, but we would like to use the SDK to get more information about this error. Any ideas?

Thank you so much!

qitia commented 2 years ago

please share the trackingId/requestId.

qitia commented 2 years ago

close the issue as no more info supplied. Please reopen it if you have more info @CarlosMecha