Du befindest Dich im Archiv vom ABAKUS Online Marketing Forum. Hier kannst Du Dich für das Forum mit den aktuellen Beiträgen registrieren.

Google Video Werbung

Ajax, Hijax, Microformats, RDF, Markup, HTML, PHP, CSS, MySQL, htaccess, robots.txt, CGI, Java, Javascript usw.
Neues Thema Antworten
|Z|
PostRank 4
PostRank 4
Beiträge: 138
Registriert: 24.05.2007, 14:26

Beitrag von |Z| » 15.10.2007, 21:35

Google Video Werbung interessiert mich sehr...

Habe mal den code angeschaut..

Der Code für die Videowerbung versteckt sich im PLayer selbst...

Hier der Code welcher die anzeigen von Google frisst und in den youtube player einspeist
#initclip 67
if (!com.google.youtube.players.AdController)
{
if (!com)
{
_global.com = new Object();
} // end if
if (!com.google)
{
_global.com.google = new Object();
} // end if
if (!com.google.youtube)
{
_global.com.google.youtube = new Object();
} // end if
if (!com.google.youtube.players)
{
_global.com.google.youtube.players = new Object();
} // end if
var _loc1 = (_global.com.google.youtube.players.AdController = function ()
{
super();
}).prototype;
_loc1.init = function (mc, bannerAdType, inStreamAdType, showVisibleUrl, maxBannerTextAdsToShow, spacingType, layoutType)
{
this.bannerAdType = bannerAdType;
this.inStreamAdType = inStreamAdType;
this.showVisibleUrl = showVisibleUrl;
this.maxBannerTextAdsToShow = maxBannerTextAdsToShow;
this.spacingType = spacingType;
this.layoutType = layoutType;
this.loadAdLibrary(mc);
};
_loc1.loadAdLibrary = function (mc)
{
System.security.allowDomain("https://pagead2.googlesyndication.com/pagead");
System.security.allowDomain("*");
this.adLibrary = this.createEmptyMovieClip("adLibrary", this.getNextHighestDepth());
var _loc3 = new Object();
_loc3.onLoadInit = com.google.chianti.event.EventDelegate.create(this, this.onAdMcLoadInit);
_loc3.onLoadError = com.google.chianti.event.EventDelegate.create(this, this.onAdMcLoadError);
var _loc4 = new MovieClipLoader();
_loc4.addListener(_loc3);
_loc4.loadClip(com.google.youtube.players.AdController.AD_LIBRARY_URL, this.adLibrary);
};
_loc1.onAdMcLoadError = function (mc)
{
this.broadcast({type: com.google.youtube.event.AdControllerEvent.LOAD_ERROR, target: this});
};
_loc1.onAdMcLoadInit = function (mc)
{
var _loc3 = com.google.youtube.players.Config.getData();
if (_loc3.flashVars.eurl != undefined)
{
this.referrerUrl = _loc3.flashVars.eurl;
} // end if
if (_loc3.flashVars.video_query != undefined)
{
this.videoQuery = _loc3.flashVars.video_query;
} // end if
if (_loc3.flashVars.video_pub_id != undefined)
{
this.videoPubId = _loc3.flashVars.video_pub_id;
} // end if
if (_loc3.flashVars.channel_id != undefined)
{
this.channelId = _loc3.flashVars.channel_id;
}
else
{
this.channelId = "";
} // end else if
var _loc4 = {adServer: com.google.youtube.players.AdController.AD_SERVER_URL, adType: this.bannerAdType, adDimension: this.bannerAdDimension, channels: [this.channelId], numAds: this.bannerAdType == com.google.youtube.players.AdController.TEXT_AD_TYPE ? (this.maxBannerTextAdsToShow) : (1), videoProductType: com.google.youtube.players.AdController.VIDEO_PRODUCT_TYPE, numVideoClips: com.google.youtube.players.AdController.NUM_VIDEO_CLIPS, videoPublisherId: this.videoPubId, query: this.videoQuery, referrerUrl: this.referrerUrl, numAdsToSkip: 0};
this.adLibrary.requestAds(_loc4, com.google.chianti.event.EventDelegate.create(this, this.onContentRequestResult));
};
_loc1.onContentRequestResult = function (response)
{
if (response.success)
{
this.broadcast({type: com.google.youtube.event.AdControllerEvent.CONTENT_LOADED, data: response.contents, target: this});
if (response.ads[0].getType() == com.google.youtube.players.AdController.TEXT_NARROW_AD_TYPE)
{
this.numTextAdsToSkip = this.numTextAdsToSkip + (_global.parseInt(response.ads[0].getNumAds(), 10) || 0);
response.ads[0].setAdPlayerType(com.google.youtube.players.AdController.BANNER_TEXT_AD_PLAYER);
}
else
{
this.numImageAdsToSkip = this.numImageAdsToSkip + (_global.parseInt(response.ads[0].getNumAds(), 10) || 0);
} // end else if
this.bannerAdPlayer = response.ads[0].getAdPlayerMovieClip();
this.initializeBannerAdPlayer(this.bannerAdPlayer, response.ads[0].getType());
this.showAdPlayer(this.bannerAdPlayer);
}
else
{
this.broadcast({type: com.google.youtube.event.AdControllerEvent.CONTENT_ERROR, error: response.errorMsg, target: this});
} // end else if
};
_loc1.hideAdPlayer = function (player)
{
player.pause();
player.fadeOut();
};
_loc1.showAdPlayer = function (player)
{
player.play();
};
_loc1.loadBannerAdsForVideo = function (videoData)
{
if (videoData.bannerAdPlayer != undefined && this.bannerAdPlayer != videoData.bannerAdPlayer)
{
this.hideAdPlayer(this.bannerAdPlayer);
this.bannerAdPlayer = videoData.bannerAdPlayer;
this.showAdPlayer(this.bannerAdPlayer);
}
else if (!videoData.hasRequestedBannerAds)
{
this.requestBannerAds(videoData, this.bannerAdType);
} // end else if
this.currentVideoData = videoData;
};
_loc1.loadInStreamAdsForVideo = function (videoData)
{
this.hideInStreamAd();
if (videoData.inStreamAdPlayer != undefined && videoData.inStreamAdPlayer)
{
this.inStreamAdPlayer = videoData.inStreamAdPlayer;
this.showInStreamAd();
}
else if (!videoData.hasRequestedInStreamAds && videoData.bannerAdPlayer)
{
this.requestInStreamAds(videoData);
}
else
{
videoData.needsInStreamAdsiRequest = true;
} // end else if
};
_loc1.requestBannerAds = function (videoData, type)
{
videoData.hasRequestedBannerAds = true;
var _loc4 = {adServer: com.google.youtube.players.AdController.AD_SERVER_URL, videoId: videoData.doc_key, adType: type, adDimension: this.bannerAdDimension, channels: [this.channelId], videoWeight: com.google.youtube.players.AdController.VIDEO_WEIGHT, numAds: type == com.google.youtube.players.AdController.TEXT_AD_TYPE ? (this.maxBannerTextAdsToShow) : (1), videoProductType: com.google.youtube.players.AdController.VIDEO_PRODUCT_TYPE, videoPublisherId: this.videoPubId, referrerUrl: this.referrerUrl, numAdsToSkip: type == com.google.youtube.players.AdController.TEXT_AD_TYPE ? (this.numTextAdsToSkip) : (this.numImageAdsToSkip)};
this.adLibrary.requestAds(_loc4, com.google.chianti.event.EventDelegate.create(this, this.onBannerAdRequestResult, videoData));
};
_loc1.onBannerAdRequestResult = function (response, videoData)
{
if (response.ads == undefined)
{
if (this.bannerAdType == com.google.youtube.players.AdController.IMAGE_AD_TYPE && !this.textAdRequested)
{
this.textAdRequested = true;
this.requestBannerAds(videoData, com.google.youtube.players.AdController.TEXT_AD_TYPE);
} // end if
}
else
{
if (response.ads[0].getType() == com.google.youtube.players.AdController.TEXT_NARROW_AD_TYPE)
{
this.numTextAdsToSkip = this.numTextAdsToSkip + (_global.parseInt(response.ads[0].getNumAds(), 10) || 0);
response.ads[0].setAdPlayerType(com.google.youtube.players.AdController.BANNER_TEXT_AD_PLAYER);
}
else
{
this.numImageAdsToSkip = this.numImageAdsToSkip + (_global.parseInt(response.ads[0].getNumAds(), 10) || 0);
} // end else if
var _loc4 = response.ads[0].getAdPlayerMovieClip();
videoData.bannerAdPlayer = _loc4;
this.initializeBannerAdPlayer(_loc4, response.ads[0].getType());
this.hideAdPlayer(this.bannerAdPlayer);
this.showAdPlayer(_loc4);
this.bannerAdPlayer = _loc4;
if (videoData.needsInStreamAdsRequest)
{
this.requestInStreamAds(videoData);
} // end if
} // end else if
};
_loc1.requestInStreamAds = function (videoData)
{
videoData.needsInStreamAdsRequest = false;
videoData.hasRequestedInStreamAds = true;
var _loc3 = {adServer: com.google.youtube.players.AdController.AD_SERVER_URL, videoId: videoData.doc_key, adType: this.inStreamAdType, adDimension: this.inStreamAdDimension, channels: [this.channelId], videoWeight: com.google.youtube.players.AdController.VIDEO_WEIGHT, numAds: com.google.youtube.players.AdController.NUM_IN_STREAM_ADS, videoProductType: com.google.youtube.players.AdController.VIDEO_PRODUCT_TYPE, videoPublisherId: this.videoPubId, referrerUrl: this.referrerUrl, numAdsToSkip: this.numTextAdsToSkip};
this.adLibrary.requestAds(_loc3, com.google.chianti.event.EventDelegate.create(this, this.onInStreamAdsRequestResult, videoData));
};
_loc1.onInStreamAdsRequestResult = function (response, videoData)
{
if (response.success)
{
if (response.ads[0].getType() == com.google.youtube.players.AdController.TEXT_NARROW_AD_TYPE)
{
this.numTextAdsToSkip = this.numTextAdsToSkip + _global.parseInt(response.ads[0].getNumAds(), 10);
} // end if
this.inStreamAdPlayer = response.ads[0].getAdPlayerMovieClip();
videoData.inStreamAdPlayer = this.inStreamAdPlayer;
this.inStreamAdPlayer.setSize(this.inStreamAdWidth, this.inStreamAdHeight);
this.inStreamAdPlayer._x = this.inStreamAdX;
this.inStreamAdPlayer._y = this.inStreamAdY;
this.inStreamAdPlayer.onAdClosed = com.google.chianti.event.EventDelegate.create(this, this.onAdClosed);
this.inStreamAdPlayer.onAdOpened = com.google.chianti.event.EventDelegate.create(this, this.onAdOpened);
this.inStreamAdPlayer.onAdShown = com.google.chianti.event.EventDelegate.create(this, this.onAdShown);
this.inStreamAdPlayer.onAdHidden = com.google.chianti.event.EventDelegate.create(this, this.onAdHidden);
this.inStreamAdPlayer.onAdClick = com.google.chianti.event.EventDelegate.create(this, this.onAdClicked);
this.inStreamAdPlayer.load();
this.inStreamAdPlayer.play();
} // end if
};
_loc1.onAdShown = function (isClosed)
{
this.broadcast({type: com.google.youtube.event.AdControllerEvent.IN_STREAM_AD_SHOWN, target: this, data: {isClosed: isClosed}});
};
_loc1.onAdHidden = function ()
{
this.broadcast({type: com.google.youtube.event.AdControllerEvent.IN_STREAM_AD_HIDDEN, target: this});
};
_loc1.onAdClosed = function ()
{
this.currentVideoData.isInStreamAdPlayerClosed = true;
this.broadcast({type: com.google.youtube.event.AdControllerEvent.IN_STREAM_AD_CLOSED, target: this});
};
_loc1.onAdOpened = function ()
{
this.showInStreamAd();
this.currentVideoData.isInStreamAdPlayerClosed = false;
this.broadcast({type: com.google.youtube.event.AdControllerEvent.IN_STREAM_AD_OPENED, target: this});
};
_loc1.onAdClicked = function ()
{
this.broadcast({type: com.google.youtube.event.AdControllerEvent.AD_CLICKED, target: this});
};
_loc1.isInStreamAdClosed = function ()
{
return (this.currentVideoData.isInStreamAdPlayerClosed);
};
_loc1.initializeBannerAdPlayer = function (adPlayer, type)
{
if (type == com.google.youtube.players.AdController.TEXT_NARROW_AD_TYPE)
{
adPlayer.setMaxAdsToShow(this.maxBannerTextAdsToShow);
adPlayer.setShowVisibleUrl(this.showVisibleUrl);
adPlayer.setLayoutType(this.layoutType);
adPlayer.setSpacingType(this.spacingType);
}
else
{
adPlayer.setBackgroundColor(com.google.youtube.data.ThemeData.getThemeColors()[0]);
} // end else if
adPlayer.onAdClick = com.google.chianti.event.EventDelegate.create(this, this.onAdClicked);
adPlayer.setSize(this.bannerAdWidth, this.bannerAdHeight);
adPlayer._x = this.bannerAdX;
adPlayer._y = this.bannerAdY;
adPlayer.load();
};
_loc1.showInStreamAd = function ()
{
this.showAdPlayer(this.inStreamAdPlayer);
};
_loc1.hideInStreamAd = function ()
{
this.hideAdPlayer(this.inStreamAdPlayer);
};
_loc1.setInStreamAdLocation = function (x, y)
{
this.inStreamAdX = x;
this.inStreamAdY = y;
};
_loc1.setInStreamAdSize = function (width, height)
{
this.inStreamAdWidth = width;
this.inStreamAdHeight = height;
this.inStreamAdDimension = this.inStreamAdWidth + "x" + this.inStreamAdHeight;
};
_loc1.setBannerAdLocation = function (x, y)
{
this.bannerAdX = x;
this.bannerAdY = y;
};
_loc1.setBannerAdSize = function (width, height)
{
this.bannerAdWidth = width;
this.bannerAdHeight = height;
this.bannerAdDimension = this.bannerAdWidth + "x" + this.bannerAdHeight;
};
ASSetPropFlags(_loc1, null, 1);
(_global.com.google.youtube.players.AdController = function ()
{
super();
}).LINK_NAME = "__Packages.com.google.youtube.players.AdController";
(_global.com.google.youtube.players.AdController = function ()
{
super();
}).FORCE_LINK = Object.registerClass(com.google.youtube.players.AdController.LINK_NAME, com.google.youtube.players.AdController);
_loc1.numTextAdsToSkip = 0;
_loc1.numImageAdsToSkip = 0;
_loc1.layoutType = "standard";
_loc1.showVisibleUrl = true;
_loc1.maxBannerTextAdsToShow = 1;
_loc1.spacingType = "equalSpacing";
_loc1.textAdRequested = false;
(_global.com.google.youtube.players.AdController = function ()
{
super();
}).NUM_VIDEO_CLIPS = 10;
(_global.com.google.youtube.players.AdController = function ()
{
super();
}).NUM_IN_STREAM_ADS = 10;
(_global.com.google.youtube.players.AdController = function ()
{
super();
}).VIDEO_WEIGHT = 100;
(_global.com.google.youtube.players.AdController = function ()
{
super();
}).TEXT_NARROW_AD_TYPE = "text/narrow";
(_global.com.google.youtube.players.AdController = function ()
{
super();
}).BANNER_TEXT_AD_PLAYER = 2;
(_global.com.google.youtube.players.AdController = function ()
{
super();
}).VIDEO_PRODUCT_TYPE = 1;
(_global.com.google.youtube.players.AdController = function ()
{
super();
}).TEXT_AD_TYPE = "text";
(_global.com.google.youtube.players.AdController = function ()
{
super();
}).IMAGE_AD_TYPE = "staticimage";
(_global.com.google.youtube.players.AdController = function ()
{
super();
}).AD_SERVER_URL = "https://pagead2.googlesyndication.com";
(_global.com.google.youtube.players.AdController = function ()
{
super();
}).AD_LIBRARY_URL = L";
} // end if
#endinitclip


G hat aber auch eine swf datei die im player eingebetet wird um adsense anzuzeigen...

wer die haben will...pn pls.. würde gern brainstorming machen, um herrauszufinden wie es funktioniert ......