I'm attempting to add Google Ads conversion tracking within a React App. In this situation I need to set it up to trigger on click as opposed to page URL. Within the index.html I added the Google Tag and the Conversion Event Snippet without issues.

My Question: How do I now call the function on a React Component to trigger a conversion?

<!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=AW-______"></script> <script>window.dataLayer = window.dataLayer || [];   function gtag(){dataLayer.push(arguments);}   gtag('js', new Date());   gtag('config', 'AW-______');</script> 

Event Snippet:

<!-- Event snippet for Payment conversion page In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. --> <script>function gtag_report_conversion(url) {   var callback = function () {     if (typeof(url) != 'undefined') {       window.location = url;     }   };   gtag('event', 'conversion', {       'send_to': 'AW-_____/_____',       'transaction_id': '',       'event_callback': callback   });   return false; }</script> 

The problem is - is there a way to retrieve the ad with size of 728*90 and set it to my view which is 600*90?

The problem is that the Ad is truncated in the portrait mode while in the landscape it looks good.

Portrait:

Landscape:

I use tablet and in order to represent the Ad I use AdManagerAdView.

I found out where the problem is - the problem is that the app requests the ad with the size of (w:) 728 * (h:) 90, however, the width of the tablet is 600dp, so it is obvious that 128dp is kind of out of the screen.

I tried to check all possible ad sizes described here - https://developers.google.com/ad-manager/mobile-ads-sdk/android/banner#banner_sizes

these sizes:

            this.setAdSizes(AdSize(320, 50)) +             this.setAdSizes(AdSize(320, 100))             this.setAdSizes(AdSize(300, 250)) +             this.setAdSizes(AdSize(468, 60))             this.setAdSizes(AdSize(728, 90)) + 

However, I wasn't able to retrieve all the ads by thier sizes, I only got these:

            this.setAdSizes(AdSize(320, 50)) +             this.setAdSizes(AdSize(300, 250)) +             this.setAdSizes(AdSize(728, 90)) + 

From this point I made a conclusion that a publisher provides only these specific ads sizes. For me it means that if it is nessasary to use smaler ad that 728*90 the next size would be 300*250 which is more than twice narrowed than I need (600dp).

So the next idea was to use NativeAd (https://developers.google.com/ad-manager/mobile-ads-sdk/android/native/start), however, I get an error:

onAdFailedToLoad: {                    "Code": 3,                    "Message": "No ad config.",                    "Domain": "com.google.android.gms.ads",                    "Cause": "null",                    "Response Info": {                      "Response ID": "null",                      "Mediation Adapter Class Name": "",                      "Adapter Responses": []                    }                  } 

So as far as I undestand there is no way just to start to use NativeAd, it should be configurated on the publisher end first (as far as I see), because once I tried to made a request with the same credentials (as for AdManagerAdView), I get this config error, looks like NativeAd config is not existing on the publisher end.

So, finally the question is - is there a way to retrieve the ad with size of 728*90 and set it to my view which is 600*90?

I want to get keywords' historical metrics using google Ads API, but I must create a keyword plan and get the data, but it also has other keyword suggestions which is not needed. Currently am using keyword idea endpoint in which the given keyword is the first row with data. How to use the historical metrics endpoint without creating a keyword plan?

https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics

I'm trying to implement whatsapp business API but I'm getting forbidden error I think its because i dont have enough permission. I have also implemented this code on Postman its works fine there but its not working in app i dont know why?

var client = new HttpClient();         var request = new HttpRequestMessage(HttpMethod.Post, "https://graph.facebook.com/v15.0/110474688636083/messages");         request.Headers.Add("Authorization", "Bearer EAAM2wERIcIsBAFSGQD3yCSYRd5II5u7hU1859z8VcpNFlZBjJrqJUR2QrgZADHlHYSCG0zWvpYqVkFlzea9TsN1wnu8ZBZBSiEaXQu5OZAQC63ufVKZAQDHZB25CIq3TBQ9rxr2DdZB1oZBgJtia4eAEBbzqfjwJpXm9M5SZCGhDh7JbK0s1ldz2Od099jHfKrFvnQDZD");         var content = new StringContent("{\n    \"messaging_product\": \"whatsapp\",\n    \"to\": \""+WHATSAPPNO+"\",\n    \"type\": \"template\",\n    \"template\": {\n        \"name\": \"hello_world\",\n        \"language\": {\n            \"code\": \"en_US\"\n        }\n    }\n}", null, "application/json");         request.Content = content;         var response = await client.SendAsync(request);         response.EnsureSuccessStatusCode();         Console.WriteLine(await response.Content.ReadAsStringAsync()); 

thank you for your time