Hi Mates

Code PHP

I am using Adwords API version(V201605), I am able to to retrieve keyword 
name and id. But how to retrieve keyword metrics.
I request some to help me to retrieve  keyword metrics using PHP. 

Please help me on this as it is bit urgent as I will be grateful to you.

I am using below code sinppet




                        $adGroupCriterionService =
$user->GetService('AdGroupCriterionService','v201605');

// Create selector.
$selector = new \Selector();
// $selector->fields = array('KeywordText', 'KeywordMatchType', 'Id', 
'Impressions', 'Clicks', 'Cost', 'AveragePosition');
$selector->fields = array('KeywordText', 'KeywordMatchType', 'Id');
$selector->ordering[] = new \OrderBy('KeywordText', 'ASCENDING');

// Create predicates.
$selector->predicates[] = new \Predicate('AdGroupId', 'IN', 
array($adGroupId));
$selector->predicates[] =
new \Predicate('CriteriaType', 'IN', array('KEYWORD'));

// Create paging controls.
  // $selector->paging = new \Paging(0, 
\AdWordsConstants::RECOMMENDED_PAGE_SIZE);

$ret = array();
 
// Make the get request.
$page = $adGroupCriterionService->get($selector);


Thanks
Tesetext

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/97d0553c-72f8-4c12-800a-dcd7097189c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Help me to retri... teletextholidays2016
    • Re: Help me... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum

Reply via email to