Hi,
First are you able to run any of the examples using OAuth2?
Please follow this
step<https://code.google.com/p/google-api-adwords-php/wiki/OAuth2>first, and
let us know where you failed.
Best,
- Takeshi, AdWords API Team
On Saturday, October 12, 2013 11:59:10 PM UTC+9, Devin Dixon wrote:
>
> I'm getting the following error:
>
> Fatal error: Uncaught exception 'OAuth2Exception' with message 'Failed to
>> connect to 2607:f8b0:400d:c04::54: No route to host' in
>> /libraries/Ads/Common/Util/SimpleOAuth2Handler.php on line 112
>> OAuth2Exception: Failed to connect to 2607:f8b0:400d:c04::54: No route to
>> host in /libraries/Ads/Common/Util/SimpleOAuth2Handler.php on line 112 Call
>> Stack: 0.0142 642256 1. {main}()
>
>
> My good is still fairly simple:
>
> $user = new AdWordsUser();
>> $campaignService = $user -> getCampaignService();
>> $campaign = new Campaign();
>> $campaign -> name = 'Campaign #' . time();
>> $campaign -> status = 'INACTIVE';
>> $campaign -> biddingStrategyConfiguration = new
>> BiddingStrategyConfiguration();
>> $campaign -> biddingStrategyConfiguration -> biddingStrategyType =
>> 'MANUAL_CPC';
>> $campaign -> budget = new Budget('DAILY', new Money(50), 'STANDARD');
>> $operation = new CampaignOperation();
>> $operation -> operand = $campaign;
>> $operation -> operator = 'ADD';
>> $operations[] = $operation;
>> // Add campaign.
>> $campaignReturnValue = $campaignService -> mutate($operations);
>> $campaign = new Campaign();
>> exit();
>
>
> What could I be doing wrong?
>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
For more options, visit https://groups.google.com/groups/opt_out.