How to prevent google adsense ads for logged in users on a Ghost blog? - adsense

The WordPress plugin for Google Adsense has a very straightforward check box for disabling ads for logged-in users. How do I configure my AdSense code injection on my Ghost blog to not show for logged-in users without implementing it into my theme files?
I know there's a possibility to use this kind of thing:
{{#unless #member}}
...
{{else}}
...
{{/unless}}
That would tie my AdSense code to my theme files and I'd rather prevent that from happening.
But the use of handlebars is not available through the code injection interface. Is there some other way I'm missing?

Related

GPT implementation for Instant Articles

From what I understand, Facebook only supports an iframe adtag for DFP ads. Google states there are limitations with using this functionality, seen here: https://support.google.com/dfp_sb/answer/90777?hl=en
We're hesitant to implement the iframe tag across our whole website just to satisfy Facebook's requirements as this would then impact direct website traffic.
My questions are:
Does anyone have a sample of what FB's desired implementation would look like with the use of the iframe GPT tags?
Is anyone currently doing this, and if so, have you implemented this site-wide (limiting website functionality), or are you using a REGEX to cut the original ad out and replace within your feed export - seems messy.
After reading the link you shared and the FB policy it seems there aren't any real concerns with using an iframe. FB doesn't allow expandables or 3rd party ads. You can always have house ads targeting the ad unit as a fallback so i don't think the blank situation should come into play either. Here's the Facebook policy for reference: https://developers.facebook.com/docs/instant-articles/policy

Google Analytics incised of Facebook

i wanna put the google analytics inside of Facebook.
I use the static HTML and the FBML , and i put the code of Google Analytics in the page (the javascript). However i can't get any results in google analytics.
Can someone tell how can i resolve that issue ?
That is probably impossible. Facebook should provide their own analytics.
Reason, you can't have it is because facebook probably eliminates Javascript form the content you post for security reasons.
Start here:
https://www.facebook.com/help/336893449723054/

Ads on a facebook app (game) page

I am working on a facebook application a game and was wondering how to monetize it. I am new to FB and even the ad market place. What is my best bet to get ad revenue? I mean, which provider should I use? Can I use adsense? What are my options? Thanks for your suggestions.
In reaction to a little adverse privacy publicity (see: http://www.theregister.co.uk/2010/10/18/facebook_apps_privacy_breach/ ) Facebook tightened up their advertising policy around privacy and created an official approved ad provider list here: http://developers.facebook.com/adproviders/ listing ad providers who have agreed to comply with Facebook's privacy policies.
I recently did some searches in the Facebook Developer forums and found that RockYou and LifeStreet Media seem to be the most frequently cited providers.
AdSense is not currently on this list, but many apps do use AdSense.
Currently there is Fear, Uncertainty, and Doubt (FUD) over whether using AdSense in a Facebook app will get your account closed by AdSense, and whether it will get your app banned by Facebook.
Those who believe AdSense might ban you frequently assert that AdSense prohibits ad placement in an iframe, which is the only way to do it as a Facebook app. I have read the AdSense terms and can find no reference to iframes being prohibited. AdSense does expect your page to have meaningful content, which would seem to preclude use in some games or other apps that lack text content (think pure flash apps)

Is the Like Button the only currently supported method for posting a webpage to Facebook?

The Like Button seems like a very specific, and not very elegant in my opinion, solution to allowing users to post a web page to their Facebook profile. You have two options: 1) Use the iFrame solution, which allows very little flexibility in functionality, integration or appearance or 2) the XFBML solution which requires loading the entire Facebook javascript SDK just for one little "share this" button.
Is the Like Button the only way that is currently supported by Facebook to allow sharing of content to a user's Facebook profile? It seems to be the only method mentioned anywhere in the Facebook developer documentation, and I've had trouble finding any alternatives elsewhere on the internet.
There was a service called Facebook Share:
http://www.facebook.com/sharer.php?u=<your url>&t=<your title>
I guess it's still working but I'm seeing people having troubles using it and Facebook is forcing developers to use the Like Plugin.
Now:
Most likely your visitors will have the Facebook JS Library cached on their browsers
Facebook uses CDNs and their servers are super fast
Even if it doesn't fit in your design, don't forget that users are used to it
You can create a Facebook Application and use the Graph API but it's way more complicated
Don't use their services!
Actually, Facebook share is the simplest and most natural solution to share content on your FB profile.
You may want to read this article.

How to get targeted adsense ads on Facebook app page requiring authentication

I have a Facebook iframe application that I am monetizing via Google Adsense. On pages that do not require Facebook authentication, the ads are served fine and reflect the content on the page. Pages that require a Facebook session have the ads rendered fine, but they are very generic. They only reflect the user's geography and not the page content (for example, Groupon ads for the user's city, and ads for random things like photo uploading services).
I would like to get Adsense to render targeted ads based on the page content. There is plenty of good content on the pages in question. They are not "content-free" pages like pure logon pages.
I am using an approach similar to the one in the accepted answer for this other question: google adsense in facebook application . My Adsense javascript is in a separate file that gets loaded into an iframe in my canvas page, which is in turn loaded into Facebook as an iframe (like any other Facebook iframe app). The file with the Adsense code has a bunch of relevant content to provide Adsense with the context for targeting the ads. This content is not visible to the user as I set the iframe to have no scrollbars and a limited height.
Is the problem that the Adsense bot (user agent Mediapartners-Google) gets blocked by the Facebook logon and can't indexing the page?
Or is the problem that when the user accesses the page, Facebook tacks on a very long querystring, resulting in Adsense treating it as a different page for every user? Then again, this has no impact on the iframe URL.
The solution recommended in that other stack overflow question calls for loading the file with the Adsense code and keywords using a frameset rather than an iframe. Would this really make a difference?
I am aware of the potential conflict with Adsense terms which prohibits loading Adsense via an iframe. For a Facebook app there really is no other way to do it, and since the app iframe has legitimate content for ad targeting and is "owned" by the publisher (me) it seems consistent with the spirit if not the letter of the Adsense terms of use.
I have toyed with the idea of changing my pages that require a Facebook session to be open, and just disable all controls and present a Facebook login button to users who visit those pages and are not logged into Facebook already. I would use the Javascript client library to manage the login and enabling of controls so the page does not refresh, so hopefully Adsense will read the content and delivery relevant targeted ads. This is a significant change to those pages however, so if there is a simpler solution I'd like to avoid this work.
Well I did nothing but wait a week or so and the ads started to get context-tuned and relevant, using the approach of putting the ads in an iframe that has masked-off context content (setting the iframe height and width to just show the ads, no scroll bars or border) that matches my app's subject.
I'm not sure why it took a week for Google to tune into the context and produce targeted ads on this page, but I won't look the gift horse in the mouth I guess.