Re: Not getting Auth refresh token in every request

2017-10-05 Thread TheDigiFrog
Hi there,


Thank you for your reply.
Sorry to ask but did you checked the attached file ?

it's a web application for the auth from Google to get the Access token and
refresh token.
So that we can use it offline.

We are not getting any error when generating refresh token , it comes first
time only but next time when I am authorizing it is not giving me refresh
token.

But  we looking same refresh token for Every hit. Because some time any
technical issue comes so we can again get refresh token to save in our
database and then we can use it when user is not online.
Means cron job is offline

We know the limit 50 for refresh token.


More about us :

We have 500 users who has AdWord account and we are fetching their report
to show them on our platform.
Means once we will get the Access token refresh token then we can run a
cron in in a day when user is not online and can get AdWords report with
his authorization tokens.


Please look at my previous attached file.

Thanks
Naresh kumar


On Oct 6, 2017 1:20 AM, "'Bharani Cherukuri (AdWords API Team)' via AdWords
API Forum"  wrote:

Hello Naresh,

Could you provide me the details about the application flow type (Installed
or Web application) used for the implementation and the specific error
you're receiving when refreshing the token? If you're not reusing the
refresh token, you will have to use prompt=consent to get a similar
behavior, as mentioned here
. If
you're trying to generate the refresh token for each request, please note
that there is a limit
 of 50
refresh tokens per user per account. Once you're above the specified limit,
the refresh tokens will be invalidated.

Thanks,
Bharani, AdWords API Team

On Thursday, October 5, 2017 at 10:29:19 AM UTC-4, thedi...@gmail.com wrote:
>
> Hi API Team,
>
> I am not able to get Auth refresh_token in every request.  If any
> accidental activity occur by client like no internet while fetching refresh
> token or missed to save it then new OAuth2  will not return refresh token
> again. so, i want refresh token in every request. We are using this refresh
> token for cron job to fetch adwords report. Please guide me.
>
> Please find attached code file.
>
> Thank You
> Naresh
>
-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 a topic in the
Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/adwords-api/g9WGyayMgtQ/unsubscribe.
To unsubscribe from this group and all its topics, 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/ad9ac4d0-dbed-46e2-b644-a60f999c3afb%40googlegroups.com

.

For more options, visit https://groups.google.com/d/optout.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CAGU0HpHgyLaQG7ou1EQihUdaFP2zmmbSuWwHViGOR-T9bc-3TQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Not getting Auth refresh token in every request

2017-10-05 Thread thedigifrog
Hi API Team,

I am not able to get Auth refresh_token in every request.  If any 
accidental activity occur by client like no internet while fetching refresh 
token or missed to save it then new OAuth2  will not return refresh token 
again. so, i want refresh token in every request. We are using this refresh 
token for cron job to fetch adwords report. Please guide me. 

Please find attached code file.

Thank You
Naresh

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4df921ea-b308-4963-8896-3b7c01fb1c98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<>


Re: Report is not downloading with content (coming Blank file ) with not CSV extenstion and not getting any error.

2017-10-01 Thread TheDigiFrog
Hello ,

Please guide us and i also posted issues on GITHUB
https://github.com/googleads/googleads-php-lib/issues/374

We are running a big project and we are depended on reports,

waiting for your reply.



Virus-free.
www.avg.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Sat, Sep 30, 2017 at 3:32 PM,  wrote:

> Hi Vincent
>
> What we are doing?
> We have successfully got refresh token by google Auth. And after login we
> are trying to get all report first by client id, client secret, developer
> token, refresh token. Ads session built successfully, got customer id also.
>
> What we are getting?
> We are getting blank file with any extension like csv. Getting some error
> Data expected to be an array, NULL given. screenshot url attached below:
> https://www.awesomescreenshot.com/image/2855260/
> 9de72c3b738ad827776ab30cbcb415e3
>
> and code file also attached:
>
> Please guide your valuable solution
>
> Thank you
> Naresh Kumar
>
>
>
> On Wednesday, September 27, 2017 at 8:56:24 AM UTC+5:30, Vincent Racaza
> (AdWords API Team) wrote:
>>
>> Hi Naresh,
>>
>> Generation of report is on the client level, so my clientCustomerId is a
>> client account. Also, if you will be passing an MCC Id in this reporting
>> example, it will generate an error. So, I believe that this is not a
>> clientCustomerId issue. This seems to be a PHP client library set-up issue
>> on your end that causes this. Could you try the original example
>> 
>>  (with
>> no changes at all on your end, except for your OAuth2 and session setting
>> as you are explicitly setting them in the example file) and check if this
>> will still generate a blank file with no extension on your end?
>>
>> If the issue still persists even with the original example, then as I
>> have previously suggested, kindly post this concern in the PHP client
>> library  so the
>> library owners can provide you guidance on this.
>>
>> Thanks,
>> Vincent
>> 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 a topic in the
> Google Groups "AdWords API Forum" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/adwords-api/_rP0UaiPASg/unsubscribe.
> To unsubscribe from this group and all its topics, 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/6beed550-1fbe-4c11-854a-5df8f6cce1ab%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CAGU0HpEXk2QaVTNge5pNWCbA4hd5xS4jVqxz4HNHjmsbvT2HtQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Report is not downloading with content (coming Blank file ) with not CSV extenstion and not getting any error.

2017-09-30 Thread thedigifrog
Hi Vincent

What we are doing?
We have successfully got refresh token by google Auth. And after login we 
are trying to get all report first by client id, client secret, developer 
token, refresh token. Ads session built successfully, got customer id also.

What we are getting?
We are getting blank file with any extension like csv. Getting some error 
Data expected to be an array, NULL given. screenshot url attached below:
https://www.awesomescreenshot.com/image/2855260/9de72c3b738ad827776ab30cbcb415e3

and code file also attached: 

Please guide your valuable solution

Thank you
Naresh Kumar

 

On Wednesday, September 27, 2017 at 8:56:24 AM UTC+5:30, Vincent Racaza 
(AdWords API Team) wrote:
>
> Hi Naresh,
>
> Generation of report is on the client level, so my clientCustomerId is a 
> client account. Also, if you will be passing an MCC Id in this reporting 
> example, it will generate an error. So, I believe that this is not a 
> clientCustomerId issue. This seems to be a PHP client library set-up issue 
> on your end that causes this. Could you try the original example 
> 
>  (with 
> no changes at all on your end, except for your OAuth2 and session setting 
> as you are explicitly setting them in the example file) and check if this 
> will still generate a blank file with no extension on your end?
>
> If the issue still persists even with the original example, then as I have 
> previously suggested, kindly post this concern in the PHP client library 
>  so the library 
> owners can provide you guidance on this.
>
> Thanks,
> Vincent
> 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/6beed550-1fbe-4c11-854a-5df8f6cce1ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<>


Re: Report is not downloading with content (coming Blank file ) with not CSV extenstion and not getting any error.

2017-09-30 Thread thedigifrog


On Wednesday, September 27, 2017 at 8:56:24 AM UTC+5:30, Vincent Racaza 
(AdWords API Team) wrote:
>
> Hi Naresh,
>
> Generation of report is on the client level, so my clientCustomerId is a 
> client account. Also, if you will be passing an MCC Id in this reporting 
> example, it will generate an error. So, I believe that this is not a 
> clientCustomerId issue. This seems to be a PHP client library set-up issue 
> on your end that causes this. Could you try the original example 
> 
>  (with 
> no changes at all on your end, except for your OAuth2 and session setting 
> as you are explicitly setting them in the example file) and check if this 
> will still generate a blank file with no extension on your end?
>
> If the issue still persists even with the original example, then as I have 
> previously suggested, kindly post this concern in the PHP client library 
>  so the library 
> owners can provide you guidance on this.
>
> Thanks,
> Vincent
> 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/6a232e78-3c4d-4a68-b9dd-bc164ba5b4ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Adwords API download report issue

2017-09-30 Thread thedigifrog
*What we are doing?*
We have successfully got refresh token by google Auth. And after login we 
are trying to get all report first by client id, client secret, developer 
token, refresh token. Ads session built successfully, got customer id also.

*What we are getting?*
We are getting blank file with any extension like csv. Getting some error 
Data expected to be an array, NULL given. screenshot url attached below:

https://www.awesomescreenshot.com/image/2855260/9de72c3b738ad827776ab30cbcb415e3

and code file also attached

Please guide with correct solution.

Thank you
Naresh Kumar
 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8b377801-9cf3-48cf-b968-739a2b5b005b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<>


Re: Report is not downloading with content (coming Blank file ) with not CSV extenstion and not getting any error.

2017-09-26 Thread thedigifrog
Hi Vincent, 

I am using same you have given. But still no luck. May I know the sample of 
credential type you are passing in .ini file. 

Is this the client customer id issue?  Please share the sample credential 
type  you are using in your .ini file .

Thank you 
Naresh

On Tuesday, September 26, 2017 at 3:41:48 PM UTC+5:30, Vincent Racaza 
(AdWords API Team) wrote:
>
> Hi Naresh,
>
> I could not see any mistake in your code as I was able to run your exact 
> code in my test account. I just added the correct library imports in the 
> file, and instead of explicitly setting the OAuth2 and session 
> configurations, I used the property file in getting these data. Please see 
> attached file that worked successfully on my end.
>
> With this, if the issue still persists after running the example file that 
> I provided, then I suggest to post your concern in the PHP client library 
>  as this is a 
> library specific issue, and not AdWords API specific. The library owners 
> can provide you better suggestions on this.
>
> Thanks,
> Vincent
> 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/4aecb08d-35b5-416a-ac7d-d1fd890d8684%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Report is not downloading with content (coming Blank file ) with not CSV extenstion and not getting any error.

2017-09-26 Thread TheDigiFrog
One more can you send me same file which you run and get success ?.



On Sep 26, 2017 2:18 PM,  wrote:

> Hi Vincent,
>
> Thank you for reply.
>
> Can you please guide where  I have done mistake in code or missing
> something to get report?
>
>  I am just able to get the blank file not with the .CSV extension .
>
> Thank you
> naresh
>
>
> On Tuesday, September 26, 2017 at 1:36:46 PM UTC+5:30, Vincent Racaza
> (AdWords API Team) wrote:
>>
>> Hi,
>>
>> I tested your code against my account using PHP and I was able to
>> download the report in a CSV file successfully. Although, what I have
>> noticed is that there are two files being created. One is a blank file
>> with no extension, and the other one is with CSV extension. And when you
>> opened the file with CSV extension, the reporting data is there inside.
>> Please see attached screenshot.
>>
>> Could you confirm if there are also two files being created in your end
>> using your code?
>>
>> Thanks,
>> Vincent
>> 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 a topic in the
> Google Groups "AdWords API Forum" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/adwords-api/_rP0UaiPASg/unsubscribe.
> To unsubscribe from this group and all its topics, 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/2c54d5a1-fa42-485f-a62d-441e5bdf6b48%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CAGU0HpGUy0jMyofAQ7CUqv03%3DL00mNWNRAMwCovE7R%2BzqE5KQg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Report is not downloading with content (coming Blank file ) with not CSV extenstion and not getting any error.

2017-09-26 Thread thedigifrog
Hi Vincent, 

Thank you for reply.

Can you please guide where  I have done mistake in code or missing 
something to get report?

 I am just able to get the blank file not with the .CSV extension .

Thank you 
naresh


On Tuesday, September 26, 2017 at 1:36:46 PM UTC+5:30, Vincent Racaza 
(AdWords API Team) wrote:
>
> Hi,
>
> I tested your code against my account using PHP and I was able to download 
> the report in a CSV file successfully. Although, what I have noticed is 
> that there are two files being created. One is a blank file with no 
> extension, and the other one is with CSV extension. And when you opened the 
> file with CSV extension, the reporting data is there inside. Please see 
> attached screenshot.
>
> Could you confirm if there are also two files being created in your end 
> using your code?
>
> Thanks,
> Vincent
> 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/2c54d5a1-fa42-485f-a62d-441e5bdf6b48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Report is not downloading with content (coming Blank file ) with not CSV extenstion and not getting any error.

2017-09-25 Thread thedigifrog
Please ignore this :

Dont know why it is printing "*Google\AdsApi\AdWords\AdWordsSession Object*" 
> whole content with report setting 
>
*Google\AdsApi\AdWords\ReportSettings Object *in *runExample()*. even i did 
not print it 


For rest i am looking at you.



On Tuesday, September 26, 2017 at 10:14:36 AM UTC+5:30, thedi...@gmail.com 
wrote:
>
>
> Hi There,
>
> Thank you for your advice.
>
>
> Report section is the new challenge for me, I am following Google sample 
> code  to get report. Sample code listed below:
>
> *Issue* : Report is not generating, only blank file generating.
> the blank file not have any file extension (CSV).
> Dont know why it is printing "*Google\AdsApi\AdWords\AdWordsSession 
> Object*" whole content with report setting 
>
> *Google\AdsApi\AdWords\ReportSettings Object *in *runExample()*. even i did 
> not print it.
>
> I tried with active adwords accounts. but same issue with all AdWords 
> account.
> Also it also not printing the result of:
> printf("Report with name '%s' was downloaded to '%s'.\n", 
> $reportDefinition->getReportName(), $filePath);
>
>
>
>
> code Sample: 
>
>
>
> public function main() {
>
> $refresh_token = 'YOUR REFRESH TOKEN';
>   
> $oAuth2Credential = (new OAuth2TokenBuilder([
> 
> ]))
> ->withClientId(Configure::read('GOOGLE_OAUTH_CLIENT_ID'))
> ->withClientSecret(Configure::read(
> 'GOOGLE_OAUTH_CLIENT_SECRET'))
> ->withRefreshToken($refresh_token)
> ->build();
> 
>
> $session = (new AdWordsSessionBuilder())
> ->withUserAgent('YOUR USER AGENT')
> ->withDeveloperToken('YOUR DEVELOPER TOKEN')
> ->withOAuth2Credential($oAuth2Credential)
> ->build();
>
> $adwordsServices = new AdWordsServices();
> $customerService = $adwordsServices->get($session, CustomerService
> ::class);
> $customers = $customerService->getCustomers();
> $customer = $customers[0];
>
> printf("Found customer ID %d with time zone %s.\n", $customer->
> getCustomerId(), $customer->getDateTimeZone());
>
> $filePath = sprintf(
> '%s.csv', tempnam('my_path', 'criteria-report-')
> );
>
> $this->runExample($session, $filePath);
>
>
> }
>
> public function runExample(AdWordsSession $session, $filePath) {
> // Create selector.
> $selector = new Selector();
> $selector->setFields(['CampaignId', 'AdGroupId', 'Id', 'Criteria',
> 'CriteriaType', 'Impressions', 'Clicks', 'Cost']);
>
> // Use a predicate to filter out paused criteria (this is 
> optional).
> $selector->setPredicates([
> new Predicate('Status', PredicateOperator::NOT_IN, ['PAUSED'
> ])]);
> // Create report definition.
> $reportDefinition = new ReportDefinition();
> $reportDefinition->setSelector($selector);
> $reportDefinition->setReportName(
> 'Criteria performance report #' . uniqid());
> $reportDefinition->setDateRangeType(
> ReportDefinitionDateRangeType::ALL_TIME);
> $reportDefinition->setReportType(
> ReportDefinitionReportType::CRITERIA_PERFORMANCE_REPORT);
> $reportDefinition->setDownloadFormat(DownloadFormat::CSV);
>
> // Download report.
> $reportDownloader = new ReportDownloader($session);
> $reportSettingsOverride = (new ReportSettingsBuilder())
> ->includeZeroImpressions(false)
> ->build();
>
>  $reportDownloadResult = $reportDownloader->downloadReport(
> $reportDefinition, $reportSettingsOverride);
> $data = $reportDownloadResult->saveToFile($filePath);
>
> printf("Report with name '%s' was downloaded to '%s'.\n", 
> $reportDefinition->getReportName(), $filePath);
> }
>
>
> Please guide me in Right way.
>
> 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/1af87542

Report is not downloading with content (coming Blank file ) with not CSV extenstion and not getting any error.

2017-09-25 Thread thedigifrog

Hi There,

Thank you for your advice.


Report section is the new challenge for me, I am following Google sample 
code  to get report. Sample code listed below:

*Issue* : Report is not generating, only blank file generating.
the blank file not have any file extension (CSV).
Dont know why it is printing "*Google\AdsApi\AdWords\AdWordsSession Object*" 
whole content with report setting 

*Google\AdsApi\AdWords\ReportSettings Object *in *runExample()*. even i did not 
print it.

I tried with active adwords accounts. but same issue with all AdWords 
account.
Also it also not printing the result of:
printf("Report with name '%s' was downloaded to '%s'.\n", $reportDefinition
->getReportName(), $filePath);




code Sample: 



public function main() {

$refresh_token = 'YOUR REFRESH TOKEN';
  
$oAuth2Credential = (new OAuth2TokenBuilder([

]))
->withClientId(Configure::read('GOOGLE_OAUTH_CLIENT_ID'))
->withClientSecret(Configure::read(
'GOOGLE_OAUTH_CLIENT_SECRET'))
->withRefreshToken($refresh_token)
->build();


$session = (new AdWordsSessionBuilder())
->withUserAgent('YOUR USER AGENT')
->withDeveloperToken('YOUR DEVELOPER TOKEN')
->withOAuth2Credential($oAuth2Credential)
->build();

$adwordsServices = new AdWordsServices();
$customerService = $adwordsServices->get($session, CustomerService::
class);
$customers = $customerService->getCustomers();
$customer = $customers[0];

printf("Found customer ID %d with time zone %s.\n", $customer->
getCustomerId(), $customer->getDateTimeZone());

$filePath = sprintf(
'%s.csv', tempnam('my_path', 'criteria-report-')
);

$this->runExample($session, $filePath);

   
}

public function runExample(AdWordsSession $session, $filePath) {
// Create selector.
$selector = new Selector();
$selector->setFields(['CampaignId', 'AdGroupId', 'Id', 'Criteria',
'CriteriaType', 'Impressions', 'Clicks', 'Cost']);

// Use a predicate to filter out paused criteria (this is optional).
$selector->setPredicates([
new Predicate('Status', PredicateOperator::NOT_IN, ['PAUSED'
])]);
// Create report definition.
$reportDefinition = new ReportDefinition();
$reportDefinition->setSelector($selector);
$reportDefinition->setReportName(
'Criteria performance report #' . uniqid());
$reportDefinition->setDateRangeType(
ReportDefinitionDateRangeType::ALL_TIME);
$reportDefinition->setReportType(
ReportDefinitionReportType::CRITERIA_PERFORMANCE_REPORT);
$reportDefinition->setDownloadFormat(DownloadFormat::CSV);

// Download report.
$reportDownloader = new ReportDownloader($session);
$reportSettingsOverride = (new ReportSettingsBuilder())
->includeZeroImpressions(false)
->build();

 $reportDownloadResult = $reportDownloader->downloadReport(
$reportDefinition, $reportSettingsOverride);
$data = $reportDownloadResult->saveToFile($filePath);
   
printf("Report with name '%s' was downloaded to '%s'.\n", 
$reportDefinition->getReportName(), $filePath);
}


Please guide me in Right way.

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/7898756c-757d-4740-9838-0e96b9e4df75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how migirate adwords api v201609 to v201702

2017-09-13 Thread thedigifrog
Hi,

did you get the code in PVT.

I am seeing if its posted to your or not.. thats why i am asking.

On Thursday, September 14, 2017 at 8:26:59 AM UTC+5:30, Vincent Racaza 
(AdWords API Team) wrote:
>
> Hi,
>
> Could you confirm if you are using .NET client library? If yes, then 
> there have been no announced changes to the AdWordsUser(). You can check 
> this example 
> 
>  with 
> this method. Or, if you are referring to other client libraries for this 
> method, then could you provide a sample code snippet so I can further check 
> if this is still existing in the newer version? You can use the *Reply 
> privately to author* option when replying.
>
> Thanks,
> Vincent
> 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/f9c1cd86-6495-4ce8-bea8-aa35f80ebfc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how migirate adwords api v201609 to v201702

2017-09-13 Thread thedigifrog
Hi,

My current adwords api version v201609. This method   AdWordsUser() in 
v201609 validate user. but what  is alternative of this method in 
v201708.?. i do want to change my whole code . i just need alternative of 
AdWordsUser()  in v201708.

Thanks




On Monday, September 11, 2017 at 11:33:57 AM UTC+5:30, Vincent Racaza 
(AdWords API Team) wrote:
>
> Hi,
>
> To upgrade to an API version, you need to download the client library from 
> here . 
> Since you will migrate to v201702, please see this migration guide 
> .
>
> However, we also recommend you to directly migrate to the latest version 
> of the AdWords API, which is v201708. Kindly refer to the release notes 
> 
>  and 
> the migration guide 
>  for 
> the latest version.
>
> Thanks,
> Vincent
> 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/387648c1-a27e-4c6d-9ff5-40eb2e87cd6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


how upgrade adwords api v201609to v201702

2017-09-10 Thread thedigifrog
Hi,

i am using currently adwords api v201609. but now its stop working. how can 
i upgrade v201609 to v201702. i do want use new api because  my code depend 
on v201609. give me any solution to upgrade v201609 to v201702.

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/8f8e25be-04dc-44e2-8fe8-31c9127d8876%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


how migirate adwords api v201609 to v201702

2017-09-10 Thread thedigifrog
Hi,

i am using v201609 adwords api. this api has been deprecated. i want to 
migrate v201609 to v201702. how can i migrate from v201609 to v201702. 
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/4b9e7e5e-f033-45a0-84d8-6829d7b44a66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.