I would like to know how you can get the cost for an Ad or other values
from like an TextAd object.
Since the TextAd.Fields doesn't include that, is there a way I can get this
from a different object, so I can include that in the fields Selector?
Or which docu would I have to check to find info about that?
>From the sample code:
// Create a selector.
Selector selector = new Selector()
{
fields = new string[] { TextAd.Fields.Id,
AdGroupAd.Fields.Status, TextAd.Fields.Headline,
TextAd.Fields.Description1, TextAd.Fields.Description2,
TextAd.Fields.DisplayUrl }, //which object do I need to get cost for Ad
ordering = new OrderBy[] { OrderBy.Asc(TextAd.Fields.Id) },
predicates = new Predicate[] {
// Restrict the fetch to only the selected ad group id.
Predicate.Equals(AdGroupAd.Fields.AdGroupId, adGroupId),
// Retrieve only text ads.
Predicate.Equals("AdType", "TEXT_AD"),
// By default disabled ads aren't returned by the
selector. To return
// them include the DISABLED status in the statuses field.
Predicate.In(AdGroupAd.Fields.Status, new string[] {
AdGroupAdStatus.ENABLED.ToString(), AdGroupAdStatus.PAUSED.ToString(),
AdGroupAdStatus.DISABLED.ToString()
})
},
paging = Paging.Default
};
Thanks
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/2617a937-1a54-4160-bc3a-694cd3a57878%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.