Hi Kartikeya, For $session, you could use code as below:
AdWordsSession $session, $session = (new AdWordsSessionBuilder())->fromFile()->withOAuth2Credential($oAuth2Credential)->build(); You could refer to CreateAccount.php sample code here <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201802/AccountManagement/CreateAccount.php>. In this example you could remove the code from line number 49 to 73 and add the code snippet shared previously to send the invitation. To authenticate your MCC account, you need to create OAuth credentials for the login email id of your MCC account. Please refer this guide <https://developers.google.com/adwords/api/docs/guides/first-api-call#set_up_oauth2_authentication> to create OAuth credentials. Let me know if you are facing an issue. Thanks, Milind, 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/ddd62ecd-3966-44c1-92c1-be0a331952ef%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.