Help AuthenticationError.OAUTH_TOKEN_INVALID

3 views
Skip to first unread message

Alexey Chapurin

unread,
Oct 30, 2014, 4:31:34 AM10/30/14
to adwor...@googlegroups.com
Help to deal with a error AuthenticationError.OAUTH_TOKEN_INVALID
I do inquiry by an example https://developers.google.com/adwords/api/docs/guides/reporting

__rdxml="<reportDefinition>
      <id>1111111111</id>
        <selector>
          <fields>CampaignId</fields>
          <fields>Id</fields>
          <fields>Impressions</fields>
          <fields>Clicks</fields>
          <fields>Cost</fields>
          <predicates>
            <field>Status</field>
            <operator>IN</operator>
            <values>ENABLED</values>
            <values>PAUSED</values>
          </predicates>
        </selector>
        <reportName>Custom Adgroup Performance Report</reportName>
        <reportType>ADGROUP_PERFORMANCE_REPORT</reportType>
        <dateRangeType>LAST_7_DAYS</dateRangeType>
        <downloadFormat>CSV</downloadFormat>
      </reportDefinition>"

with headers:

Content-Length =  726

Content-Type =  " application/x-www-form-urlencoded"

Authorization =  "Bearer ya29.rgB3ZcocK-pwC7ksEClk9SU3W428m_Kw3BHwE7JJyN-sAKx84FUfO8gEh5"

developerToken =  "XХХХ-ХХХХХХХХХ_ХХХХХХ"

clientCustomerId = "111-111-1111"


token is correct that is visible from service:

https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=MY_TOKEN

{
 "issued_to": "111111111111-11111aaaaaaaaaaaaaaaaaaaaaaaa095.apps.googleusercontent.com",
 "audience": "111111111111-11111aaaaaaaaaaaaaaaaaaaaaaaa095.apps.googleusercontent.com",
 "user_id": "111111111111111111111",
 "scope": "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile",
 "expires_in": 1192,
 "email": "m...@email.ua",
 "verified_email": true,
 "access_type": "offline"
}

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages