All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.bingads.v10.bulk.entities.BulkNegativeLocationTarget Maven / Gradle / Ivy

Go to download

The Bing Ads Java SDK is a library improving developer experience when working with the Bing Ads services by providing high-level access to features such as Bulk API, OAuth Authorization and SOAP API.

There is a newer version: 13.0.23.2
Show newest version
package com.microsoft.bingads.v10.bulk.entities;

import com.microsoft.bingads.v10.campaignmanagement.CityTargetBid;
import com.microsoft.bingads.v10.campaignmanagement.CountryTargetBid;
import com.microsoft.bingads.v10.campaignmanagement.MetroAreaTargetBid;
import com.microsoft.bingads.v10.campaignmanagement.PostalCodeTargetBid;
import com.microsoft.bingads.v10.campaignmanagement.StateTargetBid;

/**
 * A base class for all bulk negative location target classes, for example {@link BulkAdGroupNegativeLocationTarget}.
 *
 * @param  see {@link BulkNegativeLocationTargetBid}
 */
abstract class BulkNegativeLocationTarget extends BulkLocationTargetWithStringLocation {    

    public BulkNegativeLocationTarget(Class classOfTBid) {
        super(classOfTBid);
    }   

    @Override
    void setPostalCodeBidAdditionialProperties(PostalCodeTargetBid postalCodeBid, TBid t) {
        postalCodeBid.setIsExcluded(true);
    }

    @Override
    boolean shouldConvertPostalCodeTargetBid(PostalCodeTargetBid bid) {
        return bid.isIsExcluded();
    }

    @Override
    void setBulkPostalCodeBidAdditionalProperties(TBid bulkBid, PostalCodeTargetBid postalCodeTargetBid) {
        postalCodeTargetBid.setIsExcluded(true);
    }
    
    @Override
    void setCityBidAdditionialProperties(CityTargetBid cityBid, TBid t) {
        cityBid.setIsExcluded(true);
    }

    @Override
    boolean shouldConvertCityTargetBid(CityTargetBid bid) {
        return bid.isIsExcluded();
    }

    @Override
    void setBulkCityBidAdditionalProperties(TBid bulkBid, CityTargetBid cityTargetBid) {
        cityTargetBid.setIsExcluded(true);
    }

    @Override
    void setMetroAreaBidAdditionialProperties(MetroAreaTargetBid metroAreBid, TBid t) {
        metroAreBid.setIsExcluded(true);
    }

    @Override
    boolean shouldConvertMetroAreaTargetBid(MetroAreaTargetBid bid) {
        return bid.isIsExcluded();
    }

    @Override
    void setBulkMetroAreaBidAdditionalProperties(TBid bulkBid, MetroAreaTargetBid metroAreaTargetBid) {
        metroAreaTargetBid.setIsExcluded(true);
    }
        
    @Override
    void setStateBidAdditionialProperties(StateTargetBid stateBid, TBid t) {
        stateBid.setIsExcluded(true);
    }

    @Override
    boolean shouldConvertStateTargetBid(StateTargetBid bid) {
        return bid.isIsExcluded();
    }

    @Override
    void setBulkStateBidAdditionalProperties(TBid bulkBid, StateTargetBid stateTargetBid) {
        stateTargetBid.setIsExcluded(true);
    }
 
    @Override
    void setCountryBidAdditionialProperties(CountryTargetBid cityBid, TBid t) {
        cityBid.setIsExcluded(true);
    }

    @Override
    boolean shouldConvertCountryTargetBid(CountryTargetBid bid) {
        return bid.isIsExcluded();
    }

    @Override
    void setBulkCountryBidAdditionalProperties(TBid bulkBid, CountryTargetBid countryTargetBid) {
        countryTargetBid.setIsExcluded(true);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy