How to Get Performance Max Conversions Using ConversionPerformanceReportRequest

Can Celik 5 Reputation points
2025-01-03T18:14:52.0333333+00:00

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

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.
440 questions
{count} votes

4 answers

Sort by: Most helpful
  1. 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

  2. Can Celik 5 Reputation points
    2025-01-20T10:43:12.92+00:00

    I was able to get PMAX conversions by using the regular campaign request.

    0 comments No comments

  3. 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

  4. 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

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.