Friday, March 8, 2013

Digest for adsense-api@googlegroups.com - 5 Messages in 2 Topics

Group: http://groups.google.com/group/adsense-api/topics

    ysm_in@yahoo.com Mar 06 03:13PM -0800  

    I am trying to use AdSenseSample.java to call the java API to authenticate
    and download account data through an installed application.

    http://code.google.com/p/google-api-java-client/source/browse/adsense-cmdline-sample/src/main/java/com/google/api/services/samples/adsense/cmdline/AdSenseSample.java?repo=samples

    I have obtained an authentication code and exchanged it for an Auth/Refresh
    token and have setup files client_secrets.json and adsense.json
    It appears that I am getting past the authentication step OK

    AdSense adsense = initializeAdsense();

    But receiving an error when calling

    Accounts accounts = GetAllAccounts.run(adsense, MAX_LIST_PAGE_SIZE);

    =================================================================
    Listing all AdSense accounts
    =================================================================
    403 Forbidden
    {
    "code" : 403,
    "errors" : [ {
    "domain" : "global",
    "message" : "User does not have an AdSense account.",
    "reason" : "noAdSenseAccount"
    } ],
    "message" : "User does not have an AdSense account."
    }

    Can you suggest next steps to figure out whyI can't get account and
    adclient data?

    Thanks,
    -Dan

     

    "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> Mar 07 06:44AM -0800  

    Hey Dan!
     
    Before starting to code, make sure you're using the correct account. Go
    into incognito mode and use the APIs explorer:
     
    https://developers.google.com/adsense/management/v1.2/reference/accounts/adclients/list
     
    Authenticate and try to fetch your ad clients. If you do have an AdSense
    account you should have no problems.
     
    (AdSense account != developer account)
     
    Cheers,
    Jose
     
    ---
    Jose Alcérreca
    Developer Relations
     
    Google UK Limited
    Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W
    9TQ
    Registered in England Number: 3977902
     
     
    Google Inc.| Developer Relations | *AdSense API Team* |
    developers.google.com/**adsense <https://developers.google.com/adsense/>
     
     

     

    ysm_in@yahoo.com Mar 07 10:45AM -0800  


    > Thanks Jose!
     
    The tip: AdSense account != developer account .... led me to a
    breakthrough and progress today. I repeated my authentication steps using
    a different account used as a developer account, granted access in the
    AdSense account to this developer account and now I can download stats from
    the AdSense account.

    Thanks again,
    -Dan

     

    "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> Mar 08 01:59AM -0800  

    Great! I'll use code to explain things more often in the future :)
     
    Cheers,
    Jose
     
     
    ---
    Jose Alcérreca
    Developer Relations
     
    Google UK Limited
    Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W
    9TQ
    Registered in England Number: 3977902
     
     
    Google Inc.| Developer Relations | *AdSense API Team* |
    developers.google.com/**adsense <https://developers.google.com/adsense/>
     

     

    Dominique HUGO <gosymbian@gmail.com> Mar 07 10:06AM -0800  

    Hi Silvano,

    I know this thread is a bit old but I'm trying to use your code and I get
    the error about example.sqlite; as you said, we need to create this
    database but can you give me some guidelines to do it about the
    structure, I don't find it

    sorry to bother you with this & thanks in advance,
    Domi
    http://www.gosymbian.com



     

     

You received this message because you are subscribed to the Google Group adsense-api.
You can post via email.
To unsubscribe from this group, send an empty message.
For more options, visit this group.

--
You received this message because you are subscribed to the Google Groups "AdSense API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adsense-api+unsubscribe@googlegroups.com.
To post to this group, send email to adsense-api@googlegroups.com.
Visit this group at http://groups.google.com/group/adsense-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

1 comment:

  1. But if you're feeling as well timid to take the plunge with a female masturbation vibrator, then feel once again. Whisper quiet operation, yet very powerful & super compact. En attendant, il est également dongle le premier qui prend en charge roms de jeux PS3 et AR PS3 cheat parfaitement.

    Also visit my web page :: pocket pussy

    ReplyDelete