Bid Strategy type not included in CampaignPerformanceReportRequest - Bing ADs API
Ram Modepalli
1
Reputation point
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
Sign in to answer