Skip to content

Problem when trying to compile examples BingAdsDesktopApp #219

Description

@treimers

Hi there,

I cloned this project and wanted to try the example BingAdsDesktopApp but I got several compilation errors:

[ERROR] BingAds-Java-SDK/examples/BingAdsDesktopApp/src/main/java/com/microsoft/bingads/examples/v13/ResponsiveAdRecommendation.java:[198,41] cannot find symbol
[ERROR]   symbol:   class AdRecommendationImageSuggestion
[ERROR]   location: class com.microsoft.bingads.examples.v13.ResponsiveAdRecommendation
[ERROR] BingAds-Java-SDK/examples/BingAdsDesktopApp/src/main/java/com/microsoft/bingads/examples/v13/ResponsiveAdRecommendation.java:[38,13] cannot find symbol
[ERROR]   symbol:   class CreateResponsiveAdRecommendationRequest
[ERROR]   location: class com.microsoft.bingads.examples.v13.ResponsiveAdRecommendation
[ERROR] BingAds-Java-SDK/examples/BingAdsDesktopApp/src/main/java/com/microsoft/bingads/examples/v13/ResponsiveAdRecommendation.java:[38,67] cannot find symbol
[ERROR]   symbol:   class CreateResponsiveAdRecommendationRequest
[ERROR]   location: class com.microsoft.bingads.examples.v13.ResponsiveAdRecommendation
[ERROR] BingAds-Java-SDK/examples/BingAdsDesktopApp/src/main/java/com/microsoft/bingads/examples/v13/ResponsiveAdRecommendation.java:[44,13] cannot find symbol
[ERROR]   symbol:   class CreateResponsiveAdRecommendationResponse
[ERROR]   location: class com.microsoft.bingads.examples.v13.ResponsiveAdRecommendation
[ERROR] BingAds-Java-SDK/examples/BingAdsDesktopApp/src/main/java/com/microsoft/bingads/examples/v13/ResponsiveAdRecommendation.java:[49,18] cannot find symbol
[ERROR]   symbol:   class AdRecommendationImageSuggestion
[ERROR]   location: class com.microsoft.bingads.examples.v13.ResponsiveAdRecommendation
[ERROR] BingAds-Java-SDK/examples/BingAdsDesktopApp/src/main/java/com/microsoft/bingads/examples/v13/ResponsiveAdRecommendation.java:[54,18] cannot find symbol
[ERROR]   symbol:   class AdRecommendationImageSuggestion
[ERROR]   location: class com.microsoft.bingads.examples.v13.ResponsiveAdRecommendation
[ERROR] BingAds-Java-SDK/examples/BingAdsDesktopApp/src/main/java/com/microsoft/bingads/examples/v13/ResponsiveAdRecommendation.java:[59,26] incompatible types: inference variable T has incompatible bounds
[ERROR]     equality constraints: com.microsoft.bingads.v13.campaignmanagement.AssetLink
[ERROR]     lower bounds: java.lang.Object
[ERROR] BingAds-Java-SDK/examples/BingAdsDesktopApp/src/main/java/com/microsoft/bingads/examples/v13/ResponsiveAdRecommendation.java:[201,14] cannot find symbol
[ERROR]   symbol:   class AdRecommendationImageSuggestion
[ERROR]   location: class com.microsoft.bingads.examples.v13.ResponsiveAdRecommendation

I figured out that the pom in the root folder does contain

    <groupId>com.microsoft.bingads</groupId>
    <version>13.0.24.2</version>
    <name>Bing Ads Java SDK</name>

while the pom in examples/BingAdsDesktopApp says

        <dependency>
            <groupId>com.microsoft.bingads</groupId>
            <artifactId>microsoft.bingads</artifactId>
            <version>13.0.20.2</version>
        </dependency>

After changing the dependency to <version>13.0.24.2</version> I was able to compile the example project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions