Package com.google.api.ads.adwords.axis.v201406.video

Examples of com.google.api.ads.adwords.axis.v201406.video.CallToActionCreative


    trueViewBid.setKey(VideoAdDisplayFormat.TRUE_VIEW_IN_DISPLAY);
    trueViewBid.setValue(videoBid);
    targetingGroup.setBidsByFormat(
        new BidsByFormat(new VideoAdDisplayFormat_VideoBidMapEntry[] {trueViewBid}));
   
    TargetingGroupOperation operation = new TargetingGroupOperation();
    operation.setOperator(Operator.SET);
    operation.setOperand(targetingGroup);

    TargetingGroupReturnValue result =
        videoTargetingGroupService.mutate(new TargetingGroupOperation[] {operation});
   
    for (TargetingGroup targetingGroupResult : result.getValue()) {
View Full Code Here


    // Create selector.
    TargetingGroupSelector selector = new TargetingGroupSelector();
    selector.setCampaignIds(new long[] {campaignId});
    selector.setPaging(new Paging(offset, PAGE_SIZE));

    TargetingGroupPage page;
    do {
      // Get all targeting groups for this account.
      page = videoTargetingGroupService.get(selector);

      // Display targeting groups.
      if (page.getEntries() != null) {
        for (TargetingGroup targetingGroup : page.getEntries()) {
          System.out.printf("Targeting group id %d, campaign id '%d', "
              + "and name '%s' was found.%n",
              targetingGroup.getId(),
              targetingGroup.getCampaignId(),
              targetingGroup.getName());
        }
      } else {
        System.out.println("No targeting groups were found.");
      }

      offset += PAGE_SIZE;
      selector.getPaging().setStartIndex(offset);
    } while (offset < page.getTotalNumEntries());
  }
View Full Code Here

   
    TargetingGroupOperation operation = new TargetingGroupOperation();
    operation.setOperator(Operator.SET);
    operation.setOperand(targetingGroup);

    TargetingGroupReturnValue result =
        videoTargetingGroupService.mutate(new TargetingGroupOperation[] {operation});
   
    for (TargetingGroup targetingGroupResult : result.getValue()) {
      System.out.printf("Targeting group with campaign id %d, "
          + "and targeting group id %d was updated.%n",
          targetingGroupResult.getCampaignId(),
          targetingGroupResult.getId());
    }
View Full Code Here

        adWordsServices.get(session, VideoTargetingGroupServiceInterface.class);

    int offset = 0;

    // Create selector.
    TargetingGroupSelector selector = new TargetingGroupSelector();
    selector.setCampaignIds(new long[] {campaignId});
    selector.setPaging(new Paging(offset, PAGE_SIZE));

    TargetingGroupPage page;
    do {
      // Get all targeting groups for this account.
      page = videoTargetingGroupService.get(selector);

      // Display targeting groups.
      if (page.getEntries() != null) {
        for (TargetingGroup targetingGroup : page.getEntries()) {
          System.out.printf("Targeting group id %d, campaign id '%d', "
              + "and name '%s' was found.%n",
              targetingGroup.getId(),
              targetingGroup.getCampaignId(),
              targetingGroup.getName());
        }
      } else {
        System.out.println("No targeting groups were found.");
      }

      offset += PAGE_SIZE;
      selector.getPaging().setStartIndex(offset);
    } while (offset < page.getTotalNumEntries());
  }
View Full Code Here

    addGenderCriterionOp.setOperator(Operator.ADD);

    // Create a topic criterion for the Autos & Vehicles topic.
    // See ConstantDataService for a list of verticals.
    TargetingGroupCriterion topicCriterion = new TargetingGroupCriterion();
    Topic topic = new Topic();
    topic.setVerticalId(47L);
    topicCriterion.setCampaignId(campaignId);
    topicCriterion.setTargetingGroupId(targetingGroupId);
    topicCriterion.setCriterion(topic);

    TargetingGroupCriterionOperation addTopicCriterionOp =
View Full Code Here

        new VideoAdDisplayFormat_VideoAdStatusMapEntry();
   
    trueViewStatus.setKey(VideoAdDisplayFormat.TRUE_VIEW_IN_DISPLAY);
    trueViewStatus.setValue(VideoAdStatus.PAUSED);

    VideoAd ad = new VideoAd();
    ad.setId(videoAdId);
    ad.setStatusByFormat(new VideoAdDisplayFormat_VideoAdStatusMapEntry[] {trueViewStatus});

    VideoAdOperation operation = new VideoAdOperation();
    operation.setOperand(ad);
    operation.setOperator(Operator.SET);
View Full Code Here

          throws Exception {
    // Get the VideoCampaignService.
    VideoAdServiceInterface videoAdService =
        adWordsServices.get(session, VideoAdServiceInterface.class);

    VideoAdDisplayFormat_VideoAdStatusMapEntry trueViewStatus =
        new VideoAdDisplayFormat_VideoAdStatusMapEntry();
   
    trueViewStatus.setKey(VideoAdDisplayFormat.TRUE_VIEW_IN_DISPLAY);
    trueViewStatus.setValue(VideoAdStatus.PAUSED);

    VideoAd ad = new VideoAd();
    ad.setId(videoAdId);
    ad.setStatusByFormat(new VideoAdDisplayFormat_VideoAdStatusMapEntry[] {trueViewStatus});
View Full Code Here

    amount.setMicroAmount(200000L);
   
    VideoBid videoBid = new VideoBid();
    videoBid.setAmount(amount);
   
    VideoAdDisplayFormat_VideoBidMapEntry trueViewBid =
        new VideoAdDisplayFormat_VideoBidMapEntry();
   
    trueViewBid.setKey(VideoAdDisplayFormat.TRUE_VIEW_IN_DISPLAY);
    trueViewBid.setValue(videoBid);
    targetingGroup.setBidsByFormat(
        new BidsByFormat(new VideoAdDisplayFormat_VideoBidMapEntry[] {trueViewBid}));
   
    TargetingGroupOperation operation = new TargetingGroupOperation();
    operation.setOperator(Operator.SET);
View Full Code Here

    // Create video campaign.
    VideoCampaign videoCampaign = new VideoCampaign();
    videoCampaign.setName("Interplanetary Cruise #"
        + System.currentTimeMillis());
    videoCampaign.setStatus(VideoCampaignStatus.PAUSED);
    VideoAdNetworks networks = new VideoAdNetworks();
    networks.setNetworks(new VideoAdNetwork[] {
        VideoAdNetwork.GOOGLE_DISPLAY_NETWORK,
        VideoAdNetwork.YOUTUBE_WATCH});
    videoCampaign.setNetworks(networks);

    // You can optionally provide these field(s).
View Full Code Here

    VideoAd ad = new VideoAd();
    ad.setId(videoAdId);
    ad.setStatusByFormat(new VideoAdDisplayFormat_VideoAdStatusMapEntry[] {trueViewStatus});

    VideoAdOperation operation = new VideoAdOperation();
    operation.setOperand(ad);
    operation.setOperator(Operator.SET);

    VideoAdReturnValue result = videoAdService.mutate(new VideoAdOperation[] {operation});
   
    for (VideoAd videoAdResult : result.getValue()) {
      System.out.printf("Video ad with id %d was updated.%n",
View Full Code Here

TOP

Related Classes of com.google.api.ads.adwords.axis.v201406.video.CallToActionCreative

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.