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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:26:01+00:00 2026-05-26T03:26:01+00:00

i set up an Google ad-words api and seems to work fine. I can

  • 0

i set up an Google ad-words api and seems to work fine.

I can get GetAllCampaigns, GetAllAdGroupCriteria and GetAllAdGroups.

but i want to get all keywords from a specific group/campaign, and the related data like: clicks, spent money.

i found this code online but im not sure how to use it:

$report = getKeywordXmlReport( 
    'Report Name',          // String name 
    '2009-04-01',                           // String startDay 
    '2009-04-30',                   // String endDay 
    array('Campaign', 'AdGroup', 'Keyword', 'Impressions', 'Clicks', 
    'CTR', 'CPC', 'AveragePosition'),  // [String] selectedColumns 
    array('Monthly'),       // [String] aggregationTypes 
    array('54105960'),                        // [Integer] campaigns 
    array(),                        // [String] campaignStatuses 
    array(),                        // [Integer] adGroups 
    array(),                        // [String] adGroupStatuses 
    array(),                        // [String] keywords 
    array(),                        // [String] keywordStatuses 
    'SearchOnly',           // String adWordsType 
    'Broad',                        // String keywordType 
    false,                          // Boolean isCrossClient 
    array(),                        // [String] clientEmails 
    false,                          // Boolean includeZeroImpression 
    30,                                     // Integer sleepTime 
    false,                          // Boolean validateFirst 
    false                           // Boolean onlyReturnDownloadUrl 

);

i need to know what class to load and what function to use.

Any ideas?

Thanks

  • 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-05-26T03:26:02+00:00Added an answer on May 26, 2026 at 3:26 am

    Have you tried Google’s PHP Adwords client library? It’s at http://code.google.com/p/google-api-adwords-php/ and is full of examples.

    If you’re looking for keyword (“adgroup criteria,” in their lingo) performance numbers then you need to create a report with the fields you want, add it, then download it after its complete. It’s somewhat involved.

    I suggest you check out http://www.google.com/codesearch#Fu0vUbQ37f4/trunk/src/Google/Api/Ads/AdWords/Util/TestUtils.php for their example code for running reports.

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

Sidebar

Related Questions

Possible Duplicate: Can Google Maps/Places 'autocomplete' API be used via AJAX? There seems to
any property can set the pin in google map bigger? from what i know,
Using Google Apps for your Domain, is it possible to set up a catch-all
When I load http://maps.google.com/maps/api/js?sensor=false in a script tag, everything works fine for me in
I believe the Google API allows you to get coordinates for a given address.
I have a google map set with the Javascript API V3. It's displayed in
My Python application currently uses the python-memcached API to set and get objects in
I am trying to load Skyscanner API dynamically but it doesn't seem to work.
I am using gwt with google maps api and i have a set of
With RSS feeds how do you set up google analytics (or any other statistical

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.