Hello! How I can take subject info? My code:
// Create seed keyword.
$keyword = new Keyword();
$keyword->text = 'internet';
$keyword->matchType = 'BROAD';
// Create selector.
$selector = new TargetingIdeaSelector();
$selector->requestType = 'IDEAS';
$selector->ideaType = 'PLACEMENT';
//$selector->requestedAttributeTypes = array();
$selector->requestedAttributeTypes = array(
'APPROX_CONTENT_IMPRESSIONS_PER_DAY', 'FORMATS',
'IDEA_TYPE',
'IN_STREAM_AD_INFO', 'PLACEMENT', 'PLACEMENT_CATEGORY',
'PLACEMENT_NAME', 'PLACEMENT_TYPE', 'SAMPLE_URL'
);
// Set selector paging (required for targeting idea service).
$paging = new Paging();
$paging->startIndex = 2;
$paging->numberResults = 1;
$selector->paging = $paging;
// Create related to keyword search parameter.
$relatedToKeywordSearchParameter = new
RelatedToKeywordSearchParameter();
$relatedToKeywordSearchParameter->keywords = array($keyword);
$selector->searchParameters =
array($relatedToKeywordSearchParameter);
// Get related keywords.
$page = $targetingIdeaService->get($selector);
I do this, but returned data in not contains necessary information:
TargetingIdeaPage Object
(
[totalNumEntries] => 799
[entries] => Array
(
[0] => TargetingIdea Object
(
[data] => Array
(
[0] => Type_AttributeMapEntry Object
(
[key] => SAMPLE_URL
[value] => StringAttribute Object
(
[value] =>
http://www.jango.com/music
[AttributeType] =>
StringAttribute
[_parameterMap:Attribute:private] => Array
(
[Attribute.Type]
=> AttributeType
)
)
)
[1] => Type_AttributeMapEntry Object
(
[key] => PLACEMENT_TYPE
[value] => PlacementTypeAttribute
Object
(
[value] => SITE
[AttributeType] =>
PlacementTypeAttribute
[_parameterMap:Attribute:private] => Array
(
[Attribute.Type]
=> AttributeType
)
)
)
[2] => Type_AttributeMapEntry Object
(
[key] => FORMATS
[value] =>
AdFormatSpecListAttribute Object
(
[value] => Array
(
[0] =>
AdFormatSpec Object
(
[format]
=> IMAGE
)
[1] =>
AdFormatSpec Object
(
[format]
=> TEXT
)
)
[AttributeType] =>
AdFormatSpecListAttribute
[_parameterMap:Attribute:private] => Array
(
[Attribute.Type]
=> AttributeType
)
)
)
[3] => Type_AttributeMapEntry Object
(
[key] => PLACEMENT_NAME
[value] => StringAttribute Object
(
[value] => jango.com
[AttributeType] =>
StringAttribute
[_parameterMap:Attribute:private] => Array
(
[Attribute.Type]
=> AttributeType
)
)
)
[4] => Type_AttributeMapEntry Object
(
[key] => IDEA_TYPE
[value] => IdeaTypeAttribute
Object
(
[value] => PLACEMENT
[AttributeType] =>
IdeaTypeAttribute
[_parameterMap:Attribute:private] => Array
(
[Attribute.Type]
=> AttributeType
)
)
)
[5] => Type_AttributeMapEntry Object
(
[key] => PLACEMENT_CATEGORY
[value] => IntegerAttribute Object
(
[value] => 215
[AttributeType] =>
IntegerAttribute
[_parameterMap:Attribute:private] => Array
(
[Attribute.Type]
=> AttributeType
)
)
)
[6] => Type_AttributeMapEntry Object
(
[key] => PLACEMENT
[value] => PlacementAttribute
Object
(
[value] => Placement
Object
(
[url] => jango.com
[id] =>
[CriterionType] =>
Placement
[_parameterMap:Criterion:private] => Array
(
[Criterion.Type] => CriterionType
)
)
[AttributeType] =>
PlacementAttribute
[_parameterMap:Attribute:private] => Array
(
[Attribute.Type]
=> AttributeType
)
)
)
[7] => Type_AttributeMapEntry Object
(
[key] => IN_STREAM_AD_INFO
[value] => InStreamAdInfoAttribute
Object
(
[value] =>
[AttributeType] =>
InStreamAdInfoAttribute
[_parameterMap:Attribute:private] => Array
(
[Attribute.Type]
=> AttributeType
)
)
)
[8] => Type_AttributeMapEntry Object
(
[key] =>
APPROX_CONTENT_IMPRESSIONS_PER_DAY
[value] => LongRangeAttribute
Object
(
[value] => Range Object
(
[min] => LongValue
Object
(
[number]
=> 500000
[ComparableValueType] => LongValue
[_parameterMap:ComparableValue:private] => Array
(
[ComparableValue.Type] => ComparableValueType
)
)
[max] =>
)
[AttributeType] =>
LongRangeAttribute
[_parameterMap:Attribute:private] => Array
(
[Attribute.Type]
=> AttributeType
)
)
)
)
)
)
)
I expected size ad images in info:
[value] => Array
(
[0] =>
AdFormatSpec Object
(
[format]
=> IMAGE
)
[1] =>
AdFormatSpec Object
(
[format]
=> TEXT
)
)
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
