Hi, thank you very much for the feedback. > -I am afraid that this is not possible using an access token. To get the developer token, you will need to navigate to the *TOOLS & SETTINGS > SETUP > API Center *of your MCC account where it is generated. To get the Google Ads accounts including the customer ID accessible by users, then you can implement this <https://developers.google.com/google-ads/api/docs/account-management/listing-accounts> as well.
Ok. Does that mean it is not possible to provide our customers an oauth login and create ads afterwards because I can't resolve the customerId necessary to access his ad account? Can you point out more clearly if my usecase is realizable or not? Best regards On Wednesday, 24 November 2021 at 08:18:39 UTC+1 adsapi wrote: > Hi Dominik, > > Thank you for posting your concern. Allow me to provide support here. > > Please see my response to each question: > > *Is this scenario even possible? What scope do I need to require when > authenticating?* > -For '*Provide a login button inside my application*', could you provide > more details on the login specification that you provided? Which account > should the customer login to? > > -As for "*Users authenticate with my google application using oauth2*", > your application should follow the authentication discussed on documents > below: > https://developers.google.com/google-ads/api/docs/oauth/cloud-project > https://developers.google.com/google-ads/api/docs/oauth/client-library > > -To get the list of Google Ads accounts accessible by users, then you may > implement this > <https://developers.google.com/google-ads/api/docs/account-management/listing-accounts> > > on your application. > > -To create campaigns, you may follow this document > <https://developers.google.com/google-ads/api/docs/campaigns/create-campaigns> > > while this is the sample code > <https://developers.google.com/google-ads/api/docs/samples/update-campaign> > that you can try to update campaigns. To fetch data of the campaign, then > you can use the campaign > <https://developers.google.com/google-ads/api/fields/v9/campaign> report > type. > > > > > > *Question2: Which php library is the way to go? I've found - > googleads/google-ads-php - googleads/googleads-php-lib* > > -It appears that provided links are third-party client libraries, with > this, I would suggest to use our official client library for PHP and you > can see it on this link <https://github.com/googleads/google-ads-php/>. > > > > > *Question3: Seems like I need a developertoken and a customerID. How do I > get that using the accessToken?* > -I am afraid that this is not possible using an access token. To get the > developer token, you will need to navigate to the *TOOLS & SETTINGS > > SETUP > API Center *of your MCC account where it is generated. To get the > Google Ads accounts including the customer ID accessible by users, then you > can implement this > <https://developers.google.com/google-ads/api/docs/account-management/listing-accounts> > as > well. > > Regards, > > Reminder: Share your feedback about the Google Ads (AdWords) API! Take the > 2021 > Google Ads API and AdWords API Annual Survey > <https://google.qualtrics.com/jfe/form/SV_eQbOpf4VxRyyqqO?source=so> > > [image: Google Logo] > Ernie John Blanca Tacata > Google Ads API Team > > > ref:_00D1U1174p._5004Q2RveGW: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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/2379d4e9-a190-4e65-b760-a113a8c48419n%40googlegroups.com.
