Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/theo 10603 sgai conviva #40

Merged
merged 15 commits into from
Dec 11, 2024

Conversation

Jeroen-Veltmans
Copy link
Contributor

@Jeroen-Veltmans Jeroen-Veltmans commented Nov 15, 2024

Update calculateAdType to setup THEOads for later, aligns with web connector
Pass Server Guided ad technology

Also updated the connector to take the regul Ad events into account instead of only the Google Ima Ad events

val adTechnology =
if (ad.integration == AdIntegrationKind.THEO_ADS) "Server Guided" else calculateAdTypeAsString(
ad
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't we put the "Server Guided" check into calculateAdTypeAsString?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed would be better, will update it

"c3.ad.firstCreativeId" to validStringOrNA(
ad.wrapperCreativeIds.firstOrNull() ?: ad.creativeId
),
"c3.ad.firstCreativeId" to "NA",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are never sending the firstCreativeId now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will for google IMA ad, otherwise it is "NA" indeed since I don't think this info is present in the base Ad event.
I split the previous collectAdMetadata function up into all the data we have on a base Ad object and the extra info we get from Google IMA.
So after collectAdMetadata we check if we have an IMA ad, if so we call updateAdMetadataForGoogleIma and add the extra metadata.
If some of the information is present in the normal Ad object after all I can update it.

@Jeroen-Veltmans Jeroen-Veltmans force-pushed the feature/THEO-10603-sgai-conviva branch from 162d628 to 851e9fc Compare December 10, 2024 14:49
@Jeroen-Veltmans Jeroen-Veltmans merged commit 62c23d3 into master Dec 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants