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 7805601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:16:41+00:00 2026-06-02T02:16:41+00:00

I would like to access my Google Affiliate Network product feed via the Google

  • 0

I would like to access my Google Affiliate Network product feed via the Google search API for shopping. I would like to do this from a backend Python library i’m developing. Has anyone done something like this?

I have the following:

  • A Google account
  • Enabled Search API for Shopping in the Google API Console and got
    an API key (for server apps) and a client ID + client secret (for installed applications).
  • A GAN account and got the pid.
  • Several advertiser who approved me so i have products available in my product feed.

OAuth2 Python Code:

from apiclient.discovery import build
from oauth2client.client import OAuth2WebServerFlow
from oauth2client.tools import run
from oauth2client.django_orm import Storage
from models import CredentialsModel 

storage = Storage(CredentialsModel, 'name', 'GAN Reporting', 'credentials')
credentials = storage.get()

if credentials is None or credentials.invalid == True:
    flow = OAuth2WebServerFlow(
        client_id=MyClientID,
        client_secret=MyClientSecret,
        scope='https://www.googleapis.com/auth/shoppingapi',
        user_agent='cleverblocks/1.0',
        access_type='offline')
    credentials = run(flow, storage)

http = httplib2.Http()
credentials.authorize(http)
client = build('shopping', 'v1', http=http,
    developerKey=MyAPIKey)
resource = client.products()
request = resource.list(source='gan:MyGANPid', country='US')
return request.execute()

Running this i get back the following error (HttpError 412):

no advertisers are registered for the given publisher

The user I am using to authenticate is listed on the GAN->settings->users section.

I’ve been hacking at this from all directions to the point where I’m now starting to think this API is broken. Has anyone managed to access GAN product feed via the Search API for Shopping?

Any help is appreciated.

  • 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-02T02:16:43+00:00Added an answer on June 2, 2026 at 2:16 am

    Finally got the above oAuth code to work.

    The missing step was in the GAN console, under Subscriptions->Product Feed, to set an FTP subscription for all your advertisers. I used dummy FTP credentials.

    Without this step you will get the above error.

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

Sidebar

Related Questions

I would like to write a script that would access the google api pass
I have a Model called Version that looks like this: from google.appengine.ext import db
I have an application on Google App Engine which I would like to access
We have a List of items: List<X> from this List, we would like to
In my android application, I would like to retrieve the birthday field from google.com/contacts,
My company would like to have access to all of their google adwords data
I would like to access skyDrive using PHP. I want to retreive list of
I would like to access a MySQL database using PHP. Can someone please explain
I would like to access class variables with for loop, here is my simple
I've got a website hosted on my IIS and I would like to access

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.