Facebook has the following API -

https://graph.facebook.com/API_VERSION/me?fields=FIELDS&access_token=ACCESS_TOKEN 

Does WhatsApp have a similar API where I can get all account information, such as phone number ID and business account ID, by using only the access token and nothing else? I have searched the official documentation and all the APIs I have come across either use the business account ID or the phone number ID to retrieve account information.

I would really appreciate any suggestions provided. Thank you.

I deployed inside a docker a reactjs project (optimized build).

I added the required scripts to enable Google ADS but I got following message

It doesn't find the ads.txt file, I put it under the /public folder and re-built and re-deployed the docker but nothing.. do you have any suggestion for it?

I made a playable ad and now i want to make a build for Mintegral platform. As the whole point of playable ad is to redirect user to store, i need to implement a CTA (call to action) method, that will do so. Every platform requires specific code to redirect user to store. And there is no much information about minegral code requirements. I found this recomendation on their website: The whole process of the playable needs a button for directing to Store, in order to make sure a button labeled “Download Now” can be shown all the time through the game and direct to Store. All features that direct to App Store must call API

window.install && window.install(); 

Is it all i hve to do for cta method? there is no specific url. May be i need to assign a url in their dashboard, not in the playable itself?

i tried to implenent this code as a cta method, but mintegral playable test site(https://www.mindworks-creative.com/review/) does not detect my method as a cta method.

onClick: function (store) {         window.install && window.install();            if (store === undefined)                store = navigator.userAgent.toLowerCase().indexOf("android") > -1 ? "google" : "apple";                var urls = {                "google": "https://play.google.com/store/apps/details?id=my id",                "apple": "https://apps.apple.com/us/app/my id"            };            var url = urls[store];            mraid.open(url);        } 

I am trying to send WhatsApp message, using WhatsApp Business API and GraphQL.

But I am getting this error:

Failed to send message to :  {     "error":{         "message":"(#132012) Parameter format does not match format in the created template",         "type":"OAuthException",         "code":132012,         "error_data": {             "messaging_product":"whatsapp",             "details":"header: Format mismatch, expected IMAGE, received UNKNOWN"         },         "fbtrace_id":"AyPLLsvyikPmg66DWF_ZfYU"     } } 

This is the code I have written. And also I am sharing the message structure.

import requests import openpyxl access_token = "" template_name = "healthy_sports_b2s_2"  # Replace with your template name language_code = "en" wb = openpyxl.load_workbook("numbers.xlsx") sheet = wb.active for row in sheet.iter_rows(min_row=2, values_only=True):     customer_number = row[0]     url = f"https://graph.facebook.com/v17.0/XXXXXXXXXXXXXXX/messages"     headers = {         "Authorization": f"Bearer {access_token}",         "Content-Type": "application/json",     }     message_payload = {         "messaging_product": "whatsapp",         "to": customer_number,         "type": "template",         "template": {"name": template_name, "language": {"code": language_code}},         "components": [             {                 "parameters": [                     {                         "type": "template",                         "image": {                             "link": "https://res.cloudinary.com/dapnrioqr/image/upload/v1691648851/02_wgucrp.jpg"                         },                     }                 ]             }         ],     }     response = requests.post(url, json=message_payload, headers=headers)     if response.status_code == 200:         print(f"Message sent to {customer_number}")     else:         print(f"Failed to send message to {customer_number}: {response.text}") 

What can I do to solve this

This is the actual message

I'm trying to get the account name and ID of all the Google Ads accounts that the logged user has access to, so the user can later check the stats of each of those accounts.

I've managed to get the IDs using the code on https://developers.google.com/google-ads/api/docs/account-management/listing-accounts?hl=es-419.

But I need the names too and apparently you have to make one API call for each ID to get their account names or any other info.

I've tried with the following Python (Django) code, but it's not working (it probably could be improved a lot and maybe has mistakes, I'm a Python beginner):

def one(request):     client = credenciales(request)     ga_service = client.get_service("GoogleAdsService")     # Get customer resource names from the original code     customer_service = client.get_service("CustomerService")     accessible_customers = customer_service.list_accessible_customers()     customer_resource_names = accessible_customers.resource_names     # Prepare a list to store customer data     list_clients = []     # Iterate through each customer resource name     for resource_name in customer_resource_names:         # Extract the customer ID from the resource name         custom_id = resource_name.split('/')[-1]         # Create a query using the customer_id         query = f'''             SELECT             customer_client.descriptive_name,             customer_client.id,             customer_client.status             FROM customer_client         '''         stream = ga_service.search_stream(customer_id=custom_id, query=query)                  for batch in stream:             for row in batch.results:                 data_clients = {}                 data_clients["descriptive_name"] = row.customer_client.descriptive_name                 data_clients["id"] = row.customer_client.id                 data_clients["status"] = row.customer_client.status                 list_clients.append(data_clients)     # Pass the list of customer data to the template     context = {         'list_clients': list_clients,     }     return render(request, 'one.html', context) 

It gives me the error "authorization_error: USER_PERMISSION_DENIED" (which I don't understand, because it should be automatically showing the accounts that the user has permission to access, I'm not giving those accounts/IDs manually).