GANSearchAdController 클래스
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
검색 광고를 검색하여 SDK의 클라이언트가 사용할 수 있게 합니다.
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. |
지정된 adRequest
에 대한 광고의 첫 번째 페이지와 필요에 따라 후속 페이지를 비동기식으로 검색합니다.
이 메서드는 요청당 한 번만 호출해야 합니다. 새 광고가 로드되거나 로드되지 않으면 기본 스레드에서 GANSearchAdControllerDelegate
가 호출됩니다.
- Parameters
-
loadAds:
의 마지막 호출에서 지정된 이전 요청에 대한 광고의 다음 페이지를 비동기식으로 검색합니다.
loadAds:
가 호출되지 않은 경우 GANSearchAdControllerDelegate
를 통해 오류가 반환됩니다. 표시되지 않은 전체 페이지 광고가 있는 경우에도 대리인에 오류가 반환됩니다.
가장 최근의 loadAds:
호출에서 로드된 광고의 총 개수를 반환합니다.
- (void) populateAdView: |
|
(GANAdView *) |
view |
identifier: |
|
(NSString *) |
adIdentifier |
|
|
| |
식별자로 지정된 광고로 adView를 채웁니다.
adIdentifier
가 새 식별자이면 사용 가능한 다음 광고가 뷰에 표시됩니다.
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
가 새 식별자이면 사용 가능한 다음 광고가 뷰에 표시됩니다.
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 |
가장 최근에 게재된 스타일이 실험 대안인지, 실험 대조군인지 또는 실험에 선택되지 않았는지를 나타냅니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2023-12-01(UTC)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"필요한 정보가 없음"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"너무 복잡함/단계 수가 너무 많음"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"오래됨"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"번역 문제"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"샘플/코드 문제"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"기타"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"이해하기 쉬움"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"문제가 해결됨"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"기타"
}]