Asign Customer ID Dynamically v201705

26 views
Skip to first unread message

robert...@convierta.cl

unread,
Jul 31, 2017, 6:48:21 PM7/31/17
to AdWords API Forum
Hello.

I have installed the v201705 AdWords API version (PHP).

The API have the adsapi_php.ini configuration file with a clientCustomerId field.

Is there a way to change dynamically the clientCustomerId with the API?.

Thanks for your help!

Roberto Smith

Peter Oliquino

unread,
Aug 1, 2017, 2:08:04 AM8/1/17
to AdWords API Forum
Hi Roberto,

You may refer to this below code on how to dynamically set the clientCustomerId in PHP :

$session = (new AdWordsSessionBuilder())
    ->fromFile()
    ->withOAuth2Credential($oAuth2Credential)
    ->withClientCustomerId(clientCustomerId)
    ->build();

Let me know if this works.

Thanks and regards,
Peter
AdWords API Team

robert...@convierta.cl

unread,
Aug 1, 2017, 1:01:54 PM8/1/17
to AdWords API Forum
Hello.

Thanks for your answer.

Thanks again.
Roberto Smith
Reply all
Reply to author
Forward
0 new messages