Share via

Unrecognized field in ImageAsset: "CroppingType"

dev-om 45 Reputation points
2026-02-03T15:53:23.5766667+00:00

Hi,

we are using the latest version of the Microsoft/Bing Ads Java SDK.

https://mvnrepository.com/artifact/com.microsoft.bingads/microsoft.bingads/13.0.26

Since last night, we are getting this error:

com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: 
Unrecognized field "CroppingType" (class com.microsoft.bingads.v13.campaignmanagement.ImageAsset), not marked as ignorable (10 known properties: "TargetWidth", "CropWidth", "CropHeight", "CropX", "CropY", "Type", "Id", "TargetHeight", "Name", "SubType"])
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 8234] (through reference chain: 
com.microsoft.bingads.v13.campaignmanagement.GetAdsByAdGroupIdResponse["Ads"]->java.util.ArrayList[1]->com.microsoft.bingads.v13.campaignmanagement.ResponsiveAd["Images"]->java.util.ArrayList[0]->com.microsoft.bingads.v13.campaignmanagement.AssetLink["Asset"]->com.microsoft.bingads.v13.campaignmanagement.ImageAsset["CroppingType"])

when using this function:

com.microsoft.bingads.v13.campaignmanagement.ICampaignManagementService#getAdsByAdGroupId

So there seems to be a new field called "CroppingType" in ResponsiveAd -> Images -> AssetLink -> ImageAsset.

This field is not listed here in the documentation: https://learn.microsoft.com/en-us/advertising/campaign-management-service/imageasset?view=bingads-13&tabs=xml

This looks like a bug to me. Can you please check it? It is blocking our business.

Thanks a lot in advance.

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.

0 comments No comments

2 answers

Sort by: Most helpful
  1. MS Advertising - John Mark 230 Reputation points Microsoft External Staff Moderator
    2026-02-03T20:06:58.8133333+00:00

    Hello dev-om,

    Thank you for using our Microsoft Advertising Learn Q&A Platform! 

    I'll be confirming some information regarding this API case, for us to make sure that we are able to address the reported concern, I'll be sending a private message on your inbox, please check your private message for further assistance.

    Our support teams are happy to discuss your account in more detail via phone, chat or email to provide review assistance, please see our support page to reach out! 

    Kind regards, 

    John | Microsoft Advertising Support Specialist | 800-518-5689

    0 comments No comments

  2. Q&A Assist
    2026-02-03T15:53:35.88+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    It appears that you are encountering an issue with the Microsoft/Bing Ads Java SDK where the field "CroppingType" is not recognized in the ImageAsset class. This could be due to a recent update or change in the API that has not yet been reflected in the documentation.

    The error message indicates that the SDK is trying to deserialize a response that includes this new field, which is not defined in the current version of the SDK you are using. This situation often arises when the API has been updated to include new fields that the SDK has not yet been updated to accommodate.

    To resolve this issue, you can consider the following steps:

    1. Check for SDK Updates: Ensure that you are using the latest version of the Bing Ads Java SDK. If a new version is available, it may include the necessary updates to handle the "CroppingType" field.
    2. Contact Support: If the issue persists even after updating, it may be beneficial to reach out to Microsoft support for clarification on the new field and any potential updates to the SDK.
    3. Ignore Unknown Properties: As a temporary workaround, you can configure your Jackson ObjectMapper to ignore unknown properties, which would allow your application to continue functioning without throwing an exception for unrecognized fields.

    If you continue to experience issues, providing feedback to Microsoft regarding the documentation and the SDK could help improve the resources available for developers.


    References:

    0 comments No comments

Your answer

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