Here is my request from the log, it looks like the access token is NOT being sent by the PHP library, though I am sending the 'access_token' in the $oauth2Info array when instantiating the AdWordsUser:
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/o/v201409" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201409"> <SOAP-ENV:Header> <ns1:RequestHeader> <ns2:clientCustomerId>581-880-2635</ns2:clientCustomerId> <ns2:developerToken>deleted</ns2:developerToken> <ns2:userAgent>CAB (AwApi-PHP/5.2.3, Common-PHP/5.2.3, PHP/5.3.10-1ubuntu3.14)</ns2:userAgent> </ns1:RequestHeader> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns1:get> <ns1:selector> <ns1:searchParameters xsi:type="ns1:RelatedToQuerySearchParameter"> <ns1:queries>weight loss</ns1:queries> </ns1:searchParameters> <ns1:searchParameters xsi:type="ns1:IncludeAdultContentSearchParameter"/> <ns1:ideaType>KEYWORD</ns1:ideaType> <ns1:requestType>IDEAS</ns1:requestType> <ns1:requestedAttributeTypes>KEYWORD_TEXT</ns1:requestedAttributeTypes> <ns1:requestedAttributeTypes>SEARCH_VOLUME</ns1:requestedAttributeTypes> <ns1:requestedAttributeTypes>COMPETITION</ns1:requestedAttributeTypes> <ns1:requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES</ns1:requestedAttributeTypes> <ns1:paging> <ns2:startIndex>0</ns2:startIndex> <ns2:numberResults>50</ns2:numberResults> </ns1:paging> </ns1:selector> </ns1:get> </SOAP-ENV:Body> </SOAP-ENV:Envelope> On Thursday, November 20, 2014 4:03:55 PM UTC-6, Josh Radcliff (AdWords API Team) wrote: > > Hi, > > Looking at your failed requests, the underlying errors suggest that > perhaps you are not passing an access token in your Authorization > <https://developers.google.com/adwords/api/docs/guides/soap#authorization> > header. > Could you check your logs and confirm that the *Authorization* header is > being sent? > > If you find that it is being sent, please append the *access token* (*not* > the refresh token) to the end of the following URL. This will let you know > the token's scope, expiry time, and status. Note that this URL won't work > for expired tokens. > > https://www.googleapis.com/oauth2/v1/tokeninfo?access_token= > *YOUR_ACCESS_TOKEN* > > > Output for a valid AdWords access token will look like this: > > { > "issued_to": "*xxxx...*", > "audience": "*xxxx...*", > "scope": "https://www.googleapis.com/auth/adwords", > "expires_in": 212, > "access_type": "offline" > } > > Thanks, > Josh, AdWords API Team > > > On Thursday, November 20, 2014 4:36:37 PM UTC-5, eric haberman wrote: >> >> Hello, >> >> I'm getting the error: >> >> AuthorizationError. USER_PERMISSION_DENIED >> >> The MCC client ID (581-880-2635), developers token, and Google >> Developers Console refresh token and secret are all from the same account. >> (refresh token authorized in the same browser as the MCC account is logged >> into) >> >> In other words, my MCC client ID is being denied from using it's own API >> credentials. >> >> Anyone run into this before? I've dug around and can't find a solution, >> any help would be appreciated. >> >> Thanks! >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [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]. 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/c42c893a-1672-4386-86db-5cd3758c38e6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
