I was able to get PMAX conversions by using the regular campaign request.
How to Get Performance Max Conversions Using ConversionPerformanceReportRequest
Hi,
We are trying to get performance max campaign conversions; however, ConversionPerformanceReportRequest doesn't return any data for pmax campaigns. Is there a way to get those conversions with API?
I really appreciate any help you can provide.
Here is the helper function we use to pull the conversions.
def request_pmax_report(reporting_service, accounts, start_date, end_date):
report_request = reporting_service.factory.create("ConversionPerformanceReportRequest")
report_request.Aggregation = "Daily"
report_request.ExcludeReportFooter = True
report_request.ExcludeReportHeader = True
report_request.Format = "Csv"
report_request.ReportName = f"Conversions Report {start_date} {end_date} - {dt.datetime.now()}"
report_request.ReturnOnlyCompleteData = False
report_request.Time = bing.prepare_report_dates(reporting_service=reporting_service,
start_date=start_date,
end_date=end_date)
scope = reporting_service.factory.create("AccountThroughCampaignReportScope")
account_ids = list(map(lambda a: a.Id, accounts))
scope.AccountIds = {"long": account_ids}
scope.Campaigns = None
report_request.Scope = scope
report_columns = reporting_service.factory.create("ArrayOfConversionPerformanceReportColumn")
report_columns.ConversionPerformanceReportColumn.append([
"AccountId",
"AccountName",
"AccountNumber",
"TimePeriod",
"CampaignId",
"CampaignName",
"GoalType",
"Goal",
"DeviceType",
"ConversionsQualified",
])
report_request.Columns = report_columns
request = bing.request_report(reporting_service=reporting_service, report_request=report_request)
return request
4 answers
Sort by: Most helpful
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
1 deleted comment
Comments have been turned off. Learn more
-
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more