Free script that emails your adsense earnings (can be used to send SMS via email2sms)

Discussion in 'Products & Tools' started by flamey, Oct 31, 2009.

  1. #1
    Wrote a small Perl script, which logs in to AdSense account, reads "today" earnings, and emails it to specified address. The amount is in subject and in body.

    This can be used to send SMS reports to (your) cellphone via email2sms services which all US mobile carriers offer for free.

    I wrote it because I wanted such notifications, but then found out that because incoming text messages are free here (im not in US), mobile carriers don't provide this service. I can't use it for what I wanted, but I figured it should collect "dust" on my hard drive..

    The script with install notes is attached. It's Perl script intended to be run from Cron.

    If you can find a use for it - enjoy!
     

    Attached Files:

    flamey, Oct 31, 2009 IP
  2. simply-seo

    simply-seo Peon

    Messages:
    414
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Thanks for the script, why dont you upload it to softpedia so that it will increase the scripts reliability.
     
    simply-seo, Oct 31, 2009 IP
  3. flamey

    flamey Member

    Messages:
    20
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #3
    In short, because I don't want to support it (because, as described above, I can't use it myself for what I wanted).

    In long:

    (a) there's no reliable, in terms of lifetime, way to login to AdSense - the API provided only available to accounts with over 100,000 daily pageviews. i have 3000 on my good days :) so the script relies on current login URL, which will change in the future

    (b) the script also relies on current web page elements to find earnings, and also on the fact that the site is not much AJAXified. when this changes, the script will have to change.

    Those are the reasons I stopped at simply getting today's earnings and emailing it. Otherwise some useful analytic scripts could be built for adsense.

    Bad thing - all this eventually will change and script will have to be updated.
    Good thing is all this stayed consistent for a long time.
     
    flamey, Nov 1, 2009 IP
  4. simply-seo

    simply-seo Peon

    Messages:
    414
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That is good, reliability i mean by that your code dont have any malware (users will suspect always )
    But your job is fantastic and thanks for giving it generously. :)
     
    simply-seo, Nov 3, 2009 IP
  5. fattlumm62

    fattlumm62 Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thanks.,


    The message you have entered is too short. Please lengthen your message to at least 10 characters.
     
    fattlumm62, Nov 3, 2009 IP
  6. simply-seo

    simply-seo Peon

    Messages:
    414
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    @Fattlumm what are you trying to say?
    mistakenly copied DP's warning message ?
     
    simply-seo, Nov 6, 2009 IP
  7. Rumait

    Rumait Active Member

    Messages:
    183
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #7
    Thanks for script, i have downloaded, will try later
     
    Rumait, Nov 15, 2009 IP