Posts tagged with google-ads-script

I have use to AFS based on the documentation, and I have also reference many other websites. I have found that the clicktrackUrl parameter is used in their code, which can trigger click tracking when clicking on an advertisement. However, I did not see this field in the documentation. The reference documentation is as follows:

https://support.google.com/adsense/answer/9055049

Does this field exist? I added this parameter, but it doesn't work on my website. How can I make this parameter work?

Reference website, website url: https://www.jnee.uk/us/strategize-g-suite-project-management-system-work enter image description here

I want use clicktrackUrl parameter to fixed my tracking problom,thank you

First of all, thanks for any help I can get here. I am not a professional and now, unfortunately, after many hours I just can't get any further.

I run a Woocommerce webshop and have integrated GA4 and Google Adwords Conversion + Remarketing via Tag Manager. In preview mode all tags and data layers are loaded correctly. But the Goolge Ads Remarketing Tag and the Conversion Tag are marked red and loaded but not sent.

The Error Message in Tag Manager Browser Plugin: HTTP response code indicates tag failed to fire: Status 400:

Google Tag Assistant - Conversion failed to fire

The Code in GTM Preview Mode when Remarketing Tag is fired ( everythings looks good ):

GTM - Preview - Remarketing Values

If i open Dev Tool on my Browser i see that some google Scripts are red ( Url = googleads.g.doublecklick...... ):

Google ads url is blocked

Unfortunately no conversions are recorded in Adwords and the imported conversions from GA4 are also counted only to a small amount. With the old Analytics UA I had no problems and almost all the conversions were displayed in Adwords.

GTM is published and i have no Ad Blockers running.

Conversion ID and Label is checked

The Google Ads Campaigns are running

I turned off the GTM plugin for wordpress and tried a paid plugin for google ads conversion tracking. Unfortunately i have had the same error.

In addition, I turned of almost all plugins and tested whether anything blocks. Unfortunately without result.

If I change the conversion ID in the remarketing tag and add "AW-", the tag is no longer displayed as red. However, I can not change the conversion tag because only numbers are allowed:

Trying Conversion ID with "AW-" in Remarketing Tag

I'm realy a bit desperate and really grateful for any ideas!

I'm attempting to cURL the Google Ads API with the following PHP code:

$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://googleads.googleapis.com/v14/customers/[CUSTOMER_ID]:generateKeywordHistoricalMetrics'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($ch, CURLOPT_HTTPHEADER, [     'developer-token: [DEVELOPER_TOKEN',     'login-customer-id: [LOGIN_CUSTOMER_ID]',     'Authorization: Bearer [???????]',     'Accept: application/json',     'Content-Type: application/json', ]); curl_setopt($ch, CURLOPT_POSTFIELDS, '{"historicalMetricsOptions":{"yearMonthRange":{"start":{"month":"JUNE","year":2022},"end":{"month":"MAY","year":2023}}},"keywords":[""]}'); $response = curl_exec($ch); curl_close($ch); 

And the response is:

{   "error": {     "code": 401,     "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",     "status": "UNAUTHENTICATED"   } } 

What I believe the issue to be is on the "Authentication" field. So far, I've put the following in that field(and failed each time):

  1. OAUTH 2 Client ID
  2. OAUTH 2 Client Secret
  3. OAUTH 2 Refresh Token, that works for another Google Ads project I've made
  4. Developer token

So, I could appreciate any and all help, since I'm running out of ideas and don't know what to do.