Hi Bryan. 

Many thanks for the reply. 

1. I am using the same example process as referrred by you 
https://developers.google.com/google-ads/api/docs/concepts/curl-example. 
I was confuded with the below code and was not understanding how do I these 
lines of code in PHP.
curl \
  -d code=AUTHORIZATION CODE \
  -d client_id=CLIENT ID \
  -d client_secret=CLIENT SECRET \
  -d redirect_uri=urn:ietf:wg:oauth:2.0:oob \
  -d grant_type=authorization_code 
https://accounts.google.com/o/oauth2/token

2. I am using the same library with examples as referred by you. 


*In the meantime I have resolved the issue of OAuth2 login issue. I am 
facing new issue at the moment. I am explaiing my issues and doubts. *

1. I have opened a new Test account and use it's customer id in my code. 
After running getting the below error.

ApiException was thrown with message '{
    "message": "Request contains an invalid argument.",
    "code": 3,
    "status": "INVALID_ARGUMENT",
    "details": [
        {
            "@type": 0,
            "data": 
"type.googleapis.com\/google.ads.googleads.v3.errors.GoogleAdsFailure"
        },
        {
            "@type": 0,
            "data": [
                {
                    "errorCode": {
                        "queryError": "REQUESTED_METRICS_FOR_MANAGER"
                    },
                    "message": "Metrics cannot be requested for a manager 
account. To retrieve metrics, issue separate requests against each client 
account under the manager account."
                }
            ]
        }
    ]
}'.

What it is saying in "message": "Metrics cannot be requested for a manager 
account. To retrieve metrics, issue separate requests against each client 
account under the manager account."? What am I supposed to do? I still do 
not have the access to Manager account. I can access the Test account only. 

2. How do I get customer id when log in? 
3. Is it possible to access the 10 different customer campaign details with 
10 different customer ids, but with the same client id, client secret, 
refresh token and developer token? I wish to write a dynamic where I will 
make the customer id dynamic as log in with other resources constant. Is it 
possible?

I am waiting for the reply.


Best Regards,
Amit 









On Tuesday, March 24, 2020 at 12:07:05 AM UTC+5:30, adsapiforumadvisor 
wrote:
>
> Hi Amit,
>
> Thank you for the update. I see that you have four concerns. My response 
> is below.
>   
> 1. Is my parameters settings, curl calling and overall coding snippet 
> missed anything? Am I need to add more settings in parameters?
> Could you make sure you follow this example 
> <https://developers.google.com/google-ads/api/docs/concepts/curl-example> 
> in making cUrl API calls? It looks like you need to include the correct 
> authorization parameters to connect to the API.
>  
> 2. I am the developer working for the client. I am using my email address 
> to create OAuth Client Id using GCP. Am I need to create OAuth Client Id 
> using Google Ad Manager's email address?
> As long as your email address has been given correct access to the Manager 
> Account and the accounts under it then you should be able to connect to the 
> API and access those accounts. You can check this by logging into the 
> Manager account, then checking "Tools & Settings" > "Setup" > "Account 
> Access". Your email should be listed under "Users". Otherwise, you can also 
> use the Manager Account's email address to make the OAuth Client 
> Credentials.
>  
> 3. I am using library google-ads-php in the development. I am working with 
> Laravel framework. Is there any better way to implement the same?
> Could you provide me with the link to the Laravel framework? You should be 
> able to implement this example library 
> <https://github.com/googleads/google-ads-php/tree/master/examples> for 
> PHP for Google Ads API.
>  
> 4. Where do I get example of REST API?
> You can find all the examples of the Google Ads API here 
> <https://developers.google.com/google-ads/api/docs/client-libs>.
>
> Let me know if you have further questions.
>
> Thank you,
> Bryan, Google Ads API Team
>
>
> ref:_00D1U1174p._5001UXVi3P:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e47fae62-bdce-4d06-9198-913d296d8394%40googlegroups.com.

Reply via email to