Google Adverts API help for importing and enhancing conversions from Google Analytics
- An
replacethat modifiesstanding,primary_for_goal,class,title, orvalue_settings. - A
take awaythat removes the conversion motion.
Why that is necessary
For a lot of Google Adverts customers, the conversions they import from Google Analytics are a crucial element of bidding and reporting. Till now, you can use the Google Analytics Admin API to create a hyperlink between your Google Analytics and Adverts accounts, however you can not use the Google Adverts API to finish the next remaining steps within the linking course of:
With this variation, the Google Adverts API helps each of those steps and offers a whole API-based answer for linking your Google Analytics 4 property to your Google Adverts account.
Along with the attributes wanted for correct configuration of conversion objectives, now you can modify the next attributes of an imported GA4 ConversionAction:
Requests that try to change some other attributes of an imported GA4 ConversionAction will proceed to fail, as will requests that try and take away or replace a ConversionAction imported from a Common Analytics (UA) property.
What you must do
Modify any code in your integration that will depend on the Google Adverts API rejecting a ConversionActionOperation with a MUTATE_NOT_ALLOWED error if it makes an attempt to replace or take away an imported GA4 conversion. For instance, in case your integration depends on this conduct to detect if a conversion motion is an imported GA4 conversion, modify it to as an alternative verify if the sort of the ConversionAction is both GOOGLE_ANALYTICS_4_CUSTOM or GOOGLE_ANALYTICS_4_PURCHASE.
As well as, in the event you at the moment full the method of linking Google Analytics to Google Adverts accounts utilizing the UI, think about whether or not switching to an API-based answer is suitable on your use case.
The way to get assist
You probably have any questions or need assistance, try the Google Adverts API help web page for choices.