Examples of TargetingGroup


Examples of com.google.api.ads.adwords.axis.v201402.video.TargetingGroup

      Long campaignId, Long targetingGroupId) throws Exception {
    // Get the VideoTargetingGroupService.
    VideoTargetingGroupServiceInterface videoTargetingGroupService =
        adWordsServices.get(session, VideoTargetingGroupServiceInterface.class);

    TargetingGroup targetingGroup = new TargetingGroup();
    targetingGroup.setId(targetingGroupId);
    targetingGroup.setCampaignId(campaignId);
   
    Money amount = new Money();
    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);
    operation.setOperand(targetingGroup);
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201402.video.TargetingGroup

      AdWordsSession session, Long campaignId) throws Exception {
    // Get the VideoTargetingGroupService.
    VideoTargetingGroupServiceInterface videoTargetingGroupService =
        adWordsServices.get(session, VideoTargetingGroupServiceInterface.class);

    TargetingGroup targetingGroup = new TargetingGroup();
    targetingGroup.setCampaignId(campaignId);
    targetingGroup.setName("My Targeting Group #" + System.currentTimeMillis());

    TargetingGroupOperation operation = new TargetingGroupOperation();
    operation.setOperand(targetingGroup);
    operation.setOperator(Operator.ADD);
View Full Code Here

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

      Long campaignId, Long targetingGroupId) throws Exception {
    // Get the VideoTargetingGroupService.
    VideoTargetingGroupServiceInterface videoTargetingGroupService =
        adWordsServices.get(session, VideoTargetingGroupServiceInterface.class);

    TargetingGroup targetingGroup = new TargetingGroup();
    targetingGroup.setId(targetingGroupId);
    targetingGroup.setCampaignId(campaignId);
   
    Money amount = new Money();
    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);
    operation.setOperand(targetingGroup);
View Full Code Here

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

      AdWordsSession session, Long campaignId) throws Exception {
    // Get the VideoTargetingGroupService.
    VideoTargetingGroupServiceInterface videoTargetingGroupService =
        adWordsServices.get(session, VideoTargetingGroupServiceInterface.class);

    TargetingGroup targetingGroup = new TargetingGroup();
    targetingGroup.setCampaignId(campaignId);
    targetingGroup.setName("My Targeting Group #" + System.currentTimeMillis());

    TargetingGroupOperation operation = new TargetingGroupOperation();
    operation.setOperand(targetingGroup);
    operation.setOperator(Operator.ADD);
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.