Grigori Jlavyan
Grigori Jlavyan

Reputation: 1971

Google AdMob is not working with CocoaPods

I am using CocoaPods with

pod 'Google-Mobile-Ads-SDK', '~> 7.5.1'

Banner doesn't not show

2015-10-07 11:35:28.977 [3895:769698] <Google> Invalid Request: {
    "activation_overlay_url" = "http://googleads.g.doubleclick.net/mads/static/activation_overlay.html?hl=en";
    "base_uri" = "https:";
    "enable_auto_click_protection" = 0;
    errors = "Cannot determine request type. Is your ad unit id correct?";
    "google.afma.Notify_dt" = 1444203328976;
    "pan_include" = 0;
    "request_id" = 8;
    "request_scenario" = "online_request";
    type = unknown;
    "use_webview_loadurl" = 0;
}

EDIT

adBanner.adUnitID = serverGadBannerIdentifier;
adBanner.delegate = self;
[adBanner setRootViewController:contrller];
[adBanner loadRequest:[self createRequestWithBanner]];

Upvotes: 0

Views: 395

Answers (1)

ThomasW
ThomasW

Reputation: 17307

The error message says "Cannot determine request type. Is your ad unit id correct?". Are you sure you're setting the ad unit id to the correct value?

Upvotes: 1

Related Questions