Thank you

On Tue, May 6, 2014 at 7:35 PM, <adwords-api@googlegroups.com> wrote:

> Hi,
>
> Yes, it's due to the fact that you are using a test account.  As mentioned
> in the test accounts 
> guide<https://developers.google.com/adwords/api/docs/test-accounts#differences_between_test_accounts_and_production_accounts>
> :
>
>
>>    - The 
>> TargetingIdeaService<https://developers.google.com/adwords/api/docs/reference/latest/TargetingIdeaService>
>>     and 
>> TrafficEstimatorService<https://developers.google.com/adwords/api/docs/reference/latest/TrafficEstimatorService>
>>     *return dummy data to test accounts*.
>>
>> Cheers,
> Josh, AdWords API Team
>
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
>     http://googleadsdeveloper.blogspot.com/search/label/adwords_api
>     https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> On 05/06/14 09:52:43 sugaros...@gmail.com wrote:
>
>
> Hi Josh,
>
> I created Refresh token and client customer id from test acount only. My
> developer token is still pending for review.
>
> I used like this $selector->requestType = "STATS"
>
> and i was trying to fetch avg monthly searches but its giving the below
> result.But in keyword planner tool its showing 1900.You can refer my
> previous post image.
>
> Array ( [0] => Array ( [keyword text] => lease-accounting [searchvolume]
> => Array ( [0] => MonthlySearchVolume Object ( [year] => 2014 [month] => 4
> [count] => 5470032339580407767 ) [1] => MonthlySearchVolume Object ( [year]
> => 2014 [month] => 3 [count] => -564243844579747617 ) [2] =>
> MonthlySearchVolume Object ( [year] => 2014 [month] => 2 [count] =>
> -6370275530849895689 ) [3] => MonthlySearchVolume Object ( [year] => 2014
> [month] => 1 [count] => 1974808081556354969 ) [4] => MonthlySearchVolume
> Object ( [year] => 2013 [month] => 12 [count] => 958637242624284451 ) [5]
> => MonthlySearchVolume Object ( [year] => 2013 [month] => 11 [count] =>
> 849376547664379796 ) [6] => MonthlySearchVolume Object ( [year] => 2013
> [month] => 10 [count] => 1556130635073640503 ) [7] => MonthlySearchVolume
> Object ( [year] => 2013 [month] => 9 [count] => -3664306422764977970 ) [8]
> => MonthlySearchVolume Object ( [year] => 2013 [month] => 8 [count] =>
> -8272530439122489372 ) [9] => MonthlySearchVolume Object ( [year] => 2013
> [month] => 7 [count] => 2603995224135419719 ) [10] => MonthlySearchVolume
> Object ( [year] => 2013 [month] => 6 [count] => 5361983111252305629 ) [11]
> => MonthlySearchVolume Object ( [year] => 2013 [month] => 5 [count] =>
> -7336862422889296561 ) ) ) )
>
>
> Is that because of am using test account.Can you please help me to
> understand?
>
> Thanks,
> Sugappriya
> On Tuesday, May 6, 2014 6:55:08 PM UTC+5:30, Josh Radcliff (AdWords API
> Team) wrote:
>
> Hi Sugappriya,
>
> Are you using your test account in the TargetingIdeaService request?  If
> so, the data returned will be dummy data.  You won't be able to use the
> TargetingIdeaService to get meaningful data until you have an approved
> developer token and issue the requests against a non-test account.
>
> Thanks,
> Josh, AdWords API Team
>
> On Tuesday, May 6, 2014 8:23:55 AM UTC-4, sugar...@gmail.com wrote:
>
>
>
> Hi Josh,
>
> I am able to access the api with my test account.
>
> I am trying to get avg monthly search value for the given keyword.But its
> not giving same result as keyword planner tool.
>
>
> this is my code
>
>
>
> require_once dirname(dirname(__FILE__)) . '/init.php';
> $user = new AdWordsUser();
> // Log every SOAP XML request and response.
> $user->LogAll();
> $adwords_version = ADWORDS_VERSION;
> $keyword = "lease-accounting";
> $values = GetTargetingIdea($user, $adwords_version, $keyword);
> print_r($values);
> function GetTargetingIdea(AdwordsUser $user, $adwords_version, $keyword)
> {
>     // Load the service, so that the required classes are available.
>     $targetingIdeaService = $user->GetTargetingIdeaService($
> adwords_version);
>
>     $languageParameter = new LanguageSearchParameter();
>     $english = new Language();
>     $english->id = 1000;
>     $languageParameter->languages = array($english);
>
>     // Create selector.
>     $selector = new TargetingIdeaSelector();
>     $selector->requestType = "STATS";
>     $selector->ideaType = 'KEYWORD';
>     $selector->requestedAttributeTypes = array('KEYWORD_TEXT','SEARCH_V
> OLUME');
>
>     $locationTargetParameter = new LocationSearchParameter();
>     $location = new location();
>     $location->id = 2840;
>     $locationTargetParameter->locations = $location;
>
>     $relatedToQuerySearchParameter = new RelatedToQuerySearchParameter();
>     $relatedToQuerySearchParameter->queries = array($keyword);
>     $selector->searchParameters[] = $relatedToQuerySearchParameter;
>     //$selector->searchParameters[] = $languageParameter;
>     //$selector->searchParameters[] = $locationTargetParameter;
>
>     // Create paging controls.
>     $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_
> PAGE_SIZE);
>     $ret = array();
>     do {
>         // Make the get request.
>         $page = $targetingIdeaService->get($selector);
>
>         // Display results.
>         if (isset($page->entries))
>         {
>             foreach ($page->entries as $adGroupAd)
>             {
>                 $ret[] = array(
>                     'keyword text' => $adGroupAd->data[0]->value->value,
>                     'searchvolume' => $adGroupAd->data[1]->value->value,
>
>
>                 );
>             }
>         }
>         // Advance the paging index.
>         $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_
> PAGE_SIZE;
>     } while ($page->totalNumEntries > $selector->paging->startIndex);
>     return $ret;
> }
>
>
> and i am getting result as
>
>  Array ( [0] => Array ( [keyword text] => lease-accounting [searchvolume]
> => -619437956526634531 ) )
>
> i got this from keyword planner tool
>
>
>
> <https://lh4.googleusercontent.com/-rAlLr6W_hcA/U2jT_JYbHMI/AAAAAAAAAB8/tV6hiGIrvrc/s1600/Google+AdWords++Keyword+Planner.png>
>
>
>
>
>
>
> Please help me out of this.
>
>
> Thanks,
> Sugappriya
>
>
> Can anyone please let me know the steps to get search volume of keywords
> in php?
>
>
> Thanks,
> Sugappriya
>
>  --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and Google+:
> https://googleadsdeveloper.blogspot.com/
> https://plus.google.com/+GoogleAdsDevelopers/posts
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> You received this message because you are subscribed to the Google
> Groups "AdWords API Forum" group.
> To post to this group, send email to adwords-api@googlegroups.com
> To unsubscribe from this group, send email to
> adwords-api+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/adwords-api?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "AdWords API Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to adwords-api+unsubscr...@googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to