add multiple scope

54 views
Skip to first unread message

VJ

unread,
Jan 9, 2015, 1:55:04 PM1/9/15
to adwor...@googlegroups.com
Hello,

I am trying to set multiple scope to get user email as well users permission to access their adwords, but i cant find any feasible way to add scope, please advice me how can I set multiple scope to following code in adwords api???

        $offline = TRUE;
        $extra_para = array();
        $extra_para['approval_prompt'] = 'force';
       
        $OAuth2Handler = $user->GetOAuth2Handler();
        $authorizationUrl = $OAuth2Handler->GetAuthorizationUrl($user->GetOAuth2Info(), $redirectUri, $offline, $extra_para);


Josh Radcliff (AdWords API Team)

unread,
Jan 12, 2015, 10:50:12 AM1/12/15
to adwor...@googlegroups.com
Hi,

I'm not a PHP expert, but it seems to me that you would need to pass a space-delimited list of scope strings for the scope parameter (see the OAuth2 scope documentation).

Thanks,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages