Hi,

First, I highly recommend to read the guide from our official website 
<https://developers.google.com/adwords/api/> instead of third-party website.
First-request guide 
<https://developers.google.com/adwords/api/docs/first-request>, get started 
guide <https://developers.google.com/adwords/api/docs/guides/start>, and 
getting 
started section 
<https://github.com/googleads/googleads-php-lib#getting-started> of php 
client lib README might be very useful to you for getting started.

Basically, after you put all information in the auth.ini 
<https://github.com/googleads/googleads-php-lib/blob/master/src/Google/Api/Ads/AdWords/auth.ini>,
 
you should be able to run GetCampaigns.php 
<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201506/BasicOperations/GetCampaigns.php>
 
example without adding any more codes.
So, the below line is not necessary.

> After the "require" line, I added this code from the auth.ini regarding 
> the client account:
> $user = new AdWordsUser();
> $user->SetClientCustomerId("xxxxxxxxxx");


Please try the client lib as is before you copy files around to your 
project directories.

Cheers,
Thanet, AdWords API Team

On Wednesday, September 2, 2015 at 10:01:31 PM UTC+9, devpsc...@gmail.com 
wrote:
>
> Alright, so I got approved and I followed the example. Literally copy and 
> pasted it. After the "require" line, I added this code from the auth.ini 
> regarding the client account:
>
> $user = new AdWordsUser();
> $user->SetClientCustomerId("xxxxxxxxxx");
>
> With credentials filled in.
>
> Now, is this the right way to go about this? I'm running it in command 
> prompt and it's not finding the "init.php" file immediately. Do I have to 
> point to it specifically? Or is there a general php method that can 
> recursively check children folders for this file? Also, from what I'm 
> seeing there are only init.php files in the Examples folders.
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d19d8f8e-9271-43fd-ba51-0461a2c0b050%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to