I have generated developer_token, access_token and refresh token with googleads read permission. While using in code using google-ads-api I am getting below error.

Code:

from google.ads.googleads.client import GoogleAdsClient googleads_client = GoogleAdsClient.load_from_storage(path="./googleads.yaml", version="v14") 

Error:

  googleads_client = GoogleAdsClient.load_from_storage(path="./googleads.yaml", version="v14") 

I followed this tutorial to generate developer token, access token and refresh_token.

Here is permissions in the app and during authorization screenshot

I'm trying to use the API to send to myself a custom message, I can already send a hello world template, but I been unable to send myself a custom only text message.

//API token given by Meta         $token = '*private*';         //Reciever number of msg         $telefono = '*private*';         //URL of msg given by Meta         $url = '*I think is private too*';         $mensaje = '{"messaging_product": "whatsapp", "to": "'.$telefono.'", "type": "text", "text": {"preview_url": false, "body": "MESSAGE_CONTENT" }}'; //header of msg $header = array("Authorization: Bearer " . $token, "Content-Type: application/json"); 

so that's what I use to make the Curl to send the message, which I do like this

//curl init         $curl = curl_init();         curl_setopt($curl, CURLOPT_URL, $url);         curl_setopt($curl, CURLOPT_POSTFIELDS, $mensaje);         curl_setopt($curl, CURLOPT_HTTPHEADER, $header);         curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);         //get response from information sent         $response = json_decode(curl_exec($curl),true);         //print response         print_r($response);         //get curl response code         $status_code = curl_getinfo($curl, CURLINFO_HTTP_CODE);         print_r($status_code);         //close curl         curl_close($curl); 

I think is kind of working, because it shows on screen this result

Array ( [messaging_product] => whatsapp [contacts] => Array ( [0] => Array ( [input] => phone [wa_id] => 56994134989 ) ) [messages] => Array ( [0] => Array ( [id] => i think is private too ) ) ) 200

In the end I just need to test if its possible to send myself custom text messages, the thing is that this code isn't working as I want it to, as you should see, on the print of the result and the status_code, the code is 200 what makes me think that the request is going through at some point but maybe it need something else to finally be sent to my phone.

I am creating bigquery data transfer service for google ads data. the data transfer service was created successfully. while retrieving the data the transfer service is getting failed with below error.

generic::permission_denied: Error while processing subtask:  The caller does not have permission Raw error response from Google Ads API: { "error": { "code": 403, "message": "The caller does not have permission", "errors": [ { "message": "The caller does not have permission", "domain": "global", "reason": "forbidden", "debugInfo": "detail: \"[ORIGINAL ERROR] generic::permission_denied: User doesn\\'t have permission to access customer. Note: If you\\'re accessing a client customer, the manager\\'s customer id must be set in the \\'login-customer-id\\' header. See https://developers.google.com/google- 

I checked the google documentation the user should have permissions in google ads and GCP as well

in my case both of them are different user,for example my email id in GCP is different and my email id in google ads is different.

once i setup the transfer service i updated the credentials with update credentials option. which mean i authorized retransfer using the email id which has access to google ads.

the update credentials step was success didn't throw any error,

even after this my data transfer is failing with same error.

is it not at possible use different user to authorize google ads data transfer?

how can i solve this problem.

I have a Meta App for using WhatsApp Business Platform. So I follower every instruction on the official docs (https://developers.facebook.com/docs/whatsapp/business-management-api/get-started#1--acquire-an-access-token-using-a-system-user-or-facebook-login):

  • Added a system user
  • Gave administrator permissions
  • Created the bearer token
  • Assigned the app as an asset and gave total permission
  • On WhatsApp account I added the system user and gave total permission.

Yet I get (#200) You do not have permission to access this field on every request! Or similar error messages. What else do I need to do?

EDIT: Im trying to send a message https://graph.facebook.com/v18.0/{my phone id}/messages and the exact message Im getting there is You do not have the necessary permissions required to send messages on behalf of this WhatsApp Business Account and error code 200.

I used the Access Token Debugger and these are my permissions business_management, whatsapp_business_management, whatsapp_business_messaging, public_profile so it should be fine.

Also, I checked that my user has a role in the app, and it's an administrator.

I was using Google Ads API v12 in python until today (28/08/2023). It's now deprecated and I'm not able to pull data from v13 or v14. Can someone help? My script is very similar to the one on the google documentation. Here they are simply replacing the version number and have

googleads_client = GoogleAdsClient.load_from_storage(version="v14")

https://developers.google.com/google-ads/api/samples/get-account-hierarchy?hl=it#python

Making no changes to this script and running it on my computer I have the following error:

ModuleNotFoundError: No module named 'google.ads.googleads.v14' ValueError: Specified Google Ads API version "v14" does not exist. Valid API versions are: "v8", "v7" 

I have the following packages installed: google-ads 14.0.0 and googleads 39.0.0

Thank you