Get all AW client Names and IDs under a refresh token

2017-09-09 Thread Tim Johnson
Hi I am looking to print out all client ids and names for a given refresh 
token.

The accountmanagement example appears to require a client ID.  Is there any 
way my web authentication can retrieve this information without explicitly 
giving a client ID?

Thanks,
Tim

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/95bdffb0-3450-4f14-a1be-cd23c00f1342%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


failure initializing OfflineCredentials$Api

2017-09-09 Thread Arch
We are using the Java client libraries and getting the following error:

java.lang.NoClassDefFoundError: Could not initialize class 
com.google.api.ads.common.lib.auth.OfflineCredentials$Api

All the jars have been included in the classpath. ads.properties file is 
all set up. Why it can not initialize and what is it actually not finding? 
The jar that includes OfflineCredentials$Api is there.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ba424884-a80f-4e89-b64a-2ef83b700285%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


WARNING in logs but everything works as expected

2017-09-09 Thread Nick Harris
According to the documentation on logging in the Google Ads API Client 
Library for PHP , a WARNING 
in the logs means "failure": 
Log message \ Event statusSuccessFailure
One-line summary INFO WARNING
Debug message (e.g., SOAP payload) DEBUG NOTICE


However, I'm able to successfully run my queries, gets, and mutates even 
though my logs look like below. Any ideas what the "WARNING" is about?

[2017-09-09 14:30:07] local.WARNING: CampaignService 201708  
[2017-09-09 14:30:08] local.INFO: clientCustomerId=## operations=1 
service=CampaignService method=query responseTime=380 requestId=# 
server=adwords.google.com isFault=0 faultMessage=  
[2017-09-09 14:30:08] local.DEBUG: POST 
/api/adwords/cm/v201708/CampaignService?wsdl HTTP/1.1
Host: adwords.google.com
Connection: close
User-Agent: PHP-SOAP/7.1.6-1~ubuntu16.04.1+deb.sury.org+1
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 1568
Authorization: REDACTED


http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201708;>#REDACTEDunknown
 
(AwApi-PHP, googleads-php-lib/29.0.0, 
PHP/7.1.6-1~ubuntu16.04.1+deb.sury.org+1)falsefalseSELECT
 
AdServingOptimizationStatus, AdvertisingChannelSubType, 
AdvertisingChannelType, Amount, BaseCampaignId, BiddingStrategyId, 
BiddingStrategyName, BiddingStrategyType, BudgetId, BudgetName, 
BudgetReferenceCount, BudgetStatus, CampaignGroupId, CampaignTrialType, 
DeliveryMethod, Eligible, EndDate, EnhancedCpcEnabled, 
FrequencyCapMaxImpressions, Id, IsBudgetExplicitlyShared, Labels, Level, 
Name, RejectionReasons, SelectiveOptimization, ServingStatus, Settings, 
StartDate, Status, TargetContentNetwork, TargetCpa, 
TargetCpaMaxCpcBidCeiling, TargetCpaMaxCpcBidFloor, TargetGoogleSearch, 
TargetPartnerSearchNetwork, TargetRoas, TargetRoasBidCeiling, 
TargetRoasBidFloor, TargetSearchNetwork, TargetSpendBidCeiling, 
TargetSpendEnhancedCpcEnabled, TargetSpendSpendTarget, TimeUnit, 
TrackingUrlTemplate, UrlCustomParameters, VanityPharmaDisplayUrlMode, 
VanityPharmaText ORDER BY Name LIMIT 
0,500

HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Date: Sat, 09 Sep 2017 21:30:08 GMT
Expires: Sat, 09 Sep 2017 21:30:08 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="39,38,37,35"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close

http://schemas.xmlsoap.org/soap/envelope/;>https://adwords.google.com/api/adwords/cm/v201708;>CampaignServicequery1380https://adwords.google.com/api/adwords/cm/v201708;>0CampaignPage
  


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2930b8c7-cbee-4d9b-890e-1c4d97d4b176%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Ad Preview

2017-09-09 Thread Aliko
Hello,

Is there a way to get  AdWords Ad Preview with api or another method?

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cf89d3d1-adff-427c-beb2-5418e9dcdc18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Googel Adwords API - Reporting - (ParallelReportDownload.php) need the data in an array format

2017-09-09 Thread Pradeep Kumar
Hi Sreelakshmi,

Thank you for the help. My previous issue is resolved. 

I am stuck some where else right now.

AS you see in the code section 

$reportDefinition->setDateRangeType(
ReportDefinitionDateRangeType:: LAST_7_DAYS);

I created a variable name $date which is having value LAST_7_DAYS

When i call it as mentioned below it will display an error

Code : 

$reportDefinition->setDateRangeType(
ReportDefinitionDateRangeType:: $_GET['date']);


Error : 
 

*Fatal error*: Uncaught Error: Access to undeclared static property: 
Google\AdsApi\AdWords\Reporting\v201609\ReportDefinitionDateRangeType::$_GET 
in 
E:\server\htdocs\adwards\examples\AdWords\v201609\Reporting\CampaignsPerformancereport.php:81
 
Stack trace: #0 
E:\server\htdocs\adwards\examples\AdWords\v201609\Reporting\CampaignsPerformancereport.php(230):
 
Google\AdsApi\Examples\AdWords\v201609\Reporting\ParallelReportDownload::runExample(Object(Google\AdsApi\AdWords\AdWordsServices),
 
Object(Google\AdsApi\AdWords\AdWordsSessionBuilder), 
'C:\\Users\\Tech\\A...') #1 
E:\server\htdocs\adwards\examples\AdWords\v201609\Reporting\CampaignsPerformancereport.php(234):
 
Google\AdsApi\Examples\AdWords\v201609\Reporting\ParallelReportDownload::main() 
#2 {main} thrown in 
*E:\server\htdocs\adwards\examples\AdWords\v201609\Reporting\CampaignsPerformancereport.php*
 on 
line *81*


Kindly help me to FIX.


On Friday, September 8, 2017 at 8:13:15 PM UTC+5:30, Pradeep Kumar wrote:
>
> Hi Everyone,
>
> This is Pradeep ( Web Programmer - PHP ). I am using google adwords api to 
> get campaigns reports. While i am accessing the reports 
> from ParallelReportDownload.php then i can see the report is being 
> downloaded into excel format.
>
> I don't want an report to be download. I want the result in an array 
> format after searching a lot on google.com i found a method which 
> is getAsString() that is returning the result in a string format it is not 
> useful for me till now.
>
> Can you please help me to fix this issues.
>
> Thank  You
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/462135b6-f2cb-429e-9d25-37efe17c966d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: v29.0.0 installation problem

2017-09-09 Thread Aliko
Hello,


After deleting composer.json and lock file with this code it worked 
successfully.


php composer.phar require googleads/googleads-php-lib 
--update-with-dependencies


Regards


On Friday, 8 September 2017 18:15:48 UTC+3, Bharani Cherukuri (AdWords API 
Team) wrote:

> Hello, 
>
> Based on the error logs, it looks like you're trying to install the 
> google/auth 
>  
> version 
> which is not supported by the client library. Can you make sure to install 
> the PHP client library  by 
> following the steps mentioned here 
> ? You can also refer to 
> this issue on our Github page 
> . If the issue 
> persists, you may try posting your question here 
> . 
>
> Thanks,
> Bharani, AdWords API Team.  
>
> On Friday, September 8, 2017 at 5:21:02 AM UTC-4, Aliko wrote:
>>
>> Hello,
>>
>> When I try to install v29.0.0 
>> 
>>  like 
>> before versions, I got below errors. Can you help me please?
>>
>> Best Regards
>>
>> root@nod4 [/home/www]# php composer.phar require 
>> googleads/googleads-php-lib
>> Do not run Composer as root/super user! See https://getcomposer.org/root 
>> for details
>> Using version ^29.0 for googleads/googleads-php-lib
>> ./composer.json has been updated
>> Loading composer repositories with package information
>> Updating dependencies (including require-dev)
>> Your requirements could not be resolved to an installable set of packages.
>>
>>   Problem 1
>> - Installation request for googleads/googleads-php-lib ^29.0 -> 
>> satisfiable by googleads/googleads-php-lib[29.0.0].
>> - Conclusion: remove google/auth v0.11.1
>> - Conclusion: don't install google/auth v0.11.1
>> - googleads/googleads-php-lib 29.0.0 requires google/auth ^1.0.0 -> 
>> satisfiable by google/auth[v1.0, v1.0.1].
>> - Can only install one of: google/auth[v1.0, v0.11.1].
>> - Can only install one of: google/auth[v1.0.1, v0.11.1].
>> - Installation request for google/auth (locked at v0.11.1) -> 
>> satisfiable by google/auth[v0.11.1].
>>
>>
>> Installation failed, reverting ./composer.json to its original content.
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ba5bbd62-d229-40bd-980c-659a9e246682%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.