Bulk service report. Empty report

Pavel Kochubey 1 Reputation point
2021-11-09T08:41:36.19+00:00

I use this code to fetch custom reports for all my campaigns. When request_id is around 688718818678 (tracking id: 91726173-6464-4ba1-9d6f-6c125241396f) I fetch the full report. When request_id around 70428694472 (tracking id: e6a7c414-4695-4eae-967d-808dc876ba3c) I always fetch an empty report. Also if request_id is around 70428694472 and I next 20 minutes try repeat download_results with this Id, I always fetch empty report. This is the code and function download_results I use from the official python SDK.

        submit_download_parameters = SubmitDownloadParameters(
            data_scope=['EntityData', 'QualityScoreData', 'BidSuggestionsData'],
            download_entities=['Campaigns', 'AdGroups', 'Ads', 'Keywords', "Budgets", "Labels", "KeywordLabels"],
            file_type=FILE_TYPE,
            last_sync_time_in_utc=None
        )

        bulk_download_operation = bulk_service_manager.submit_download(submit_download_parameters)
        request_id = bulk_download_operation.request_id

        download_results(request_id, authorization_data)
Microsoft Advertising API
Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
402 questions
0 comments No comments
{count} votes