How to allow MCC accounts to access their adwords account data via our Adwords API [PHP]

2013-11-12 Thread Christian Gibbs
We have an adwords API key and I want our system to allow other clients to access their MCC account data using our platform. I would do this in any method possible, OAuth, adwords client library, google apps. I know this is possible because I have seen other software that does this. If anyone

How to authenticate anyone ADWORDS API OAuth2 PHP

2013-11-14 Thread Christian Gibbs
I keep getting, AuthorizationError.USER_PERMISSION_DENIED What is the point of them logging in, if you need to get their permission again. I want anyone to be able to access their adwords account, via our platform. Like so many other apps and websites do. I have refresh tokens and I can access

Re: How to authenticate anyone ADWORDS API OAuth2 PHP

2013-11-14 Thread Christian Gibbs
s->Google_model->saveAuth($user, $tokenFilename); echo ""; //print_r($user); // Get a list of campaigns //$camps = $this->Google_model->GetCampaignsExample($user); $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); FAILS HERE Authorizatio

Re: How to authenticate anyone ADWORDS API OAuth2 PHP

2013-11-15 Thread Christian Gibbs
tml/d...') #6 {main} thrown in /var/www/html/dev/application/libraries/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 201 On Thursday, November 14, 2013 11:38:30 AM UTC-5, Christian Gibbs wrote: > > I keep getting, AuthorizationError.USER_PERMISSION_DENIED > >

Re: How to authenticate anyone ADWORDS API OAuth2 PHP

2013-11-27 Thread Christian Gibbs
this error. The OAuth2 flow only authorizes your > access to an account, that account needs to be linked to all other accounts > it wishes to access. > > Regards, > > - Paul, AdWords API Team. > > On Friday, 15 November 2013 15:53:28 UTC, Christian Gibbs wrote: >>

Re: How to authenticate anyone ADWORDS API OAuth2 PHP

2013-12-09 Thread Christian Gibbs
ror code > you're > receiving<https://developers.google.com/adwords/api/docs/common-errors#AuthorizationError.USER_PERMISSION_DENIED>is > mostly connected to this error. The OAuth2 flow only authorizes your > access to an account, that account needs to be linked to all other a

Re: How to authenticate anyone ADWORDS API OAuth2 PHP

2013-12-09 Thread Christian Gibbs
g<https://developers.google.com/adwords/api/docs/common-errors#AuthorizationError.USER_PERMISSION_DENIED>is > mostly connected to this error. The OAuth2 flow only authorizes your > access to an account, that account needs to be linked to all other accounts > it wishes to access. >

Re: How to authenticate anyone ADWORDS API OAuth2 PHP

2013-12-09 Thread Christian Gibbs
old feature, which is being > deprecated; it allowed you to capture an email/password to authorize with. > See here: https://developers.google.com/accounts/docs/AuthForInstalledApps > > > On Monday, December 9, 2013 6:54:38 AM UTC-8, Christian Gibbs wrote: >> >> Can some

Re: How to authenticate anyone ADWORDS API OAuth2 PHP

2013-12-09 Thread Christian Gibbs
This is the new favorite thing its doing now. Uncaught exception 'OAuth2Exception' with message '{ "error" : "invalid_request" }' On Monday, December 9, 2013 6:21:48 PM UTC-5, Christian Gibbs wrote: > > Im using OAUTH2 and Ive done many

Re: How to authenticate anyone ADWORDS API OAuth2 PHP

2013-12-09 Thread Christian Gibbs
Now I am back to here, [message:protected] => [AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:''] On Monday, December 9, 2013 6:32:19 PM UTC-5, Christian Gibbs wrote: > > This is the new favorite thing its doing now. > > > Uncaught exception 'OAuth2

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2013-12-10 Thread Christian Gibbs
I am trying to access accounts that are not linked to our MCC by the consent of the user. It first starts here, $user = new AdWordsUser(); $user->SetOAuth2Info(array( "response_type" => 'code', "client_id" => $clientId, "client_secret" => $clientSecret, "access_token" => $access

Re: How to authenticate anyone ADWORDS API OAuth2 PHP

2013-12-10 Thread Christian Gibbs
> unlinked account > <https://developers.google.com/adwords/api/docs/reference/v201309/AdGroupService.AuthorizationError#reason>. > > > Regards, > > - Paul, AdWords API Team. > > > On Thursday, 14 November 2013 08:38:30 UTC-8, Christian Gibbs wrote: >> >

Re: How to authenticate anyone ADWORDS API OAuth2 PHP

2013-12-10 Thread Christian Gibbs
. One of your colleague is saying it is possible. On Tuesday, December 10, 2013 11:30:26 AM UTC-5, Christian Gibbs wrote: > > I updated everything over like you said with the OAuthHandler class. > > One of your staff said this. > > > Takeshi Hagikura (AdWords API Team)[i

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2013-12-10 Thread Christian Gibbs
result->access_token; $user = new AdWordsUser(); $user->SetOAuth2Info(array( "client_id" => $clientId, "client_secret" => $clientSecret, "access_token" => $access_token, "refresh_token" => "" )); I save the Auth Info a

Re: How to authenticate anyone ADWORDS API OAuth2 PHP

2013-12-10 Thread Christian Gibbs
result->access_token; $user = new AdWordsUser(); $user->SetOAuth2Info(array( "client_id" => $clientId, "client_secret" => $clientSecret, "access_token" => $access_token, "refresh_token" => "" )); I save the Auth Info

Re: How to authenticate anyone ADWORDS API OAuth2 PHP

2013-12-10 Thread Christian Gibbs
UTC-5, Christian Gibbs wrote: > > I GOT IT! > > > > After getting the ?code= from the URL > > > $url = "https://accounts.google.com/o/oauth2/token";; > $params = array( > "code" => $authCode, > "client_id" => $c

Re: How to authenticate anyone ADWORDS API OAuth2 PHP

2013-12-11 Thread Christian Gibbs
ich > sub account you're accessing. > > For more information on this please read the > README<https://code.google.com/p/google-api-adwords-php/source/browse/README#56> > . > > Regards, > > - Paul, AdWords API Team. > > On Tuesday, 10 December 2013

Re: How to authenticate anyone ADWORDS API OAuth2 PHP

2013-12-11 Thread Christian Gibbs
; > Regards, > > - Paul, AdWords API Team. > > On Tuesday, 10 December 2013 12:58:26 UTC-8, Christian Gibbs wrote: >> >> By the way, your video helped. Because I didnt know there was a new >> Auth.ini file. >> >> Now Im getting this error. >> >&