Examples of ProductBrand


Examples of com.google.api.ads.adwords.axis.v201402.cm.ProductBrand

    ProductScope productScope = new ProductScope();

    // This set of dimensions is for demonstration purposes only. It would be
    // extremely unlikely that you want to include so many dimensions in your
    // product scope.
    ProductBrand productBrand = new ProductBrand();
    productBrand.setValue("Nexus");

    ProductCanonicalCondition productCanonicalCondition = new ProductCanonicalCondition();
    productCanonicalCondition.setCondition(ProductCanonicalConditionCondition.NEW);

    ProductCustomAttribute productCustomAttribute = new ProductCustomAttribute();
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201402.cm.ProductBrand

    helper.createUnit(root, usedProductCondition, 100000L);

    ProductPartition otherCondition =
        helper.createSubdivision(root, new ProductCanonicalCondition());

    ProductBrand coolProductBrand = new ProductBrand();
    coolProductBrand.setValue("CoolBrand");
    helper.createUnit(otherCondition, coolProductBrand, 900000L);

    ProductBrand cheapProductBrand = new ProductBrand();
    cheapProductBrand.setValue("CheapBrand");
    helper.createUnit(otherCondition, cheapProductBrand, 10000L);

    ProductPartition otherBrand = helper.createSubdivision(otherCondition, new ProductBrand());

    // The value for the bidding category is a fixed ID for the 'Luggage & Bags'
    // category. You can retrieve IDs for categories from the ConstantDataService.
    // See the 'GetProductCategoryTaxonomy' example for more details.
    ProductBiddingCategory biddingCategory = new ProductBiddingCategory();
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201402.cm.ProductBrand

      } else if (nodeCaseValue instanceof ProductBiddingCategory) {
        ProductBiddingCategory productBiddingCategory = (ProductBiddingCategory) nodeCaseValue;
        value = String.format("%s(%s)", productBiddingCategory.getType(),
            productBiddingCategory.getValue());
      } else if (nodeCaseValue instanceof ProductBrand){
        ProductBrand productBrand = (ProductBrand) nodeCaseValue;
        value = productBrand.getValue();
      } else {
        value = nodeCaseValue.toString();
      }
    }
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201406.cm.ProductBrand

    ProductScope productScope = new ProductScope();

    // This set of dimensions is for demonstration purposes only. It would be
    // extremely unlikely that you want to include so many dimensions in your
    // product scope.
    ProductBrand productBrand = new ProductBrand();
    productBrand.setValue("Nexus");

    ProductCanonicalCondition productCanonicalCondition = new ProductCanonicalCondition();
    productCanonicalCondition.setCondition(ProductCanonicalConditionCondition.NEW);

    ProductCustomAttribute productCustomAttribute = new ProductCustomAttribute();
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201406.cm.ProductBrand

    helper.createUnit(root, usedProductCondition, 100000L);

    ProductPartition otherCondition =
        helper.createSubdivision(root, new ProductCanonicalCondition());

    ProductBrand coolProductBrand = new ProductBrand();
    coolProductBrand.setValue("CoolBrand");
    helper.createUnit(otherCondition, coolProductBrand, 900000L);

    ProductBrand cheapProductBrand = new ProductBrand();
    cheapProductBrand.setValue("CheapBrand");
    helper.createUnit(otherCondition, cheapProductBrand, 10000L);

    ProductPartition otherBrand = helper.createSubdivision(otherCondition, new ProductBrand());

    // The value for the bidding category is a fixed ID for the 'Luggage & Bags'
    // category. You can retrieve IDs for categories from the ConstantDataService.
    // See the 'GetProductCategoryTaxonomy' example for more details.
    ProductBiddingCategory biddingCategory = new ProductBiddingCategory();
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201406.cm.ProductBrand

      } else if (nodeCaseValue instanceof ProductBiddingCategory) {
        ProductBiddingCategory productBiddingCategory = (ProductBiddingCategory) nodeCaseValue;
        value = String.format("%s(%s)", productBiddingCategory.getType(),
            productBiddingCategory.getValue());
      } else if (nodeCaseValue instanceof ProductBrand){
        ProductBrand productBrand = (ProductBrand) nodeCaseValue;
        value = productBrand.getValue();
      } else {
        value = nodeCaseValue.toString();
      }
    }
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.ProductBrand

                    } else if (param instanceof CatalogCategoryMaster) {
                        CatalogCategoryMaster category = (CatalogCategoryMaster) param;
                        urlParams.put(RequestConstants.URL_PATTERN_CATEGORY_CODE, handleParamValue(category.getCode()));
                        urlStr = addFullPrefixUrl(requestData, urlStr) + handleParamValue(category.getName()) + "/";
                    } else if (param instanceof ProductBrand) {
                        ProductBrand productBrand = (ProductBrand) param;
                        urlParams.put(RequestConstants.URL_PATTERN_BRAND_CODE, handleParamValue(productBrand.getCode()));
                        urlStr = addFullPrefixUrl(requestData, urlStr) + handleParamValue(productBrand.getName()) + "/";
                    } else if (param instanceof CartItem) {
                        CartItem cartItem = (CartItem) param;
                        urlParams.put(RequestConstants.URL_PATTERN_CART_ITEM_CODE, handleParamValue(cartItem.getId().toString()));
                    else if (param instanceof Store) {
                        Store store = (Store) param;
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.ProductBrand

            productMarketingViewBean.setDetailsUrl(urlService.generateUrl(FoUrls.PRODUCT_DETAILS, requestData, catalogCategory, productMarketing, productSku));
        } else {
            productMarketingViewBean.setDetailsUrl(urlService.generateUrl(FoUrls.PRODUCT_DETAILS, requestData, catalogCategory, productMarketing, productMarketing.getDefaultProductSku()));
        }

        final ProductBrand productBrand = productMarketing.getProductBrand();
        if (Hibernate.isInitialized(productBrand) && productBrand != null) {
            productMarketingViewBean.setBrand(buildViewBeanProductBrand(requestData, productBrand));
            productMarketingViewBean.setBrandDetailsUrl(urlService.generateUrl(FoUrls.BRAND_DETAILS, requestData, productBrand));
            productMarketingViewBean.setBrandLineDetailsUrl(urlService.generateUrl(FoUrls.BRAND_LINE, requestData, productBrand));
        }
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.ProductBrand

   
    public ProductBrand getProductBrandById(final Long productBrandId, Object... params) {
        Criteria criteria = createDefaultCriteria(ProductBrand.class);
        FetchPlan fetchPlan = handleSpecificProductBrandFetchMode(criteria, params);
        criteria.add(Restrictions.eq("id", productBrandId));
        ProductBrand productBrand = (ProductBrand) criteria.uniqueResult();
        if(productBrand != null){
            productBrand.setFetchPlan(fetchPlan);
        }
        return productBrand;
    }
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.ProductBrand

    public ProductBrand getProductBrandByCode(final String productBrandCode, Object... params) {
        Criteria criteria = createDefaultCriteria(ProductBrand.class);
        FetchPlan fetchPlan = handleSpecificProductBrandFetchMode(criteria, params);
        criteria.add(Restrictions.eq("code", handleCodeValue(productBrandCode)));
        ProductBrand productBrand = (ProductBrand) criteria.uniqueResult();
        if(productBrand != null){
            productBrand.setFetchPlan(fetchPlan);
        }
        return productBrand;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.