Update application google settings
POST
/api/v2/client/applications/{application_id}/google-settings
const url = 'https://app.affisemmp.com/api/v2/client/applications/1/google-settings';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"api_events_mapping":[{"affise_event":"architecto","adapty_subs_event":"architecto","apphud_subs_event":"architecto","revenuecat_subs_event":"architecto","paddle_subs_event":"architecto","google_ads_event":"first_open"}],"link_id":"b"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.affisemmp.com/api/v2/client/applications/1/google-settings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "api_events_mapping": [ { "affise_event": "architecto", "adapty_subs_event": "architecto", "apphud_subs_event": "architecto", "revenuecat_subs_event": "architecto", "paddle_subs_event": "architecto", "google_ads_event": "first_open" } ], "link_id": "b" }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” application_id
required
integer
The ID of the application.
Example
1Request Body
Section titled “Request Body ” Media type application/json
object
api_events_mapping
Must have at least 2 items. Must not have more than 2 items.
Array<object>
object
affise_event
string
Example
architecto adapty_subs_event
string
Example
architecto apphud_subs_event
string
Example
architecto revenuecat_subs_event
string
Example
architecto paddle_subs_event
string
Example
architecto google_ads_event
string
Example
first_open link_id
Must not be greater than 255 characters.
string
Example
bResponses
Section titled “ Responses ” Media type application/json
object
message
string
Example
{ "message": "Google integration settings successfully updated"}