Comments (8)
I'm not sure why you're getting No ad to show
in your project's environment. Sometimes something happens to the test ad configuration and it doesn't work, but I just tried it and it seems to be working fine, and you've gotten it in your test environment.
To further debug the multiple instances of GoogleMobileAds, can you clarify what your Podfile looks like so I can see exactly what pods you're referencing? I ask because I don't see a Google/Ads
pod, just a Google/AdMob. Google/AdMob
depends on GoogleMobileAds
, which is the same library as Google-Mobile-Ads-SDK
. So you'll get duplicate copies of GoogleMobileAds if both of these libraries are referenced. We're looking to clean that up so there aren't 2 pods for the same library.
from googleads-mobile-ios-examples.
You're right it's Google/AdMob
, not Google/Ads
.
The problem is that I've been trying that code for few days now, with no success on my main project. :/
Podfile (CocoaPods 0.39.0, can migrate to 1.0.0):
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
inhibit_all_warnings!
def project_pods
pod 'Alamofire', '~> 3.0'
pod 'SWRevealViewController', '~> 2.3'
pod 'StreamingKit', git: '[email protected]:tomaszwojcik/StreamingKit.git'
pod 'SDWebImage', '~> 3.7'
pod 'FBSDKCoreKit', '~> 4.10'
pod 'FBSDKShareKit', '~> 4.10'
pod 'FBSDKLoginKit', '~> 4.10'
pod 'Google/Analytics'
pod 'Google-Mobile-Ads-SDK', '~> 7.0'
end
def test_pods
pod 'Quick', '~> 0.9.0'
pod 'Nimble', '3.0.0'
end
target 'Project' do
project_pods
end
target 'ProjectTests' do
project_pods
test_pods
end
from googleads-mobile-ios-examples.
Looks like I found the issue.
In AppDelegate I change the user-agent, and it seems the AdMob doesn't like that at all.
NSUserDefaults.standardUserDefaults().registerDefaults(["UserAgent" : "MyUserAgent"])
Now I'm able to retrieve test ads all the time.
@ericleich Can you please add that to AdMob documentation?
from googleads-mobile-ios-examples.
Good catch, ads won't load if the user agent is changed. I'll think about where it makes sense to add it to the docs. We may have to create a new troubleshooting page to hold content like this.
from googleads-mobile-ios-examples.
@ericleich I am getting the below error after upgrading the Google Ads sdk to the latest version.
InAppPurchase is removed from the latest version as per the migration guide.
'GoogleMobileAds/GADInterstitialDelegate.h' file not found
'GoogleMobileAds/GADInAppPurchaseDelegate.h' file not found
#import <GoogleMobileAds/GADInAppPurchaseDelegate.h>
#import <GoogleMobileAds/GADInterstitialDelegate.h>
from googleads-mobile-ios-examples.
@nihp this is expected behavior. Both of those headers no longer exist in v9.x of the iOS SDK. The examples at HEAD of this repo use the latest delegates.
from googleads-mobile-ios-examples.
@ericleich Could you please provide any alternative for the same one.
I have removed the GADInAppPurchaseDelegate imports.
But the GADInterstitialDelegate needs to be used by many of the implemetnation. Could you please provide. the alternate for this.
from googleads-mobile-ios-examples.
@nihp The GADFullScreenContentDelegate protocol has replaced GADInterstitialDelegate. Please see https://developers.google.com/admob/ios/migration#expandable-1 for more information. You can also check out the InterstitialExample in this repo to see how itβs implemented in v9.
from googleads-mobile-ios-examples.
Related Issues (20)
- native ad crash HOT 1
- IOS 16 devices: Banners and interstitial ads cannot be displayed HOT 2
- 1 required SKAdNetwork identifier(s) missing from Info.plist. Missing network(s): AdColony. HOT 3
- Dark transparent overlay with blue button on top of native ads HOT 2
- Unable to view correct custom event interstitial google ads IOS HOT 1
- SwiftUIDemo - Banner Ad height HOT 15
- Issue spotted in documentation
- Sample app still uses deprecated sdk version HOT 1
- SwiftUI app restarts itself when reward is granted
- IOS This method should not be called on the main thread as it may lead to UI unresponsiveness. HOT 7
- Question on Sample HOT 3
- Clarification: How to support Ogury bidding source as part of AdMob Mediation Adapter? HOT 1
- Unauthorized analytics collection by default HOT 2
- Undefined symbols: _SKStoreProductParameterAdNetworkSourceIdentifier HOT 2
- Can't close AdMob Reward, iOS Safearea issue HOT 1
- Ad Inspector Error: Ad Inspector closed unexpectedly HOT 1
- Unexpectedly found nil while implicitly unwrapping an Optional value HOT 2
- Network request failed HOT 1
- ios GADInterstitialAd endless call prefersStatusBarHidden HOT 8
- AdManagerMultipleAdSizesViewController not loading ads HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from googleads-mobile-ios-examples.