Okay, I have to admit that this was a schoolboy error on my behalf. The 
line ;[OAuth2] needs to be uncommented to signal the use of OAuth2 
authentication. If I'd have used the file from code.google properly I'd 
have known this, rather than copying what I thought I needed. Muppet. 
https://code.google.com/p/google-api-adwords-php/source/browse/src/Google/Api/Ads/AdWords/auth.ini

Thanks for everyone's help and apologies for any time wasting.

On Tuesday, September 3, 2013 6:36:05 PM UTC, Alan Coleman wrote:
>
> Hello everyone,
>
> I have completed my OAuth2 set up but am still receiving errors asking for 
> the email and password pair.
>
> This was my process, as per the documentation:
>
>
>    1. Set up an application in the API Console
>    2. client_id and client_secret added to auth.ini
>    3. client_id and client_secret added to GetRefreshToken.php
>    4. Run GetRefreshToken.php through command line
>    5. Open the supplied URL in a browser after signing in to account
>    6. Accept when prompted
>    7. Copy Authorization code back into command line
>    8. Wait for refresh_token
>    9. Copy refresh_token into auth.ini
>    10. Run 
>    
> /adwords_api_php_4.5.1/examples/AdWords/v201302/BasicOperations/GetCampaigns.php
>    
>
> The following error is being returned to the browser:
>
> An error has occured: Validation failed for [email] with value []: email 
> is required and cannot be NULL.
>
> My auth.ini contains the following variables that are not coded out:
>
>
>    1. developerToken 
>    2. userAgent
>    3. client_id
>    4. client_secret
>    5. refresh_token
>    
> I simply can't believe I'm finding this so difficult, I've been hacking 
> away at it for weeks.
>
> As always, any help would be appreciated.
>
> Many thanks
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to