Re: SOAP error: failed to load external entity

2017-05-31 Thread rob . wells
Hi Peter,

Thanks for getting back to me. I had a go at instructions and they didn't 
help, but I've manage to fix it now. Adding this line of code managed to 
fix it.

libxml_disable_entity_loader(false);

I future I shall go there first. :)

Kind Regards,
Rob

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9b6e4719-fd7b-4721-962b-9425d864c909%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


SOAP error: failed to load external entity

2017-05-31 Thread rob . wells
I've started getting this error over the last couple of days, but I've only 
just noticed today. It is not just the "CampaignService", I'm also getting 
it on the "AdGroupService". Here is the stack trace for the error.

SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 
'https://adwords.google.com/api/adwords/cm/v201702/CampaignService?wsdl' : 
failed to load external entity 
"https://adwords.google.com/api/adwords/cm/v201609/CampaignService?wsdl;
 in 
/var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php:65
Stack trace:
#0 
/var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(65):
 
SoapClient->SoapClient('https://adwords...', Array)
#1 
/var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201702/cm/CampaignService.php(143):
 
Google\AdsApi\Common\AdsSoapClient->__construct('https://adwords...', Array)
#2 [internal function]: 
Google\AdsApi\AdWords\v201702\cm\CampaignService->__construct(Array)
#3 
/var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(39):
 
ReflectionClass->newInstanceArgs(Array)
#4 
/var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClientFactory.php(87):
 
Google\AdsApi\Common\Util\Reflection->createInstance('Google\\AdsApi\\A...', 
Array)
#5 
/var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/AdWordsServices.php(55):
 
Google\AdsApi\Common\AdsSoapClientFactory->generateSoapClient(Object(Google\AdsApi\AdWords\AdWordsSession),
 
Object(Google\AdsApi\AdWords\AdWordsHeaderHandler), 
Object(Google\AdsApi\AdWords\AdWordsServiceDescriptor))
#6 /var/www/html/app/Drivers/Adwords/AdWordsServices.php(52): 
Google\AdsApi\AdWords\AdWordsServices->get(Object(Google\AdsApi\AdWords\AdWordsSession),
 
'Google\\AdsApi\\A...')

I've tried loading the file over curl from the same server and it works 
perfectly.

< HTTP/1.1 200 OK
< Content-Type: text/xml
< Date: Wed, 31 May 2017 08:52:59 GMT
< Expires: Wed, 31 May 2017 08:52:59 GMT
< Cache-Control: private, max-age=0
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< Server: GSE
< Alt-Svc: quic=":443"; ma=2592000; v="38,37,36,35"
< Accept-Ranges: none
< Vary: Accept-Encoding
< Transfer-Encoding: chunked

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6acfc551-1c81-460e-a103-38be6cfed3f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: invalid_grant error suddenly happening after 18 months of stable server side code

2017-02-24 Thread rob . wells
Same Issue here.

Probably linked to this:

https://productforums.google.com/forum/?nomobile=true#!category-topic/gmail/Kfsx8YjqAS4

Google seem to have invalidated loads of tokens, logged me out my phone 
last night.

On Thursday, February 23, 2017 at 9:23:36 PM UTC, PPC Developer wrote:
>
> Hi,
>
> This is perplexing...Our solution uses OAuth2 with refresh tokens and we 
> have multiple C# clients deployed on multiple machines running on windows, 
> managing our accounts MCC child accounts. 
>
> Suddenly, the clients all started having invalid_grant errors. This is a 
> pretty stable code that has been running for 18 months without any issues. 
> See below the error details. We're using .NET client library, 
> implementation with C#.
>
> Please let us know what the issue is with our access token?
>
>
>
> HRESULT -2146233088
> Failed to refresh access token.
> {
>   "error" : "invalid_grant"
> }
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fd9dd028-d8b0-4c0f-83e5-4cdd7f804992%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Limit on Bidding Strateguies Per Campaign

2017-01-12 Thread rob . wells
Hi,

I've recently started getting this error when putting keywords (with bids) 
into my ad groups. I used to get this issue with my accounts, but the limit 
went away, but it seems to have come back again. Two examples of the error 
are below.

{"reason":"CAMPAIGN_LIMIT","enclosingId":"691391905","limit":1,"accountLimitType":"AD_GROUP_CRITERION_BIDDING_STRATEGY_OVERRIDES_PER_CAMPAIGN","existingCount":59002}
{"reason":"CAMPAIGN_LIMIT","enclosingId":"733034116","limit":1,"accountLimitType":"AD_GROUP_CRITERION_BIDDING_STRATEGY_OVERRIDES_PER_CAMPAIGN","existingCount":25736}
 

As you can see I've gone way past the limit. I would like to know why its 
suddenly being enforced again.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5753d110-a37e-498b-8b35-6a19a2a61f1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adwords.google.com/api/adwords/cm/v201609/LabelService?wsdl' : Extra content at the end of the document

2016-10-25 Thread rob . wells
Hi Thanet,

I'm not having this issue anymore and I didn't change the way I was dealing 
with the API. It seems like it has gone away on its own.


On Tuesday, October 25, 2016 at 8:26:21 AM UTC+1, Thanet Knack 
Praneenararat (AdWords API Team) wrote:
>
> Hello All,
>
> Do you happen to face with this issue after you reported this?
> Our engineers can't find anything wrong on our configuration settings and 
> servers.
> They suspect that this would be something related on the client sides.
>
> Best,
> Thanet, AdWords API Team
>
> On Thursday, October 6, 2016 at 11:31:58 PM UTC+9, Christian H. wrote:
>>
>> Dear Adwords-Team,
>>
>> Is it possible, that this error is related to my problem 
>> https://groups.google.com/forum/#!topic/adwords-api/Epxf03OZ2cA ?
>>
>> My problem is, that I sometimes get an invalid XML-response that looks 
>> like an (de)compression-issue. 
>>
>> An example-outline of that messed up decompressed response is 
>> "TARGET_CPA"
>>
>> Christian
>>
>> Am Donnerstag, 6. Oktober 2016 15:53:47 UTC+2 schrieb 
>> rob@euautomation.com:
>>>
>>> I'm getting this error too.
>>>
>>> SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 
>>> 'https://adwords.google.com/api/adwords/cm/v201607/CampaignService?wsdl' 
>>> : Extra content at the end of the document
>>>  in 
>>> /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php:154
>>> Stack trace:
>>> #0 
>>> /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php(154):
>>>  
>>> SoapClient->SoapClient('https://adwords...', Array)
>>> #1 
>>> /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php(51):
>>>  
>>> AdsSoapClient->__construct('https://adwords...', Array, 
>>> Object(AdWordsUser), 'CampaignService', 'https://adwords...')
>>> #2 
>>> /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/v201607/CampaignService.php(8031):
>>>  
>>> AdWordsSoapClient->__construct('https://adwords...', Array, 
>>> Object(AdWordsUser), 'CampaignService', 'https://adwords...')
>>> #3 
>>> /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/SoapClientFactory.php(161):
>>>  
>>> CampaignService->__construct('https://adwords...', Array, 
>>> Object(AdWordsUser))
>>> #4 
>>> /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/SoapClientFactory.php(85):
>>>  
>>> SoapClientFactory->GenerateServiceClient('CampaignService')
>>> #5 
>>> /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsUser.php(131):
>>>  
>>> SoapClientFactory->GenerateSoapClient('CampaignService')
>>> #6 
>>> /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php(229):
>>>  
>>> AdsUser->GetServiceSoapClient('CampaignService', 
>>> Object(AdWordsSoapClientFactory))
>>>
>>> I'm also getting a different error sometimes too.
>>>
>>> exception 'ErrorException' with message 'gzinflate(): data error' in 
>>> /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php:178
>>> Stack trace:
>>> #0 [internal function]: 
>>> Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 
>>> 'gzinflate(): da...', '/var/www/html/a...', 178, Array)
>>> #1 [internal function]: gzinflate('Qo?...')
>>> #2 
>>> /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php(178):
>>>  
>>> SoapClient->__doRequest('https://adwords...', '', 
>>> 1)
>>> #3 
>>> /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php(72):
>>>  
>>> AdsSoapClient->__doRequest('https://adwords...', 
>>> '', 1)
>>> #4 [internal function]: AdWordsSoapClient->__doRequest('>> version="...', 'https://adwords...', '', 1, 0)
>>> #5 
>>> /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php(216):
>>>  
>>> SoapClient->__soapCall('mutate', Array, NULL, Array, Array)
>>> #6 
>>> /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php(86):
>>>  
>>> AdsSoapClient->__soapCall('mutate', Array)
>>> #7 
>>> /var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/v201607/FeedItemService.php(6213):
>>>  
>>> AdWordsSoapClient->__soapCall('mutate', Array)
>>>
>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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, 

Re: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adwords.google.com/api/adwords/cm/v201609/LabelService?wsdl' : Extra content at the end of the document

2016-10-06 Thread rob . wells
I'm getting this error too.

SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 
'https://adwords.google.com/api/adwords/cm/v201607/CampaignService?wsdl' : 
Extra content at the end of the document
 in 
/var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php:154
Stack trace:
#0 
/var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php(154):
 
SoapClient->SoapClient('https://adwords...', Array)
#1 
/var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php(51):
 
AdsSoapClient->__construct('https://adwords...', Array, 
Object(AdWordsUser), 'CampaignService', 'https://adwords...')
#2 
/var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/v201607/CampaignService.php(8031):
 
AdWordsSoapClient->__construct('https://adwords...', Array, 
Object(AdWordsUser), 'CampaignService', 'https://adwords...')
#3 
/var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/SoapClientFactory.php(161):
 
CampaignService->__construct('https://adwords...', Array, 
Object(AdWordsUser))
#4 
/var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/SoapClientFactory.php(85):
 
SoapClientFactory->GenerateServiceClient('CampaignService')
#5 
/var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsUser.php(131):
 
SoapClientFactory->GenerateSoapClient('CampaignService')
#6 
/var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php(229):
 
AdsUser->GetServiceSoapClient('CampaignService', 
Object(AdWordsSoapClientFactory))

I'm also getting a different error sometimes too.

exception 'ErrorException' with message 'gzinflate(): data error' in 
/var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php:178
Stack trace:
#0 [internal function]: 
Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 
'gzinflate(): da...', '/var/www/html/a...', 178, Array)
#1 [internal function]: gzinflate('Qo?...')
#2 
/var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php(178):
 
SoapClient->__doRequest('https://adwords...', '', 1)
#3 
/var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php(72):
 
AdsSoapClient->__doRequest('https://adwords...', '', 
1)
#4 [internal function]: AdWordsSoapClient->__doRequest('https://adwords...', '', 1, 0)
#5 
/var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php(216):
 
SoapClient->__soapCall('mutate', Array, NULL, Array, Array)
#6 
/var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php(86):
 
AdsSoapClient->__soapCall('mutate', Array)
#7 
/var/www/html/ads/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/v201607/FeedItemService.php(6213):
 
AdWordsSoapClient->__soapCall('mutate', Array)


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/57f22552-9288-42ed-b638-219467aed1e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.