@@ -655,6 +655,40 @@ struct BoundingBox {
655
655
AdView::Position position;
656
656
};
657
657
658
+ // / @brief Listener to be invoked when ads show and dismiss full screen content,
659
+ // / such as a fullscreen ad experience or an in-app browser.
660
+ class FullScreenContentListener {
661
+ public:
662
+ virtual ~FullScreenContentListener ();
663
+
664
+ // / Called when the user clicked the ad.
665
+ virtual void OnAdClicked ();
666
+
667
+ // / Called when the ad dismissed full screen content.
668
+ virtual void OnAdDismissedFullScreenContent ();
669
+
670
+ // / Called when the ad failed to show full screen content.
671
+ // /
672
+ // / param[in] ad_result An object containing detailed information
673
+ // / about the error.
674
+ virtual void OnAdFailedToShowFullScreenContent (const AdResult& ad_result);
675
+
676
+ // / Called when an impression is recorded for an ad.
677
+ virtual void OnAdImpression ();
678
+
679
+ // / Called when the ad showed the full screen content.
680
+ virtual void OnAdShowedFullScreenContent ();
681
+ };
682
+
683
+ // / Listener to be invoked when ads have been estimated to earn money.
684
+ class PaidEventListener {
685
+ public:
686
+ virtual ~PaidEventListener ();
687
+
688
+ // / Called when an ad is estimated to have earned money.
689
+ virtual void OnPaidEvent (const AdValue& value) = 0;
690
+ };
691
+
658
692
// / Information about an ad response.
659
693
class ResponseInfo {
660
694
public:
@@ -715,40 +749,6 @@ class LoadAdResult : public AdResult {
715
749
ResponseInfo response_info_;
716
750
};
717
751
718
- // / @brief Listener to be invoked when ads show and dismiss full screen content,
719
- // / such as a fullscreen ad experience or an in-app browser.
720
- class FullScreenContentListener {
721
- public:
722
- virtual ~FullScreenContentListener ();
723
-
724
- // / Called when the user clicked the ad.
725
- virtual void OnAdClicked ();
726
-
727
- // / Called when the ad dismissed full screen content.
728
- virtual void OnAdDismissedFullScreenContent ();
729
-
730
- // / Called when the ad failed to show full screen content.
731
- // /
732
- // / param[in] ad_result An object containing detailed information
733
- // / about the error.
734
- virtual void OnAdFailedToShowFullScreenContent (const AdResult& ad_result);
735
-
736
- // / Called when an impression is recorded for an ad.
737
- virtual void OnAdImpression ();
738
-
739
- // / Called when the ad showed the full screen content.
740
- virtual void OnAdShowedFullScreenContent ();
741
- };
742
-
743
- // / Listener to be invoked when ads have been estimated to earn money.
744
- class PaidEventListener {
745
- public:
746
- virtual ~PaidEventListener ();
747
-
748
- // / Called when an ad is estimated to have earned money.
749
- virtual void OnPaidEvent (const AdValue& value) = 0;
750
- };
751
-
752
752
// / @brief Global configuration that will be used for every @ref AdRequest.
753
753
// / Set the configuration via @ref SetRequestConfiguration.
754
754
struct RequestConfiguration {
0 commit comments