?

вторник, 20 марта 2018 г., 13:51:11 UTC+3 пользователь Vincent Racaza 
(AdWords API Team) написал:
>
> Hi,
>
> As you can see in this section 
> <https://github.com/googleads/googleads-php-lib/blob/master/README.md#user-content-basic-usage>,
>  
> if you don't want to use the property file, then you need to set the OAuth2 
> fields in the OAuth2TokenBuilder 
> <https://github.com/googleads/googleads-php-lib/blob/master/src/Google/AdsApi/Common/OAuth2TokenBuilder.php>
>  and AdWordsSessionBuilder 
> <https://github.com/googleads/googleads-php-lib/blob/master/src/Google/AdsApi/AdWords/AdWordsSessionBuilder.php>
>  objects. 
> See sample code snippet below:
>
> $oAuth2Credential = (new OAuth2TokenBuilder())
>         //->fromFile()
> ->withClientId('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
> ->withClientSecret('XXXXXXXXXXXXXXX')
> ->withRefreshToken('XXXXXXXXXXXXX')
>         ->build();
>
>  
>
>     // Construct an API session configured from a properties file and the 
> OAuth2
>     // credentials above.
>     $session = (new AdWordsSessionBuilder())
>         //->fromFile()
>         ->withOAuth2Credential($oAuth2Credential)
> ->withClientCustomerId('XXX-XXX-XXXX')
> ->withDeveloperToken('XXXXXXXXXXXXXXXXXX')
>         ->build();
>
>  
>
>     self::runExample(new AdWordsServices(), $session);
>
>
> 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 [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/353e6546-8da8-428e-83a5-8490f730943d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Get a list of co... Евгений Шевцов
    • Re: Get a l... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
      • Re: Get... Евгений Шевцов
        • Re:... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
          • ... Евгений Шевцов
          • ... Евгений Шевцов
            • ... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum

Reply via email to