Problems with event API & marketing API

116 views
Skip to first unread message

keji dianfei

unread,
Nov 18, 2022, 7:31:55 AM11/18/22
to Google Ads API and AdWords API Forum
Hi, I have two questions about the API.
The first one is about the event API, and I want to implement the data upload back by way of event API for my standalone site.
When testing, I found that no valid Gclid could not achieve the test. Is there any official test method I can use to test if the API is successful?
(I have read GA's documentation and didn't find a good way)
If not, I can only test the data by real ad placement.
Also, is there an official marketing API interface that can modify the account-level tracking template? If so, can you provide a link to the documentation? Thank you very much!

Google Ads API Forum Advisor

unread,
Nov 18, 2022, 10:27:58 AM11/18/22
to dianf...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to our API support team.

Uploading conversions (ex. with GCLID data) will need to be performed using production accounts. Uploading to test accounts is unfortunately not supported.

As for account level tracking templates, this guide states that using tracking templates at the customer level is supported. That said, you may use the CustomerService's
create method and indicate in the Customer resource the template value in the tracking_url_template attribute.

If the customer already exists, you can use the mutate method instead and the update operation to update the above mentioned attribute. I hope this helps.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2gQJyU:ref

keji dianfei

unread,
Nov 22, 2022, 3:06:52 AM11/22/22
to Google Ads API and AdWords API Forum
Thanks. I want to ask if I modify the tracking template of my ads in bulk through the API during ad placement, will it trigger the ad review? Will it have an impact on the effectiveness of my ad placement?
What if I modify the tracking templates at the account level?

Google Ads API Forum Advisor

unread,
Nov 22, 2022, 5:36:54 AM11/22/22
to dianf...@gmail.com, adwor...@googlegroups.com
Hi Keji,

Thank you for getting back to us. I am Sherwin from Google Ads API and I work with Peter. I hope that you are doing well today.

Moving forward to your concerns, to answer your questions in general, you may use the BatchJobService which executes all operations in a job with partial failure enabled. You may also use the AdOperation to update the template. For the ad review, behavior would be the same if updating via Ads UI. In addition you may able to update the tracking templates at the account level as well.

Kind regards,
Google Logo
Sherwin Vincent
Google Ads API Team
 


ref:_00D1U1174p._5004Q2gQJyU:ref

keji dianfei

unread,
Nov 24, 2022, 3:36:18 AM11/24/22
to Google Ads API and AdWords API Forum
Excuse me again, I want to get the total spend of all campaigns and ad groups under my ad account, but I need help finding the corresponding parameters in the parameter list.

Google Ads API Forum Advisor

unread,
Nov 24, 2022, 5:48:43 AM11/24/22
to dianf...@gmail.com, adwor...@googlegroups.com
Hi Keji,

Thank you for getting back to us. I hope that you are doing well today.

To get the total spend of your campaigns and ad_groups, you may use the campaign report and ad_group report. And you may include the metrics.cost_micros to get the total spend of your campaigns and ad_group. You may check this guide on how to execute a report. You may try the query below to get the total spend of the campaigns:
  • {query: "SELECT campaign.id, campaign.name, campaign.resource_name, metrics.cost_micros FROM campaign", "summaryRowSetting":"SUMMARY_ROW_WITH_RESULTS"}
Please let us know if this works for you, and if not, please provide us the full screenshot of the UI, where you can see the actual report that you want to fetch using the API. You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

keji dianfei

unread,
Nov 24, 2022, 6:03:28 AM11/24/22
to Google Ads API and AdWords API Forum

Thank you for your prompt reply!
I tried this method before asking the question, but the data pulled by this method did not match the data I saw in google ads.

How do I pull the total spending at the ad level? In fact, if I see the total expenditure of the ad level, I can calculate the ad series on my own

Google Ads API Forum Advisor

unread,
Nov 25, 2022, 1:02:10 AM11/25/22
to dianf...@gmail.com, adwor...@googlegroups.com
Hi Keji,

Thank you for the reply.

For our team to provide appropriate recommendations, could you please provide us with the whole UI screenshot where you can see the expected data you mentioned in the Google Ads, like what my colleague Sherwin also requested?

You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


ref:_00D1U1174p._5004Q2gQJyU:ref
Reply all
Reply to author
Forward
0 new messages