Examples of FeedAttribute


Examples of com.google.api.ads.adwords.axis.v201306.cm.FeedAttribute

  private static SiteLinksFeed createSiteLinksFeed(FeedServiceInterface feedService)
      throws Exception {
    SiteLinksFeed siteLinksData = new SiteLinksFeed();

    // Create attributes.
    FeedAttribute textAttribute = new FeedAttribute();
    textAttribute.setType(FeedAttributeType.STRING);
    textAttribute.setName("Link Text");
    FeedAttribute urlAttribute = new FeedAttribute();
    urlAttribute.setType(FeedAttributeType.URL);
    urlAttribute.setName("Link URL");

    // Create the feed.
    Feed siteLinksFeed = new Feed();
    siteLinksFeed.setName("Feed For Sitelinks");
    siteLinksFeed.setAttributes(new FeedAttribute[] {textAttribute, urlAttribute});
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201306.cm.FeedAttribute

      throws Exception {
    // Get the FeedService.
    FeedServiceInterface feedService = adWordsServices.get(session, FeedServiceInterface.class);

    // Create attributes.
    FeedAttribute textAttribute = new FeedAttribute();
    textAttribute.setType(FeedAttributeType.STRING);
    textAttribute.setName("Link Text");
    FeedAttribute urlAttribute = new FeedAttribute();
    urlAttribute.setType(FeedAttributeType.URL);
    urlAttribute.setName("Link URL");

    // Create the feed.
    Feed siteLinksFeed = new Feed();
    siteLinksFeed.setName("Feed For Site Links");
    siteLinksFeed.setAttributes(new FeedAttribute[] {textAttribute, urlAttribute});
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201309.cm.FeedAttribute

        new Predicate("Id", PredicateOperator.EQUALS, new String[] {feedId.toString()})});
    Feed feed = feedService.get(selector).getEntries()[0];

    // Add new attributes to the feed.
    FeedAttribute[] newAttributes = addLine1And2FeedAttributes(adWordsServices, session, feed);
    FeedAttribute line1Attribute = newAttributes[0];
    FeedAttribute line2Attribute = newAttributes[1];

    // Update feed items.
    updateFeedItems(adWordsServices, session, feedId, line1Attribute, line2Attribute,
        feedItemDescriptions);
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201309.cm.FeedAttribute

  private static FeedAttribute[] addLine1And2FeedAttributes(AdWordsServices adWordsServices,
      AdWordsSession session, Feed feed) throws Exception {
    // This will be the starting index for the new attributes created below.
    int nextAttributeIndex = feed.getAttributes().length;

    FeedAttribute line1Attribute = new FeedAttribute();
    FeedAttribute line2Attribute = new FeedAttribute();
    line1Attribute.setType(FeedAttributeType.STRING);
    line1Attribute.setName("Line 1 Description");
    line2Attribute.setType(FeedAttributeType.STRING);
    line2Attribute.setName("Line 2 Description");
    feed.setAttributes(new FeedAttribute[] {line1Attribute, line2Attribute});

    FeedOperation feedOperation = new FeedOperation();
    feedOperation.setOperand(feed);
    feedOperation.setOperator(Operator.SET);
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201309.cm.FeedAttribute

      throws Exception {
    // Get the FeedService.
    FeedServiceInterface feedService = adWordsServices.get(session, FeedServiceInterface.class);

    // Create attributes.
    FeedAttribute textAttribute = new FeedAttribute();
    textAttribute.setType(FeedAttributeType.STRING);
    textAttribute.setName("Link Text");
    FeedAttribute urlAttribute = new FeedAttribute();
    urlAttribute.setType(FeedAttributeType.URL);
    urlAttribute.setName("Link URL");
    FeedAttribute line1Attribute = new FeedAttribute();
    line1Attribute.setType(FeedAttributeType.STRING);
    line1Attribute.setName("Line 1 Description");
    FeedAttribute line2Attribute = new FeedAttribute();
    line2Attribute.setType(FeedAttributeType.STRING);
    line2Attribute.setName("Line 2 Description");

    // Create the feed.
    Feed siteLinksFeed = new Feed();
    siteLinksFeed.setName("Feed For Site Links");
    siteLinksFeed.setAttributes(
View Full Code Here

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

        .build();
    Feed feed = feedService.get(selector).getEntries()[0];

    // Add new attributes to the feed.
    FeedAttribute[] newAttributes = addLine1And2FeedAttributes(adWordsServices, session, feed);
    FeedAttribute line1Attribute = newAttributes[0];
    FeedAttribute line2Attribute = newAttributes[1];

    // Update feed items.
    updateFeedItems(adWordsServices, session, feedId, line1Attribute, line2Attribute,
        feedItemDescriptions);
View Full Code Here

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

  private static FeedAttribute[] addLine1And2FeedAttributes(AdWordsServices adWordsServices,
      AdWordsSession session, Feed feed) throws Exception {
    // This will be the starting index for the new attributes created below.
    int nextAttributeIndex = feed.getAttributes().length;

    FeedAttribute line1Attribute = new FeedAttribute();
    FeedAttribute line2Attribute = new FeedAttribute();
    line1Attribute.setType(FeedAttributeType.STRING);
    line1Attribute.setName("Line 1 Description");
    line2Attribute.setType(FeedAttributeType.STRING);
    line2Attribute.setName("Line 2 Description");
   
    // Only include NEW attributes when adding attributes to a feed.
    feed.setAttributes(new FeedAttribute[] {line1Attribute, line2Attribute});

    FeedOperation feedOperation = new FeedOperation();
View Full Code Here

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

      throws Exception {
    // Get the FeedService.
    FeedServiceInterface feedService = adWordsServices.get(session, FeedServiceInterface.class);

    // Create attributes.
    FeedAttribute textAttribute = new FeedAttribute();
    textAttribute.setType(FeedAttributeType.STRING);
    textAttribute.setName("Link Text");
    FeedAttribute urlAttribute = new FeedAttribute();
    urlAttribute.setType(FeedAttributeType.URL);
    urlAttribute.setName("Link URL");
    FeedAttribute line1Attribute = new FeedAttribute();
    line1Attribute.setType(FeedAttributeType.STRING);
    line1Attribute.setName("Line 1 Description");
    FeedAttribute line2Attribute = new FeedAttribute();
    line2Attribute.setType(FeedAttributeType.STRING);
    line2Attribute.setName("Line 2 Description");

    // Create the feed.
    Feed siteLinksFeed = new Feed();
    siteLinksFeed.setName("Feed For Site Links");
    siteLinksFeed.setAttributes(
View Full Code Here

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

    FeedServiceInterface feedService = adWordsServices.get(session, FeedServiceInterface.class);
 
    Feed customizerFeed = new Feed();
    customizerFeed.setName("CustomizerFeed");
 
    FeedAttribute nameAttribute = new FeedAttribute();
    nameAttribute.setName("Name");
    nameAttribute.setType(FeedAttributeType.STRING);
   
    FeedAttribute priceAttribute = new FeedAttribute();
    priceAttribute.setName("Price");
    priceAttribute.setType(FeedAttributeType.STRING);
   
    FeedAttribute dateAttribute = new FeedAttribute();
    dateAttribute.setName("Date");
    dateAttribute.setType(FeedAttributeType.DATE_TIME);
 
    customizerFeed.setAttributes(
        new FeedAttribute[] {nameAttribute, priceAttribute, dateAttribute});
 
    FeedOperation feedOperation = new FeedOperation();
View Full Code Here

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

        .build();
    Feed feed = feedService.get(selector).getEntries()[0];

    // Add new attributes to the feed.
    FeedAttribute[] newAttributes = addLine1And2FeedAttributes(adWordsServices, session, feed);
    FeedAttribute line1Attribute = newAttributes[0];
    FeedAttribute line2Attribute = newAttributes[1];

    // Update feed items.
    updateFeedItems(adWordsServices, session, feedId, line1Attribute, line2Attribute,
        feedItemDescriptions);
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.