Hello I am using GetKeywords example 
<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201609/BasicOperations/GetKeywords.php>
 
from the library (v201609).I can get the keywords but I cannot get the 
quality

          printf(
              "Keyword with text '%s', match type '%s', criteria type '%s', 
"
                  . "and ID %d was found.\n",
              $adGroupCriterion->getCriterion()->getText(),
              $adGroupCriterion->getCriterion()->getMatchType(),
              $adGroupCriterion->getCriterion()->getType(),
              $adGroupCriterion->getCriterion()->getId(),
              $adGroupCriterion->getQualityInfo()
          );

getQualityInfo is returning an Array

*protected* 'qualityScore'


but could not figure out how to get the data.

If I use 
          printf(
              "Keyword with text '%s', match type '%s', criteria type '%s', 
"
                  . "and ID %d was found.\n",
              $adGroupCriterion->getCriterion()->getText(),
              $adGroupCriterion->getCriterion()->getMatchType(),
              $adGroupCriterion->getCriterion()->getType(),
              $adGroupCriterion->getCriterion()->getId(),
              $adGroupCriterion->getQualityInfo()->getQualityScore()
          );

Then I am getting the following error;

Fatal error: Call to a member function getQualityScore() on null

Can you point me the right direction please?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/958ed558-ab12-4db4-a9f8-edc69925b2e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Cannot reach Qua... Minas Gratas
    • Re: Cannot ... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
      • Re: Can... Minas Gratas
        • Re:... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum

Reply via email to