What is the better way to use AdWords Api for different client accounts from Agency Account that are not linked to them.

2018-08-22 Thread Crazy Maksi
Hello,
I need assistant with AdWords Api (we are using PHP library).

The task is to get reports for our Clients.
We have Agency Account and Developer token for it.
We need an opportunity to get reports for non-linked Clients.
Client should be able to login to Api once and let us to use his account.

So i decided to use this 
https://github.com/googleads/googleads-php-lib/wiki/API-access-on-behalf-of-your-clients-(web-flow)
 
as example for my task.
I've impelented an opportunity to authorize to AdWords from different 
Client accounts and storing their tokens.
According step 4, i can use this data immediatly, but will i have to use 
this tokens later?

According this documentation 
https://github.com/googleads/googleads-php-lib#setting-up-your-oauth2-credentials
 i 
need to build OAuthCredential.
Can i use my ClientId and ClientSecret from Agency Account for that Clients 
and use only their ClientCustomerId and refresh token to build 
oautCredential?
And is there an opportunity to use one file for different Clients and set 
clientCustomerId and RefreshToken programmatically?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/01720813-35e1-4b6c-83e1-ccc35ed17b4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Video Perfomance Report

2018-10-16 Thread Crazy Maksi
Greetings,

I am trying to use AdWords API to get Video statistics, but when i select 
Video Perfomance Report and set Predicates by 'VideoId' i get response with 
zero values.
If i try to use Campaign or Ad perfomance report all works well and i get 
statistics for this Video Campaign.

So the question is when i can use Video Perfomance Report? Or maybe i use 
the wrong value as Video Id (I took it from 
url https://www.youtube.com/watch?v={value})


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/c4f3590d-d1f2-491b-955c-49cc1a8a9af3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Retriving data from deligated accounts.

2019-05-06 Thread Crazy Maksi
Hello, 
We are using php library for retriving statistics data from AdWords. 
And we have encountered a case where we have our clientId and clientSecret 
and refreshToken for MMC account, but we need to retrive data from account 
deligated to this MMC account. When we are trying to use deligated account 
as client-customer-id we recive an error:
"AuthorizationError.USER_PERMISSION_DENIED". What is the best way to 
retrive data from deligated accounts?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/385f0936-1093-43bf-bef5-1ed743a3ce46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.