Dear Google Support Representative,
Thank you for your help. We were able to connect to Adwords.
However, subsequently we experienced another error.
When our developer tried to add offline conversion to our adwords he
received the following error
{"[OfflineConversionError.TOO_RECENT_CLICK @ operations[0].operand]"}
It seems that according to Adwords guidelines, it means that we try to post
offline conversion too fast.
In other words, Adwords interface guidelines require us to post it after 24
hours.
This seems like a strange requirement. Maybe we didn't understand it
correctly.
It was my impression that posting could be done immediately. It's only
reporting lags 3 hours behind.
Any advise would be greatly appreciated,
Thank you
//https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth
String conversionName = signUp ? "PR_SignUP_IMP" : "PR_SignIN_IMP";
// Conversion time should be higher than the click time.
String conversionTime = DateTime.Local.ToString("yyyyMMdd HHmmss zzz";);
//;Double.valueOf("INSERT_CONVERSION_VALUE_HERE";)
Double conversionValue = 50;
Google.Api.Ads.AdWords.Lib.AdWordsUser user = new
Google.Api.Ads.AdWords.Lib.AdWordsUser();
// Override specific configuration at runtime.
AdWordsAppConfig config = user.Config as AdWordsAppConfig;
config.ClientCustomerId = "000-111-2222";
config.DeveloperToken = "abracadabraabracadabra";
config.UserAgent = "******* User Managment";
config.AuthorizationMethod = AdWordsAuthorizationMethod.ClientLogin;
config.OAuth2Mode = Google.Api.Ads.Common.Lib.OAuth2Flow.APPLICATION;
config.Email = "*****@gmail.com";
config.Password = "****";
OfflineConversionFeedService offlineConversionFeedService =
user.GetService(AdWordsService.v201309.OfflineConversionFeedService) as
OfflineConversionFeedService;
//Associate offline conversions with the upload conversion we created.
OfflineConversionFeed feed = new OfflineConversionFeed();
feed.conversionName = conversionName;
feed.conversionTime = conversionTime
feed.conversionValue = conversionValue;
feed.googleClickId = gclId;
OfflineConversionFeedOperation offlineConversionOperation =
new OfflineConversionFeedOperation();
offlineConversionOperation.@operator = Operator.ADD;
offlineConversionOperation.operand = feed;
OfflineConversionFeedReturnValue offlineConversionRetval =
offlineConversionFeedService.mutate(
new OfflineConversionFeedOperation[] { offlineConversionOperation });
OfflineConversionFeed newFeed = offlineConversionRetval.value[0];
Console.WriteLine("Uploaded offline conversion value of {0} for Google
Click ID = " +
"'{1}' to '{2}'.", newFeed.conversionValue, newFeed.googleClickId,
newFeed.conversionName);
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.