Forum Replies Created
-
AuthorPosts
-
Stefano
KeymasterBut do you generate $overall_stats, or where do they come from?
An example would be
PPC_general_functions::get_default_stats_time_range( PPC_general_functions::get_settings('general') ); $start_time = $ppc_global_settings['stats_tstart']; $end_time = $ppc_global_settings['stats_tend']; $author_ID = 1; $stats = PPC_generate_stats::produce_stats($start_time, $end_time, array( $author_ID )); $raw_stats = $stats['raw_stats']; $overall_stats = PPC_generate_stats::get_overall_stats( $raw_stats );Stefano
KeymasterI am very sorry, it looks like I didn’t get any notification for subsequent replies! Is there still something I can help with? ๐
Stefano
KeymasterHi Michael,
can you provide some more context? What is the code you are using? ๐A nice day,
StefanoStefano
KeymasterI honestly don’t know what the issue could be, I am very sorry. As far as I can tell it doesn’t look caused by PPC, but I couldn’t be sure. We haven’t had any other reportings, if that can help troubleshoot :S
Stefano
KeymasterThis PHP snippet will extract the total adsense revenue for the given author ID (for the default time range), and store it in the variable
$total_adsense:PPC_general_functions::get_default_stats_time_range( PPC_general_functions::get_settings('general') ); $start_time = $ppc_global_settings['stats_tstart']; $end_time = $ppc_global_settings['stats_tend']; $stats = PPC_generate_stats::produce_stats($start_time, $end_time); $raw_stats = $stats['raw_stats']; $author_ID = 1; $total_adsense = $raw_stats[$author_ID]['total']['ppc_payment']['due_payment']['adsense_revenues'];If you want to see all possible choices/the data structure, add
var_dump($raw_stats[$author_ID]['total']);Hope this helps! ๐
A nice day,
StefanoStefano
KeymasterHi Rogger,
there is no straightforward to get that figure out individually, I am afraid. You can find it in the overall stats at the bottom of the shortcode stats, but not individually :\Stefano
KeymasterHi Juan,
when does the error pop up exactly?
In other circumstances where other people had that problem, it turned out that it was the other plugins who would be including their version of Google API on all admin pages, thus conflicting with PPC in some pages. Could this be the case?A nice day,
StefanoStefano
KeymasterHi Rogger,
have you already had a look at our shortcode tutorial? ๐Display stats details in public pages with Post Pay Counter PRO shortcode
A nice day,
StefanoStefano
KeymasterHi Sandy,
there is nothing native for that. However, I might have something from a previous custom work that could be adapted, if you’d be interested – I guess it would cost something, but not too much ๐Have a nice day,
StefanoMay 8, 2020 at 6:05 am in reply to: Do You Support Other AD Networks or It’s Just ADSENSE Alone #72331Stefano
KeymasterHi Kariss,
I’m sorry, we only support Adsense natively ๐A nice day,
StefanoStefano
KeymasterYes, it works now ๐ use the Update data feature to pull past data if you wish – I just tested with beginning of May ๐
Stefano
KeymasterAre you sure you selected the right view? I don’t see it selected :\
Stefano
KeymasterCan you try to revoke the authorization and grant it again?
Stefano
KeymasterThanks. Can you double check that you selected the right profile? You can rename them to be sure:
Stefano
KeymasterAt this point, if you want to create me a temporary admin account (with ability to edit plugin files) I will do some troubleshooting myself. This might be the quickest way, if you want ๐
Stefano
KeymasterYes, it looks right (except that all revenues are to zero!). Can you check if you manage to pull Analytics visits, instead of revenue, through the plugin?
Stefano
KeymasterHi Sandy,
could you post a screenshot of your analytics dashboard? One in which I can see the visited page URLs.A nice day,
StefanoStefano
KeymasterHi Tunde,
what you can do is tweak the time range so that only posts up to January 24th are considered. This way you will probably exclude all that shouldn’t go in but hopefully retain all that you actually paid ๐Have a nice day,
StefanoStefano
KeymasterAre you there? I will soon leave if not ๐
Stefano
KeymasterIt’s taking me some extra time to set up skype, I’ll be there in a minute!
-
AuthorPosts