Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9081337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:17:29+00:00 2026-06-16T20:17:29+00:00

Given I’m developing two different applications that utilize the same AdWords API access credentials.

  • 0

Given

I’m developing two different applications that utilize the same AdWords API access credentials. Bot application are only intended to gather/analyse data from the API.

Applications #1 and #2 take roughly 1 hour to complete the process of getting/analysing the data from API.

I’m using:

  1. my own AdWords account,
  2. ClientLogin authentication method,
  3. ruby language.

The problem

Sometimes both timesframes (for app #1 and #2) can overlap, and I start to get tons of these error:

AdwordsApi::Errors::ReportXmlError: HTTP code: 400, error type: 'AuthorizationError.USER_PERMISSION_DENIED'

The next sequence of events leads to a problem:

  1. App #1 asks for auth token from Google and caches it once one received,
  2. App #1 starts data ingestion process using the token,
  3. App #2 asks for auth token from Google and caches it once one received,
  4. App #2 starts data ingestion process using the token,
  5. App #1 asks for another portion of data from AdWords API, but because of item 3, the auth token for App 1 got invalidated, and app starts choking because of the above error.

So the question is: is there a way to do such a setup to enable both applications accessing the AdWords API at the very same time without token interference/invalidation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T20:17:30+00:00Added an answer on June 16, 2026 at 8:17 pm

    We have many apps which follow the same pattern as you have described but we don’t experience token invalidations.

    AdwordsApi::Api.new(credentials).authorize
    

    We cache the token that’s returned there and then re-use it for subsequent requests, but the credentials we use are shared by many apps, the token is only used by one app. We cache it for 12 hours then expire it, causing a new one to be issued.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given that the web application doesn't have su privileges, I'd like to execute a
Given that a ThreadLocal variable holds different values for different threads, is it possible
Given that an input String may be specified as follows: read(xpath(‘...’)) or xpath(‘...’) or
Given the two Entities ProcessTemplateOperation and ProcessTemplateMetaInformation with a relation 1 to 0..1 When
Given that $struct is a data structure that can be either a hash or
Given I have one row in Cassandra with multiple columns that have an Integer
-Given a series of x number (unknown) steps, -all of which implement the same
Given my two db tables aliases and subscriber have entries like this: aliases.username =
Given this somewhat simplified representation of my application's models, my question is how do
Given a set of values, it's possible for there to be many different possible

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.