I’m creating an audience via the Google Ads API and correctly passing
values for Gender, Age, ParentalStatus, and HouseholdIncome. However, only
AudienceSegments are being saved and appearing in Google Ads, while the
other attributes remain at their default values.
My implementation looks like this:
audienceCreate.Dimensions.Add(new AudienceDimension()
{
//Gender = GenerateGenderDimension(audience),
//Age = GenerateAgeDimension(audience),
//ParentalStatus = GenerateParentalStatusDimension(audience),
//HouseholdIncome = GenerateHouseholdIncomeDimension(audience),
AudienceSegments = await GenerateAudienceSegmentDimension(audience,
accountGoogleAds),
});
private GenderDimension GenerateGenderDimension(AudienceGoogleAds audience)
{
var genders = GenderHelper.GetGenderTypeGoogleAds(audience.Genders);
var genderCreate = new GenderDimension()
{
IncludeUndetermined = audience.IncludeGenderUndetermined,
};
genderCreate.Genders.AddRange(genders);
return genderCreate;
}
private AgeDimension GenerateAgeDimension(AudienceGoogleAds audience)
{
var ageSegmentCreate = new AgeSegment()
{
MaxAge = audience.MaxAge,
MinAge = audience.MinAge
};
var ageCreate = new AgeDimension()
{
IncludeUndetermined = audience.IncludeAgeUndetermined,
};
ageCreate.AgeRanges.Add(ageSegmentCreate);
return ageCreate;
}
Is it possible to add these elements (Gender, Age, ParentalStatus,
HouseholdIncome) via the API? Are there any limitations or additional
configurations needed to ensure these values are applied correctly?
(I am passing all values correctly according to the API documentation)
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/adwords-api/e0357979-5605-4a89-9b8e-693f03067be0n%40googlegroups.com.