I had the same issue with the reports. In my case I had to require 
ReportUtils.php and to make a small change on ReportUtils.php to get the 
instance of AdsUtilityRegistry like below:

Added a new method on the class

public function getAdsUtilityRegistry(){
      if (!$this->adsUtilityRegistry instanceof AdsUtilityRegistry){
      $this->adsUtilityRegistry = AdsUtilityRegistry::getInstance();
      }
      return $this->adsUtilityRegistry;
  }

Change elsewhere references like


$this->adsUtilityRegistry->addUtility(....

to

self::getAdsUtilityRegistry()->addUtility(...

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/0623848e-8b3b-4bfc-b28f-cd5828d88f52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Re: ... Sabri Karagönen
    • ... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
      • ... Sabri Karagönen
        • ... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
          • ... Justin Pacholka
          • ... Justin Pacholka
          • ... Sonya Moffat
          • ... 'Thanet Knack Praneenararat (AdWords API Team)' via AdWords API Forum
          • ... Sonya Moffat
          • ... 'Thanet Knack Praneenararat (AdWords API Team)' via AdWords API Forum
          • ... Oshua Moreno
          • ... 'Thanet Knack Praneenararat (AdWords API Team)' via AdWords API Forum
          • ... Miguel Angel Calleja
          • ... 'Thanet Knack Praneenararat (AdWords API Team)' via AdWords API Forum
          • ... Miguel Angel Calleja
          • ... 'Thanet Knack Praneenararat (AdWords API Team)' via AdWords API Forum

Reply via email to