Package com.google.api.services.adsense.model

Examples of com.google.api.services.adsense.model.AdUnits


        System.out.println("Account ID:" + asString("id"));
        // 対象クライアントID
        String adClientId = "ca-" + accountId;

        // AdSense Unit の取得(有効な広告のみ)
        AdUnits adUnits = adSense.adunits().list(adClientId).setIncludeInactive(false).execute();
        if(adUnits.getItems() == null || adUnits.getItems().size() <= 0) {
            return forward("select_ad_unit.jsp");
        }

        List<AdUnit> targetUnits = new ArrayList<AdUnit>();
        for(AdUnit adUnit: adUnits.getItems()) {

            String targetSizeString = "SIZE_" + size;

            // 広告ユニットのセッティング情報を取得
            ContentAdsSettings contentAdsSettings = adUnit.getContentAdsSettings();
View Full Code Here

TOP

Related Classes of com.google.api.services.adsense.model.AdUnits

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.