Facebook Audience Network Integration with mediation

414 views
Skip to first unread message

Ashish Porecha

unread,
Feb 23, 2016, 7:55:19 PM2/23/16
to Google Mobile Ads SDK Developers
I included the Facebook Audience Network SDK into my app. I also included the adapter folder as well as the AdMob SDK. No compiler errors or anything. I also have Millennial as a mediated network. 

I am just testing right now so I get the test ad. 

When I run my app, I see logs for Millennial like so that let me know Millennial is working

MMAdSDK (Warn): (-[MMReportingManager createReportingDirectories]) (MMReportingManager.m:572) Site ID not set; reporting directories cannot be created.

MMAdSDK (Info): (-[MMSDK initializeWithSettings:withUserSettings:]) (MMSDK.m:73) Initialized the Millennial Media SDK.


However, I don't see any logs that tell me anything about Facebook Audience Network. Can anyone give me any idea as to what I can expect regarding logs and testing to see if the setup is correct?

Veer Arjun Busani

unread,
Feb 24, 2016, 10:35:34 AM2/24/16
to Google Mobile Ads SDK Developers
Hi Ashish,

As far as I'm aware of, the MAD SDK would not log if any Mediation Adaptor is successfully initialized. It would however throw an error if there is an issue with the implementation. For example you would see this - 

<Google> Cannot find an ad network adapter with the name(s): (

    GADMAdapterFacebook

).


Also the log that you are seeing is coming from Millennial SDK and not from MAD SDK. You could test to see if you ads are being served from FAN by looking at adNetworkClassName.  

Thanks,
Veer Busani
Mobile Ads SDK Team

Ashish Porecha

unread,
Feb 24, 2016, 11:46:28 AM2/24/16
to Google Mobile Ads SDK Developers
Thank you Veer,

But how would I go about testing this? I would have to use a non-test ad or would this work with the test ad? 

Veer Arjun Busani

unread,
Feb 24, 2016, 1:21:19 PM2/24/16
to Google Mobile Ads SDK Developers
Hi Ashish,

We can only provide test Ad Unit ID's for AdMob network and you would have to ask your Facebook Ad Network to see if they support only test ads to be served. If they do not have such a feature, then just make sure that you do not click on the ads while in development.

Thanks,
Veer Arjun Busani
Mobile Ads SDK Team

Ashish Porecha

unread,
Feb 24, 2016, 1:27:06 PM2/24/16
to google-adm...@googlegroups.com
Hi Veer,

I followed the directions as provided by another forum poster to do a live test of my mediated networks (remove optimization and force loading of non-Admob networks) and removed my test device ID property from my code. The funny thing is that it is still serving the AdMob test ad - is this to be expected?

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/WF5G_XteJh4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
To post to this group, send email to google-adm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Veer Arjun Busani

unread,
Feb 24, 2016, 2:07:41 PM2/24/16
to Google Mobile Ads SDK Developers
Hi Ashish,

If you want to see FAN ads, then you need to remove test device ID while testing. Now if you have removed this and still only see test ads, may I suggest you to block AdMob network in your country to only get served via FAN and Millennial network . Also ensure that your project has the FAN Adaptor, FAN SDK and followed all of the FAN implementation guidelines.

Ashish Porecha

unread,
Feb 24, 2016, 7:34:29 PM2/24/16
to google-adm...@googlegroups.com
OK, did so as you suggested. Now I'm facing the issue of an error with FAN that says "invalid placement ID". It's also suggesting I put in a test device name - how does this work since I'm mediating and not using any of their code. There are plenty of documentation about using say AdMob or FAN and setting the test device, none for if you are mediating. Also, now the SDK cannot find the Millennial adapter. So difficult for no reason.

--

Ashish Porecha

unread,
Feb 24, 2016, 9:11:35 PM2/24/16
to google-adm...@googlegroups.com
OK, I did so. I started receiving FAN test ads, also saw Millennial test ads. However, when I dismissed the FAN test ad, it didn't call the AdMob delegate methods. I tested again with AdMob test ads and the delegate methods were called. Can you provide explanation? Thanks again for your help. 

--

Veer Arjun Busani

unread,
Feb 25, 2016, 9:53:57 AM2/25/16
to Google Mobile Ads SDK Developers
Hi Ashish,

I have just tested mediation through FAN and each time the delegate methods for GADInterstitial were called. Are you sure that you are listening to GADInterstitialDelegate? It's the same delegate for both AdMob and other Mediation networks. One quick way to make sure that there is not problem with your implementation is to first test it with our sample apps. Also are you sure that you are not calling for ads through FAN SDK?

Do get back to us if you are still facing any issues.

Ashish Porecha

unread,
Feb 25, 2016, 6:54:18 PM2/25/16
to google-adm...@googlegroups.com
I couldn't get the sample app to build - something is not linking and I don't want to spend time figuring out why the sample app is not building. 

Millennial (live and test) and AdMob (test) both work as expected. FAN test ads dismissal do not call interstitialDidDismissScreen

--

Veer Arjun Busani

unread,
Feb 26, 2016, 9:54:35 AM2/26/16
to Google Mobile Ads SDK Developers
Hi Ashish,

The one reason I could think of for you to having issues building the project would be if you have not installed the required pods for the project. Once you have downloaded the sample app, open Terminal and with path to the sample project directory, simply type pod install. If CocoaPods is not installed, you can follow this simple tutorial to do so.

Ashish Porecha

unread,
Feb 26, 2016, 10:11:11 AM2/26/16
to google-adm...@googlegroups.com
Yeah I did that, but I didn't want to spend time beyond that debugging demo software from Google - that's not my job :)

The problem still remains. FAN ad dismissal does not call all the delegate methods. Anyone relying on the "didDismiss" method will have issues.

My fix was just to change my ad placement to not rely on the aforementioned delegate method. Previously I was using MoPub mediation, their adapters worked for FAN and all their delegate methods were called. Millennial and AdMob call all delegate methods with AdMob mediation. Process of elimination tells me that it is an issue with the AdMob FAN adapter not FAN SDK, AdMob SDK, or implementation. 

Sent from my iPhone
--
Reply all
Reply to author
Forward
0 new messages