Re: not able to create custom conversion goals in google ads version 17 via rest api

2024-07-11 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

You can use the following query to check the link between the campaign "Zyper 
Test Campaign with GOALS for Max conversion ROAS" and the conversion goal 
through campaign_conversion_goal resource.

SELECT campaign_conversion_goal.campaign, campaign_conversion_goal.category, 
campaign_conversion_goal.origin, campaign_conversion_goal.biddable, 
campaign.id, campaign.name 
FROM campaign_conversion_goal WHERE campaign.advertising_channel_type = 'SEARCH'

{
      "campaign": {
        "resourceName": "customers/3300782374/campaigns/21449025537",
        "name": "Zyper Test Campaign with GOALS for Max conversion ROAS",
        "id": "21449025537"
      },
      "campaignConversionGoal": {
        "resourceName": 
"customers/3300782374/campaignConversionGoals/21449025537~SIGNUP~WEBSITE",
        "campaign": "customers/3300782374/campaigns/21449025537",
        "category": "SIGNUP",
        "origin": "WEBSITE"
      }
    },

You can try making a request using the Search or SearchStream by passing the 
customer Id. Also, you can use Query Builder to create your query and Query 
Validator to validate your query. I hope this helps, let me know how this goes 
on your end.
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJsTq:ref" 
(ADR-00246034)

Thanks,

Google Ads API Team


Register for the upcoming workshop: Performance Max and the Google Ads API!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/06qax0SGGRB400d2oS-QrhQXqi9gpsz5h6XA%40sfdc.net.


RE: not able to create custom conversion goals in google ads version 17 via rest api

2024-07-10 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Thank you for reaching out to the Google Ads API support team.

Based on the information provided, I understand that you are not able to create 
the custom conversion goals from version 17 using the Google Ads API. Kindly 
note that you have provided code and it doesn't contain the error message. In 
order to investigate your issue further, kindly provide us with the complete 
API logs (request and response logs with request-id and request header) 
generated at your end to better assist you further.

If you are using a client library and haven't enabled the logging yet, I would 
request you to enable logging for the specific client library that you are 
using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to 
enable logging at your end. For REST interface requests, you can enable logging 
via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct 
private reply to this email.
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJsTq:ref" 
(ADR-00246034)

Thanks,

Google Ads API Team


Register for the upcoming workshop: Performance Max and the Google Ads API!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/_4Lql0SGFEIM00Osfs7V6XQYCQYXppyU_G-g%40sfdc.net.


Not able to create custom conversion goals in google ads version 17 via rest api

2024-07-10 Thread globe media (GPL)
Hello ,

i am using rest api for creating campaign ,i need set campaign conversion 
goals neither the generic nor the custom ,

const createConversionGoals = async (
  customerId,
  accessToken,
  developerToken
) => {
  const goals = {
campaign: "customers/3300782374/campaigns/21459121432",
category: "PURCHASE",
origin: "WEBSITE",
resourceName: 
"customers/3300782374/campaignConversionGoals/21459121432~PURCHASE~WEBSITE",
  };

  try {
const response = await axios.post(
  
https://googleads.googleapis.com/v17/customers/${customerId}/campaignConversionGoals:mutate,
  {
operations: [{ update: goals, updateMask: "origin, campaign, 
resourceName" }],
  },
  {
headers: {
  Authorization: Bearer ${accessToken},
  "developer-token": developerToken,
  "login-customer-id": customerId,
  "Content-Type": "application/json",
},
  }
);

console.log("Response data:", response.data);
// const budgetResourceName = response.data.results[0].resource_name;
return response.data;
  } catch (error) {
console.error("Error creating Conversion Goals:", error.response.data);
return error.response.data;
  }
};

Please hlep me figure this out  

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7254026b-0fdc-4209-8721-f7108cf2c543n%40googlegroups.com.