Re: Error

2017-07-31 Thread alekseypp
Happened. But Now another problem.
GetBillingAccounts returns null

*my code:*
$oAuth2Credential = (new OAuth2TokenBuilder())
->fromFile()
->build();
global $clientCustomerId;

$session = (new AdWordsSessionBuilder())
->fromFile()

->withOAuth2Credential($oAuth2Credential)->withClientCustomerId($clientCustomerId)
->build();
$AdWordsHeaderHandler = new AdWordsHeaderHandler();
$AdWordsHeaderHandler->generateHttpHeaders($session);
$SoapLogMessageFormatter = new SoapLogMessageFormatter();
$AdWordsServiceDescriptor = new 
AdWordsServiceDescriptor(BudgetOrderService::class);

$AdsSoapClientFactory = new AdsSoapClientFactory($SoapLogMessageFormatter);
$soapClient = $AdsSoapClientFactory->generateSoapClient($session, 
$AdWordsHeaderHandler, $AdWordsServiceDescriptor);

var_dump($soapClient->getBillingAccounts());


пятница, 28 июля 2017 г., 21:49:12 UTC+3 пользователь Sreelakshmi 
Sasidharan (AdWords API Team) написал:
>
> Hi, 
>
> Are you looking for a code sample for BudgetOrderService 
> ?
>  
> If so, we don't have a documented sample for this service. You can refer to 
> the code snippets in this 
>  guide 
> to understand how to perform various operations. You can also find the 
> complete set of code samples in PHP here 
> 
> . 
>
> Thanks,
> Sreelakshmi, 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/3c5668f6-1ef1-4db9-aee3-dd25c7218f93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error

2017-07-28 Thread alekseypp
Where can I see an example of this method implementation?

среда, 19 июля 2017 г., 18:47:47 UTC+3 пользователь Sreelakshmi Sasidharan 
(AdWords API Team) написал:
>
> Hi, 
>
> Could you please enable logging 
>  and 
> share the complete SOAP logs of your API operation? Also, please confirm 
> that you are setting Authorization, developerToken, userAgent and 
> clientCustomerId in the request header. If you are using our client 
> library, you can go through this 
>  section to 
> understand how to set OAuth2Credential and the session prior to making the 
> API call. 
>
> Thanks,
> Sreelakshmi, 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/7b6d4740-55a9-4eef-994e-b7ea7fff21d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


BudgetOrderService Error getBillingAccounts

2017-07-28 Thread alekseypp

$BudgetOrderService = new BudgetOrderService();
$page = $BudgetOrderService->getBillingAccounts();

I use Adwords Api v201705
But i have error

*Fatal error*:  Uncaught Error: Call to a member function generateHttpHeaders() 
on null

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0b66f049-acbd-4b23-972f-cc6177d6f2b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Error BudgetOrderService getBillingAccounts (php)

2017-07-19 Thread alekseypp
Hello, I have error

my code:

$BudgetOrderService = new BudgetOrderService();
$page = $BudgetOrderService->getBillingAccounts();

*Fatal error*:  Uncaught Error: Call to a member function generateHttpHeaders() 
on null in


How can i fix it?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fa5e295b-912e-4c82-ab89-555b6db86d2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Error

2017-07-19 Thread alekseypp


Hello, I have error:

*
Fatal error*:  Uncaught Error: Call to a member function generateHttpHeaders() 
on null in


My code:


$BudgetOrderService = new BudgetOrderService();
$page = $BudgetOrderService->getBillingAccounts();


How i can fix it?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0680b153-5381-4e6b-b794-ca9538a6f685%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.