Bid Strategy type not included in CampaignPerformanceReportRequest - Bing ADs API

Ram Modepalli 1 Reputation point
2020-11-25T05:51:25.607+00:00

Hi

I need to download Campaign Performance Report with column Bid Strategy type at daily level aggregation. But in List of columns that column is not included. Can you please let me know how to get the report along with bid strategy type. Please find below the function that I used in python.

def get_campaign_performance_report_request(
account_id,
aggregation,
exclude_column_headers,
exclude_report_footer,
exclude_report_header,
report_file_format,
return_only_complete_data,
time):

report_request=reporting_service.factory.create('CampaignPerformanceReportRequest')
report_request.Aggregation=aggregation
report_request.ExcludeColumnHeaders=exclude_column_headers
report_request.ExcludeReportFooter=exclude_report_footer
report_request.ExcludeReportHeader=exclude_report_header
report_request.Format=report_file_format
report_request.ReturnOnlyCompleteData=return_only_complete_data
report_request.Time=time    
report_request.ReportName="My Campaign Performance Report"
scope=reporting_service.factory.create('AccountThroughCampaignReportScope')
scope.AccountIds={'long': [account_id] }
scope.Campaigns=None
report_request.Scope=scope     

report_columns=reporting_service.factory.create('ArrayOfCampaignPerformanceReportColumn')
report_columns.CampaignPerformanceReportColumn.append([
    'TimePeriod',
    'CampaignId',
    'CampaignName',
    'CampaignStatus',
    'CampaignLabels',
    'Spend',
    'Impressions',
    'Clicks',
    'Conversions',
    'ConversionRate',
    'CostPerConversion'
])
report_request.Columns=report_columns

return report_request
Bing Custom Search
Bing Custom Search
An easy-to-use, ad-free, commercial-grade search tool that lets you deliver the results you want.
89 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.