Map gclid with campaign name
I am running ad campaigns and I want to track the performance of users I acquire through those ads.
With the user data I get the gclid , I want to map this gclid with the campaign name or campaign id.
How can I do this?
Tony-Marketing-API.cn is a vibrant community dedicated to Facebook, Meta,Google Ads api, app development, Instagram, and related technologies. It offers valuable bug solutions, troubleshooting cases, and problem-solving strategies shared by users. Stay updated with real-world solutions, development tips, and the latest trends in digital marketing and app development.
I am running ad campaigns and I want to track the performance of users I acquire through those ads.
With the user data I get the gclid , I want to map this gclid with the campaign name or campaign id.
How can I do this?
I am running google ads campaign for IOS application , I have implemented firebase analytics in our application ,I have created an event in analytics and imported these events like first_open , screen_view on ads also , I have done all things which is require for ads still I am not getting downloads , In 4 to 5 days we got 444 Impressions , 9 Clicks and 0 install. It is Working fine for android app campaign but it is not working for IOS app campaign. Is there any code issue or we are doing something wrong while running campaign , guys please help me out with this issue.
this is the error which i get while running the command flutter build apk --release
* What went wrong: A problem occurred configuring project ':google_mobile_ads'. > Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. > Namespace not specified. Please specify a namespace in the module's build.gradle file like so: android { namespace 'com.example.namespace' }
but i have it in my gradle file . i am giving here my app level build.gradle file
plugins { id "com.android.application" id "kotlin-android" id "dev.flutter.flutter-gradle-plugin" } def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { localPropertiesFile.withReader('UTF-8') { reader -> localProperties.load(reader) } } def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' } def flutterVersionName = localProperties.getProperty('flutter.versionName') if (flutterVersionName == null) { flutterVersionName = '1.0' } android { namespace "com.example.tripp" compileSdkVersion = 33 ndkVersion flutter.ndkVersion compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } sourceSets { main.java.srcDirs += 'src/main/kotlin' } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.busdekho.tripp" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. minSdkVersion 33 targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName buildFeatures { buildConfig = true } } buildTypes { release { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. signingConfig signingConfigs.debug } } } flutter { source '../..' } dependencies { implementation 'com.google.android.gms:play-services-ads:22.3.0' }
the below one is my project level gradle file which have small additions
buildscript { ext.kotlin_version = '1.7.10' repositories { google() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:8.0.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } allprojects { repositories { google() mavenCentral() } } rootProject.buildDir = '../build' subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { project.evaluationDependsOn(':app') } tasks.register("clean", Delete) { delete rootProject.buildDir }
can any one help me in solving this problem . i am also giving you the complete error code that i am get in cmd
PS C:\Users\hp\Desktop\myprojects\tripp> flutter build apk --release FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':google_mobile_ads'. > Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. > Namespace not specified. Please specify a namespace in the module's build.gradle file like so: android { namespace 'com.example.namespace' } If the package attribute is specified in the source AndroidManifest.xml, it can be migrated automatically to the namespace value in the build.gradle file using the AGP Upgrade Assistant; please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information. * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 2s Running Gradle task 'assembleRelease'... 3.3s Gradle task assembleRelease failed with exit code 1 PS C:\Users\hp\Desktop\myprojects\tripp>
I've build a own tracking template for Google ads, which looks like this:
http://tracking.example.com?lpurl={lpurl}
This tracking link (where {lpurl} is the final url) leads to our website and triggers the script below.
<?php header("Status: 301 Moved Permanently"); // some code to add data to our database // then redirect traffic to url: header("Location:".$_GET["lpurl"]."?". $_SERVER['QUERY_STRING']); exit; ?>
I have started using ClickPatrol.com for click fraud protection and PPC protection. However, they also require a tracking template. They work well with Hubspot, but I don't know how to combine their tracking template with mine and modify my script.
their trackingtemplate is: https://example.com/?uid=[unique id]&adp={adposition}&lpm={loc_physical_ms}&lim={loc_interest_ms}&adi={adgroupid}&k={keyword}&n={network}&ci={campaignid}&d={device}&p={placement}&u={lpurl}&ma={matchtype}&ta={target}&cr={creative}
Any idea how I can combine:
http://example.com?url={lpurl}
and
https://example.com/?uid=[unique id]&adp={adposition}&lpm={loc_physical_ms}&lim={loc_interest_ms}&adi={adgroupid}&k={keyword}&n={network}&ci={campaignid}&d={device}&p={placement}&u={lpurl}&ma={matchtype}&ta={target}&cr={creative}
I want to track my traffic with my own script and also use ClickPatrol
I attempted to merge the querystring and redirect it, but the urls in the querystring made it difficult to decode and encode, resulting in redirecting errors.