Documentation on AdWordsSessionBuilder

148 views
Skip to first unread message

Minas Gratas

unread,
Jan 12, 2017, 4:07:36 AM1/12/17
to AdWords API Forum

I am still trying to do the authentication with Adwords. Hopefully there was an update very recently so AdWordsUser aslo gone now.
I am trying to get rid of the ini file..
This is from the website.
    $session = (new AdWordsSessionBuilder())
       
->fromFile()
       
->withOAuth2Credential($oAuth2Credential)
       
->build();

I want to use it like this;
I am still trying to do the authentication with Adwords. Hopefully there was an update very recently so AdWordsUser aslo gone now.
I am trying to get rid of the ini file..
   $session = (new AdWordsSessionBuilder())
       ->from($config)
       ->withOAuth2Credential($oAuth2Credential)
       ->build();

But I could not find how to set it like from($config). Would you please give me an example? If you will send the link of the github example just do not bother:D

Joyce Lava

unread,
Jan 12, 2017, 9:39:59 PM1/12/17
to AdWords API Forum
Hello Minas,

Could you please confirm if you're looking for the proper location where the configuration file should be? If so, please refer to this guide which discusses difference in the location of the config file from old and new library.

Regards,
Joyce, AdWords API Team
Reply all
Reply to author
Forward
0 new messages