Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
V220909- Category codes
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Shiv Bhaduri  
View profile  
 More options Nov 10, 9:28 am
From: Shiv Bhaduri <shiv.bhad...@gmail.com>
Date: Tue, 10 Nov 2009 06:28:50 -0800 (PST)
Local: Tues, Nov 10 2009 9:28 am
Subject: V220909- Category codes
Hi,

Where can we get the Keyword category codes with category name mapping
for V2009 version ?

Also, why do many keywords with obvious categories do not return and
category codes ? The % is very large and beats the purpose of having
the functionality.

Thanks...Shiv


    Reply    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
AdWords API Advisor Google employee  
View profile  
 More options Nov 10, 4:52 pm
From: AdWords API Advisor <adwordsapiadvi...@google.com>
Date: Tue, 10 Nov 2009 13:52:43 -0800 (PST)
Local: Tues, Nov 10 2009 4:52 pm
Subject: Re: V220909- Category codes
Hi Shiv,

Can you give me an example of how you are using these categories?  I'm
not sure I understand what categories you are referring to.

Best,
- Eric Koleda, AdWords API Team

On Nov 10, 9:28 am, Shiv Bhaduri <shiv.bhad...@gmail.com> wrote:


    Reply    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shiv Bhaduri  
View profile  
 More options Nov 11, 7:06 am
From: Shiv Bhaduri <shiv.bhad...@gmail.com>
Date: Wed, 11 Nov 2009 04:06:08 -0800 (PST)
Local: Wed, Nov 11 2009 7:06 am
Subject: Re: V220909- Category codes
Hi Eric,

Here is code I'm using, its very basic.

####################Code######################
<?php

error_reporting(E_STRICT | E_ALL);
date_default_timezone_set("Europe/Brussels");

$path = dirname(__FILE__) . '/../../src';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);

require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php';

class GetAllKeywordsExample {
        static function main($keywords_input, $match_type) {
                $return_array = array();
                try {
                        // Get AdWordsUser from credentials in "../auth.ini"
                        // relative to the AdWordsUser.php file's directory.
                        $user = new AdWordsUser();

                        // Log SOAP XML request and response.
                        $user->LogDefaults();

                        $keywordService = $user->GetTargetingIdeaService();

                        $keyword = new Keyword();
                        $keyword->text = $keywords_input;
                        $keyword->matchType = $match_type;

                        $languageService= new LanguageTarget();
                        $languageService->languageCode='en';
                        $languageService->TargetType='en';

                        $countryService= new CountryTargetSearchParameter();
                        $countryService->countryTargets='UK';

                        $keyword_array = array($keyword);
                        $relatedToKeywordSearchParameter = new
RelatedToKeywordSearchParameter($keyword_array, $languageService,
$countryService);

                        $targetingIdeaSelector = new TargetingIdeaSelector();
                        $targetingIdeaSelector->searchParameters = array(
                                                $relatedToKeywordSearchParameter
                        );

                        $targetingIdeaSelector->ideaType = 'KEYWORD';
                        $targetingIdeaSelector->requestType = 'IDEAS';

                        $targetingIdeaSelector->requestedAttributeTypes=array
( 'KEYWORD','GLOBAL_MONTHLY_SEARCHES',
'KEYWORD_CATEGORY','COMPETITION' );
                        $targetingIdeaSelector->paging = new Paging(0,400);

                        $keywordPage = $keywordService->get($targetingIdeaSelector);

                        $return_array=array();

                        if(isset($keywordPage->entries)) {
                                foreach ($keywordPage->entries as $keyword_entry) {
                                        foreach($keyword_entry as $keyword_entry_array){
                                                foreach ($keyword_entry_array as $keyword){
                                                        if($keyword->key == 'KEYWORD'){
                                                                $keyword_value = $keyword->value;
                                                                $kwtext=$keyword_value->value->text;
                                                        }
                                                        if($keyword->key == 'GLOBAL_MONTHLY_SEARCHES'){
                                                                $keyword_value = $keyword->value;
                                                                $gms=$keyword_value->value;
                                                        }
                                                        if($keyword->key == 'KEYWORD_CATEGORY'){
                                                                $keyword_value = $keyword->value;
                                                                $kwcat=$b = implode (',', $keyword_value->value);
                                                        }

                                                        $return_array[] = array(        $kwtext, $gms, $kwcat);
                                                }
                                        }
                                }
                        } else {
                                throw new Exception("No keyword found",0);
                        }
                } catch (Exception $e) {

                        $return_array[] = array(
                                'keyword'=>$e->getMessage());

                }
                return $return_array;
        }

}

$result = GetAllKeywordsExample::main("computer", 'BROAD');
var_dump($result);

?>

##################Output###############

I get an array with with three elemnts.

Keyword, Monthly Searches and Keyword Category code.

However, Keyword category is mostly null for many ovbious terms (You
can try with terms like computer, kfc etc.). Also,  where do we get
the category name and code mapping table to map the category id to a
category name.

Hope this helps.

Thanks...........Shiv

On Nov 10, 9:52 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:


    Reply    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shiv Bhaduri  
View profile  
 More options Nov 12, 6:26 pm
From: Shiv Bhaduri <shiv.bhad...@gmail.com>
Date: Thu, 12 Nov 2009 15:26:58 -0800 (PST)
Local: Thurs, Nov 12 2009 6:26 pm
Subject: Re: V220909- Category codes
Hi,

Could anyone please help ? Why dont we have this basic info... its the
code list just like V13 ?

Shiv

On Nov 11, 12:06 pm, Shiv Bhaduri <shiv.bhad...@gmail.com> wrote:


    Reply    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
AdWords API Advisor Google employee  
View profile  
 More options Nov 16, 10:03 am
From: AdWords API Advisor <adwordsapiadvi...@google.com>
Date: Mon, 16 Nov 2009 07:03:36 -0800 (PST)
Local: Mon, Nov 16 2009 10:03 am
Subject: Re: V220909- Category codes
Hi Shiv,

I've been working with some members of the AdWords API Team on
publishing the list of category names.  I don't have an exact timeline
of when they will be made available, but I'll update this thread when
they are.

Best,
- Eric

On Nov 12, 6:26 pm, Shiv Bhaduri <shiv.bhad...@gmail.com> wrote:


    Reply    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google