Hi There,

Not entirely sure why, but whenever I load a script from the php library, 
it returns nothing. I'm thinking it's an issue with authentication. Here 
are the steps I followed:


   1. Uploaded https://github.com/googleads/googleads-php-lib to a folder 
   on my domain (e.g. http://dev.example.com/folder)
   2. Created a Test MCC account and a Production MCC account (token 
   pending)
   3. Followed the instructions 
   here: https://developers.google.com/adwords/api/docs/test-accounts and 
   here https://www.youtube.com/watch?v=Idvia4600_E.
   4. Here is my code in this file 
   (/googleads-php-lib-5.7.1/src/Google/Api/Ads/AdWords/auth.ini) : 
   

; Detailed descriptions of these properties can be found at:
; https://developers.google.com/adwords/api/docs/headers

developerToken = "DEV TOKEN FROM PRODUCTION MCC ACCOUNT"
userAgent = "DUMMY TEXT"

; Uncomment clientCustomerId to make requests against a single AdWords 
account,
; such as when you run the examples.
; If you don't set it here, you can set the client customer ID dynamically:
; $user = new AdWordsUser();
;  $user->SetClientCustomerId(...);

 clientCustomerId = "FROM MY TEST MCC ACCOUNT (FORMAT: XXX-XXX-XXXX)"

[OAUTH2]

; If you do not have a client ID or secret, please create one of type
; "installed application" in the Google API console:
; https://cloud.google.com/console
client_id = "CLIENT ID FROM TEST MCC ACCOUNT, ENDING 
IN:.apps.googleusercontent.com (https://console.developers.google.com/ -> 
PROJECT ->APIS & AUTH -> CREDENTIALS -> NEW CLIENT ID -> WEB APP (REDIRECT 
URI -> HTTP://DEV.EXAMPLE.COM/oauth2callback))"
client_secret = "CLIENT SECRET FROM TEST MCC ACCOUNT"

; If you already have a refresh token, enter it below. Otherwise run
; GetRefreshToken.php.
refresh_token = "FOLLOWED INSTRUCTIONS HERE: 
https://developers.google.com/accounts/docs/OAuth2WebServer. USED THE 
CALLBACK AFTER 'CODE='"

I'm trying to get keyword search volume for a set of keywords and used 
these php 
scripts: 
/googleads-php-lib-5.7.1/examples/AdWords/v201409/Optimization/GetKeywordIdeas.php
 
(tried all of the php scripts in the optimization folder) but there isn't 
anything in the output. Did I mess something up in the authentication?

Any help would be much appreciated.

Thanks!

- Ethan

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/df820f50-5748-4274-81a7-6d582fce7d2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to