If yes, how not to confuse a prepositional phrase as an object complement and as an adverb. E.g "I consider you as a friend". Is "as a friend" an adverb implying "I'm your friend and I consider you from this position" Or an object complement meaning "I consider you my friend". Does the accurate meaning depend on a context?
I consider you as a friend.
It's not the whole preposition phrase "as a friend" that is predicative complement of "consider", but just the noun phrase "a friend".
"A friend" can be analysed as a 'predicative oblique' because it is complement of a preposition instead of being related directly to the verb.
Note that some grammars call the "as phrase" itself a 'marked predicative complement'.