Package com.google.api.ads.adwords.jaxws.v201309.cm

Examples of com.google.api.ads.adwords.jaxws.v201309.cm.FeedItemOperation


    // Get the FeedItemService.
    FeedItemServiceInterface feedItemService =
        user.getService(AdWordsService.V201309.FEED_ITEM_SERVICE);

    // Create operations to add FeedItems.
    FeedItemOperation home =
        newSiteLinkFeedItemAddOperation(siteLinksData, "Home", "http://www.example.com");
    FeedItemOperation stores =
        newSiteLinkFeedItemAddOperation(siteLinksData, "Stores", "http://www.example.com/stores");
    FeedItemOperation onSale =
        newSiteLinkFeedItemAddOperation(siteLinksData, "On Sale", "http://www.example.com/sale");
    FeedItemOperation support =
        newSiteLinkFeedItemAddOperation(siteLinksData, "Support", "http://www.example.com/support");
    FeedItemOperation products =
        newSiteLinkFeedItemAddOperation(siteLinksData, "Products", "http://www.example.com/prods");
    FeedItemOperation aboutUs =
        newSiteLinkFeedItemAddOperation(siteLinksData, "About Us", "http://www.example.com/about");

    FeedItemOperation[] operations =
        new FeedItemOperation[] {home, stores, onSale, support, products, aboutUs};
View Full Code Here


    // Create the feed item and operation.
    FeedItem item = new FeedItem();
    item.setFeedId(siteLinksData.siteLinksFeedId);
    item.setAttributeValues(
        new FeedItemAttributeValue[] {linkTextAttributeValue, linkUrlAttributeValue});
    FeedItemOperation operation = new FeedItemOperation();
    operation.setOperand(item);
    operation.setOperator(Operator.ADD);
    return operation;
  }
View Full Code Here

TOP

Related Classes of com.google.api.ads.adwords.jaxws.v201309.cm.FeedItemOperation

Copyright © 2018 www.massapicom. 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.