GANSearchAdController 類別
繼承 NSObject。
初始化廣告控制器。
- Parameters
-
publisherID | The publisher id, e.g. "ms-app-pub-9616389000213823". |
styleID | The settings id for the template that will be used to render native ads. |
options | GANSearchAdControllerOptions, such as adTest, and adSafe, etc. |
delegate | GANSearchAdControllerDelegate for receiving notifications when ads are loaded and other events. |
傳回最近一次呼叫 loadAds:
時載入的廣告總數。
- (void) populateAdView: |
|
(GANAdView *) |
view |
identifier: |
|
(NSString *) |
adIdentifier |
|
|
| |
以 ID 指定的廣告填入 adView。
- 如果
adIdentifier
是新 ID,檢視畫面會顯示下一個可用的廣告。
- 如果已使用
adIdentifier
,檢視畫面會顯示第一次使用 adIdentifier
呼叫這個方法時所顯示的廣告。- Parameters
-
view | The GANAdView to populate. |
adIdentifier | An ad identifier used to identify this ad. This can be any NSString. Each unique string will be assigned to the next available ad until ads are exhausted. |
- (void) populateAdView: |
|
(GANAdView *) |
view |
identifier: |
|
(NSString *) |
adIdentifier |
completionHandler: |
|
(GANAdViewPopulatedCompletionHandler) |
completionHandler |
|
|
| |
以識別碼指定的廣告填入 adView,並在廣告準備就緒時呼叫完成處理常式。
- 如果
adIdentifier
是新 ID,檢視畫面會顯示下一個可用的廣告。
- 如果已使用
adIdentifier
,檢視畫面會顯示第一次使用 adIdentifier
呼叫這個方法時所顯示的廣告。- Parameters
-
view | The GANAdView to populate. |
adIdentifier | An ad identifier used to identify this ad. This can be any NSString. Each unique string will be assigned to the next available ad until ads are exhausted. |
completionHandler | The completion handler to be called when the ad view is ready to be displayed. Ad specific data will provided such as the height of the ad view. |
- (NSString*) publisherID |
|
readnonatomiccopy |
最近放送的樣式是否為實驗變化版本、實驗組,或未獲選用於實驗。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-01 (世界標準時間)。
[]
[]
{"lastModified": "\u4e0a\u6b21\u66f4\u65b0\u6642\u9593\uff1a2023-12-01 (\u4e16\u754c\u6a19\u6e96\u6642\u9593)\u3002"}