Hi Vincent,

I tried to o the same but getting same error.
What i did is given below. Please have a look and guide me what am i doing 
wrong??



  public function fromFile($path = null) {
    /*if ($path === null) {
      
      $path = self::DEFAULT_CONFIGURATION_FILENAME;
      
    }*/
    
    $path = 
'/home/techximu/public_html/adwords/examples/AdWords/adsapi_php.ini';
    
    return $this->from($this->configurationLoader->fromFile($path));
  }


Also i am attaching the file please advise .


On Tuesday, September 5, 2017 at 12:08:19 PM UTC+5:30, Vincent Racaza 
(AdWords API Team) wrote:
>
> Hi Pradeep,
>
> The error means that it could not locate the adsapi_php.ini in your *home 
> directory*. Please make sure that the configuration file is in the home 
> directory. Or, if it is not in your home directory, then kindly set the 
> correct location in fromFile() method as described here 
> <https://github.com/googleads/googleads-php-lib#basic-usage>:
>
> $oAuth2Credential = (new OAuth2TokenBuilder())
>         *->fromFile('location/to/your/adsapi_php.ini')*
>         ->build();
>
> // Construct an API session configured from a properties file and the 
> OAuth2
> // credentials above.
> $session = (new AdWordsSessionBuilder())
>         *->fromFile('location/to/your/adsapi_php.ini')*
>         ->withOAuth2Credential($oAuth2Credential)
>         ->build();
>
> Let me know if this helps.
>
> Thanks,
> Vincent
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cd35c9d2-4327-46d5-be9b-764d9098bd5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

<<attachment: OAuth2TokenBuilder.php>>

  • Trying Google Ad... Pradeep Kumar
    • Re: Trying ... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
      • Re: Try... Pradeep Kumar
        • Re:... Pradeep Kumar
          • ... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
            • ... Pradeep Kumar
              • ... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
                • ... Pradeep Kumar
                • ... Pradeep Kumar
                • ... Pradeep Kumar
                • ... Pradeep Kumar
                • ... kanhaiya . techximum
                • ... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum

Reply via email to