2011-09-28 127 views
0

我有一個網站的文章,我想分享與文章作者(90%的百分比)文章的AdSense收入。我在we created a PHP code that rotates the ads, but I have a problem. I我們發現,它不夠帳戶ID,我也需要一個廣告位號碼。如何僅使用用戶帳戶ID創建AdSense廣告?

如果用戶只向我發送他的帳戶ID,會更好,因爲除此之外,每個用戶都需要在自己的AdSense帳戶中創建廣告,並向我發送整個代碼,而且我需要檢查如果廣告是我需要的尺寸。

有什麼建議嗎?是否有可能只通過用戶ID輪換廣告?

回答

0

您可以使用舊的(但工作良好的)AdSense代碼。它看起來像這樣:

<script> 
    google_ad_client="YOUR-PUB-ID"; 
    google_ad_width=300; 
    google_ad_height=250; 
    google_ad_format="300x250_as"; 
    google_ad_type="image"; 
    google_color_border="f3f3f3"; 
    google_color_bg="f3f3f3"; 
    google_color_link="313135"; 
    google_color_text="626262"; 
    google_color_url="2c89bc"; 
    google_ui_features="rc:0"; 
</script> 
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 

可用google_ad_type:鏈接單元 '文字_', '文', '形象', :忽略此PARAM。

廣告格式是: 728x90_as(排行榜), 468x60_as(橫幅), 234x60_as(半橫幅廣告), 125x125_as(按鈕), 120x600_as(摩天大樓), 160x600_as(寬幅摩天大樓), 180x150_as(小矩形), 120x240_as(豎幅), 200x200_as(小廣場), 250x250_as(廣場), 300x250_as(矩形), 336x280_as(大矩形)

鏈接單元格式: 120x90_0ads_al(4鏈接), 120x90_0ads_al_s(5個鏈接), 160x90_0ads_al(4個鏈接), 160x90_0ads_al_s(5個鏈接), 180x90_0ads_al(4個鏈接), 180x90_0ads_al_s(5個鏈接), 200x90_0ads_al(4個鏈接), 200x90_0ads_al_s(5個鏈接), 468x15_0ads_al(4個鏈接), 468x15_0ads_al_s(5個鏈接), 728x15_0ads_al(4個鏈接), 728x15_0ads_al_s(5個鏈接)

只是玩耍。其他值是自我解釋的...寬度/高度必須與所選廣告格式的寬度和高度相匹配。這就是我們如何在Pagewizz.com和Wizzley.com上與成千上萬的用戶進行互動。