Posts tagged with google-api

We are currently having one active MCC account for production. We want to create a new MCC account for our testing purpose. If we apply for the approval of new account it gets rejected from Google it says there already exists one account.

How to create two MCC Account so that we can separate out the production and non production activity completely from each other?

We want both the accounts to be live and the ads get live and some impression,clicks can be accumulated against the ads.

I created a test manager account and tried to get metrics for this account. But I getting an error as :

The developer token is not approved. Non-approved developer tokens can only be used with test accounts.

So I tried to create a customer account on Web GUI but in this time a getting an error like that:

Billing setups can not be used based on current status of the customer.

So I checked my accounts and the GUI like that:

So, How can I create a customer account from this test manager account?

I want to use reporting HTTP endpoints for that I send a request with postman But every time I getting AUTHENTICATION_ERROR.

My oAuth2 response :

{"token":{"access_token":"ya29.a0AfH6SMCyU5L******","refresh_token":"1//09Iryk6eZYKj0CgYIA********","scope":"https://www.googleapis.com/auth/youtube.upload https://www.googleapis.com/auth/youtube.readonly https://www.googleapis.com/auth/adwords","token_type":"Bearer","expiry_date":1624622265323}}

I used "ya29.a0AfH6SMCyU5L******" as access_token for request header.

And my postman request like that:

Where did I make mistake? How can I solve this issue?

I want to create a ads video reporting tool. So I used Google Ads API. For that I need to get customer ID. There are some programming examples. But I want to use an HTTP request endpoint. I cannot find any method for getting customer ID's with HTTP request. Is there any method for getting customer_id with HTTP request?

I'm using google adwords api to create campaigns and ads. I keep getting this error :Unauthorized CREATE operation in invoking a service's mutate method. I'm using a manager account. I tried with a test account and it was working but with my manager account it doesnt. PS : My developer token has a basic access.

 const client = new GoogleAdsApi({   client_id: req.headers["client_id"],   client_secret: req.headers["client_secret"],   developer_token: req.headers["developer_token"], }); const customer = client.Customer({   customer_id: req.headers["customer_id"],   refresh_token: req.headers["refresh_token"], });   const ad_group_ad = [     {       ad: {         responsive_display_ad: {           accent_color: req.body.pubGads.couleurs_perso,           main_color: req.body.pubGads.couleurs_perso,           marketing_images: marketing_images_tab.map((element) => {             return {               asset: element,             };           }),           square_logo_images: square_logo_images_tab.map((element) => {             return {               asset: element,             };           }),           square_marketing_images: square_marketing_images_tab.map(             (element) => {               return {                 asset: element,               };             }           ),           headlines: headlinesTab.map((element) => {             return {               text: element,             };           }),           long_headline: {             text: req.body.pubGads.titre_long,           },           descriptions: descriptionsTab.map((element) => {             return {               text: element,             };           }),           business_name: req.body.pubGads.nom_entreprise,           call_to_action_text: req.body.pubGads.texte_incitation,         },         final_urls: req.body.pubGads.url_finale.split(","),       },       ad_group: adGroupResults.results[0].resource_name,       status: enums.AdGroupAdStatus.PAUSED,     },   ];   const ad_group_ad_result = await customer.adGroupAds.create(ad_group_ad);