Adsense API live reporting - adsense-api

I want to integrate my Adsense Reporting into my own admin portal.
My admin portal is a simple php based website with lists of other websites that I own.
My goal is to fill this list of websites with the amount of earnings monthly.
So that this list looks like:
name | earnings
example.de | 56,00€
The whole week I am trying to start with the Google API but without any success.
Does anybody know how to get this information live? for example with google apis link?

AdSense Management API is what you want, for reporting.
You'll need client library:
https://developers.google.com/api-client-library/php/start/installation
And you'll probably want to browse the example folder here:
https://github.com/googleads/googleads-adsense-examples/tree/master/php-clientlib-1.x/v1.x
Then, get the API key so you can start playing:
https://developers.google.com/api-client-library/php/auth/api-keys
https://console.developers.google.com/
https://developers.google.com/apis-explorer/
https://stackoverflow.com/a/20199357/246808
EDIT: Almost forgot - the manual:
https://developers.google.com/adsense/management/getting_started

Related

Instagram API - search user

i am building a website where you can get services for your Instagram account, i want to create a Search box that when you put your user name (e.g. "#John") it returns your profile picture and asks you if that is the correct profile (without logging in to your Instagram account),
I've found a website that made that possible already, does any one know how?!
the website - https://app.get-notch.com/acquisition/instagram-username
thank you in advance!
You should check out this resource that allows you to do that. See an implementation of it here and test it here.

I have a current google analytics code on my website and I can not figure out how to access the information.

My website was built for me so it does not correspond with my gmail account. What do I do with code to find out the details of my account?
The script use an identifier to connect to a specific account. You can either just log into analytics and change the ID on your site to your own or ask the guy who made the site if he/her have already made an account.
The line you have to change looks something like:
ga(‘create’, ‘UA-XXXX-Y’, ‘auto’);
Where UA-XXXX-Y is your Google Analytics tracking ID.

Multi Subdomain Website using Node?

I would love to get advice on my current project structure idea. I have been searching regarding node.js multi domain packages but i am not sure if they will suit. I also would like to have a easy to manage apps eg. if i want to modify specific app, i have a feeling a single app will get really full and confusing to manage code wise? Basically i am building a website that will have:
Landing Page - www.maindomain.com
User Dashboard - members.maindomain.com
Admin Dashboard - admin.maindomain.com
Now each subdomain app can communicate to each other if they have the credidentials etc.
Would it be correct to create separate 3 Apps to handle each of the sites?
Is there any security concerns having this kind of 3 app setup?
Can account creation occur upon paypal payment?
Ideal flow would be User visits website on landing page and selects a paid package which in turn would direct to paypal. Upon payment user would be returned to website with account creation form, and said Package(order) would become an option on user dashboard.
Admin can pretty much view everything via admin dashboard pretty standard, setup promos etc.
Thanks for your help and advice.

How to add Instagram feed using HTML or Javascript

So I'm trying to add an actual Instagram feed to my wordpress site. I dont want to use a 3rd party site which doesnt drive traffic to the actual IG site. I've been on the IG developers site and to be honest kind of confusing. Any help would be greatly appreciated.
I would recommend using a plugin to do the hard work, since there are many out there, and integrating the instagram yourself could be a challenge. A quick google search gave me this one:
https://wordpress.org/plugins/instagram-feed/
If you don't want to use a plugin, you need to understand how the api works.
The instagram API requires OAuth authentication for most calls.
First, You will need to register an application on the https://instagram.com/developer/ site in order to obtain a client Id.
Once you have a client Id, you need to establish a flow for users who visit your site. There is no way around this for API calls requiring authentication.
First, the user needs to login and allow access from your account using the instagram api request url:
https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=code
CLIENT-ID is the id you obtained earlier, and REDIRECT-URL should be your wordpress site.
Calling this url will allow you to obtain an access token for the user on your site, and you can then make authenticated calls to the API using that token.
One way around this is to make simple calls that don't require authentication, using tags that are specific to your photos. That is described in this SO question:
Instagram API and importing photos without server side authentication
Cheers,
I agree with Felipe. If you or your client need an Instagram plugin, the easiest way would be to buy it at some marketplace. What’s more important, it is much cheaper than wasting your own time on developing one. Of course, that applies to commercial development, not something that you do for fun.
Here’s a list of plugins that I’ve installed to my clients and was happy about:
https:// wordpress.org/plugins/instashow-lite/ - lite version of the
premium plugin. The functionality is really limited, but it would be
enough to give you a simple display.
https://codecanyon.net/item/instagram-widget-wordpress-plugin-for-instagram/11170758 - a simple commercial widget to display your Instagram
account on a webpage.
https://elfsight.com/help/how-to-embed-instagram-feed-widget-on-html-website/ -
an interesting cloud solution for websites on any CMS. It’s got a demo and a
free plan.

Google Analytics Handling multiple domains

Hello There I have 3 different sites hosted on same server having different domains. Let's say they are
www.abc.com
www.xyz.com
www.mno.com
I have successfully integrated google tracking code (using ga.js) and get data through reporting api for www.abc.com. Now I also want tracking of data and getting data for others too. What I need to do that? Can I create seperate profiles in same google account for all three sites? Or I need to create separate google analytics account for each site or I can do it with same profile and same account?
I have searched but couldn't be able to find out any solutions. Please guide.
GA is structured in an Account --> Property --> Profile way.
So for your example I would suggest the best method would be to run all the sites in the same account, but create a new Property for each site.
When you do this GA will give you a new UA-xxxxxx-x number for each site.
Check this out for more help https://support.google.com/analytics/answer/1042508?hl=en-GB&ref_topic=1009620
Cheers
John

Resources