I'm trying to integrate our product with Google AdWords so that our clients can view the performance of their campaigns from inside our application. We are currently, like many people, in the lengthy process of getting our developer token approved, so for the time being, I'm trying to use the sandbox to verify my functionality is working.
I have done the sandbox initialization steps I've found on other articles, and the examples run fine for me. When I try to duplicate this code in our application, I'm having less luck. I'm using OAuth (temporarily using anonymous/anonymous) for authorization, and I'm using the .NET client library. My workflow is this: I want the user to authorize access once, using a button on a page in our app. I'll save off the access token for later usage. Then, once authorized, the user should be able to do things (right now, view reports). The problem I'm running into is that AdWordsUser.OAuthProvider.AccessToken is always coming back as null. From tracing the example applications, it seems like some form of API call (to campaigns, reports, etc.) needs to be made to get that property to populate. I was under the impression that GenerateAccessToken was supposed to "just work" and return back the access token at that point. How can I get the access token at the point I need it? If I have to make an API call (which seems odd at best), what's the cheapest one (both monetarily and performance-wise) that I could run, since I probably don't care about the results of said API call but just need the AccessToken property to be non-null? Thanks in advance for your help. :) -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
